/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:34:37: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
             for (int k = 0; (k << i - 1) <= j && k <= num; k += 2) {
                                   ~~^~~
/in/foo.cc:35:53: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
                 f[i][j] += 1LL * f[i-1][j - (k << i - 1)] * C(num, k) % mod;
                                                   ~~^~~
/in/foo.cc:44:23: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
     printf("%lld", ans);
                       ^
# 状态 耗时 内存占用
#1 Accepted 2ms 912.0 KiB
#2 Accepted 6ms 580.0 KiB
#3 Accepted 2ms 344.0 KiB
#4 Accepted 4ms 344.0 KiB
#5 Accepted 2ms 340.0 KiB
#6 Accepted 2ms 344.0 KiB
#7 Accepted 4ms 344.0 KiB
#8 Accepted 2ms 344.0 KiB
#9 Accepted 2ms 344.0 KiB
#10 Accepted 5ms 388.0 KiB
#11 Accepted 347ms 11.82 MiB
#12 Accepted 353ms 12.027 MiB
#13 Accepted 355ms 12.246 MiB
#14 Accepted 331ms 11.16 MiB
#15 Accepted 339ms 11.465 MiB
#16 Accepted 322ms 11.609 MiB
#17 Accepted 337ms 11.828 MiB
#18 Accepted 343ms 12.098 MiB
#19 Accepted 299ms 12.203 MiB
#20 Accepted 280ms 11.438 MiB

信息

递交者
类型
递交
题目
P2055 移动金币
语言
C++
递交时间
2019-05-15 17:48:14
评测时间
2019-05-15 17:48:14
评测机
分数
100
总耗时
3347ms
峰值内存
12.246 MiB