Accepted

foo.cc: In function 'int WeekdayOfTheFirstDay(int, int)':
foo.cc:11:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   11 |   if(i%400==0 || i%4==0 && i%100!=0)
      |                  ~~~~~~~^~~~~~~~~~~
foo.cc:31:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   31 |    if(year%400==0 || year%4==0 && year%100!=0)
      |                      ~~~~~~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'void daying(int, int)':
foo.cc:54:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   54 |   if(year%400==0||year%4==0&&year%100!=0)
      |                   ~~~~~~~~~^~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1103 打印年历
语言
C++
递交时间
2021-12-11 12:45:13
评测时间
2021-12-11 12:45:13
评测机
分数
100
总耗时
5ms
峰值内存
384.0 KiB