Time Exceeded

/in/foo.cc: In function 'int leap(long long int, long long int)':
/in/foo.cc:9:12: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(i%4==0&&i%100!=0||i%400==0)
      ~~~~~~^~~~~~~~~~
/in/foo.cc:11:9: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return n;   
         ^
# 状态 耗时 内存占用
#1 Accepted 1ms 400.0 KiB
#2 Time Exceeded ≥1005ms ≥376.0 KiB

信息

递交者
类型
递交
题目
P1625 闰年祝福
比赛
春季班中级5.4
语言
C++
递交时间
2024-05-10 14:05:01
评测时间
2024-05-10 14:05:01
评测机
分数
50
总耗时
≥1007ms
峰值内存
≥400.0 KiB