/ 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 320.0 KiB

信息

递交者
类型
自测
题目
P1093 文科生的悲哀
语言
C++
递交时间
2021-11-27 16:42:53
评测时间
2021-11-27 16:42:53
评测机
分数
10
总耗时
1ms
峰值内存
320.0 KiB