/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:16:21: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   f[i & 1][0] = f[i - 1 & 1][1];
                   ~~^~~
foo.cc:17:22: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   f[i & 1][1] = (f[i - 1 & 1][0] + f[i - 1 & 1][2]) % mod;
                    ~~^~~
foo.cc:17:40: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   f[i & 1][1] = (f[i - 1 & 1][0] + f[i - 1 & 1][2]) % mod;
                                      ~~^~~
foo.cc:18:22: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   f[i & 1][2] = (f[i - 1 & 1][1] + f[i - 1 & 1][3]) % mod;
                    ~~^~~
foo.cc:18:40: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   f[i & 1][2] = (f[i - 1 & 1][1] + f[i - 1 & 1][3]) % mod;
                                      ~~^~~
foo.cc:19:21: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   f[i & 1][3] = f[i - 1 & 1][2];
                   ~~^~~
foo.cc:22:15: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
  cout << (f[n + 1 & 1][1] + f[n + 1 & 1][2]) % mod;
             ~~^~~
foo.cc:22:33: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
  cout << (f[n + 1 & 1][1] + f[n + 1 & 1][2]) % mod;
                               ~~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 436.0 KiB
#2 Accepted 1ms 404.0 KiB
#3 Accepted 1ms 416.0 KiB
#4 Accepted 1ms 436.0 KiB
#5 Accepted 1ms 384.0 KiB
#6 Accepted 1ms 384.0 KiB
#7 Accepted 1ms 416.0 KiB
#8 Accepted 1ms 416.0 KiB
#9 Accepted 1ms 420.0 KiB
#10 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1093 文科生的悲哀
语言
C++
递交时间
2021-11-27 16:43:08
评测时间
2021-11-27 16:43:08
评测机
分数
100
总耗时
16ms
峰值内存
436.0 KiB