Time Exceeded

foo.cc: In function 'bool rn(int)':
foo.cc:4:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    4 |         return n%4==0 && n%100 || n%400==0;
      |                ~~~~~~~^~~~~~~~
foo.cc: In function 'int main()':
foo.cc:11:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   11 |         while(n1+1<n2 || n1<n2 && y1<=y2 && r1<=r2){
      |                          ~~~~~~~~~~~~~~~~^~~~~~~~~
foo.cc:12:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   12 |                 if(y1<=2 && rn(n1) || y1>2 && rn(n1+1)){
      |                    ~~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1101ms ≥284.0 KiB
#2 Accepted 5ms 284.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1093 5-6 过去了多少天
比赛
2023.8高级班结业模拟测试
语言
C++
递交时间
2023-08-09 09:43:15
评测时间
2023-08-09 09:43:15
评测机
分数
80
总耗时
≥1117ms
峰值内存
≥412.0 KiB