记录详情

Accepted

/in/foo.cc: In function 'int ksm(int, int)':
/in/foo.cc:11:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if (bb&1) sum=(ll)sum*aa%mod; aa=(ll)aa*aa%mod;
   ^~
/in/foo.cc:11:33: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if (bb&1) sum=(ll)sum*aa%mod; aa=(ll)aa*aa%mod;
                                 ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:28:76: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   printf("%d\n",((ll)work(x+z-y+1,0)*work(x,1)%mod*work(z-y+1,1)+mod-1)%mod);
                                                                            ^
# 状态 耗时 内存占用
#1 Accepted 24ms 7.98 MiB
#2 Accepted 37ms 7.875 MiB
#3 Accepted 34ms 8.0 MiB
#4 Accepted 38ms 7.875 MiB
#5 Accepted 32ms 7.961 MiB
#6 Accepted 26ms 7.875 MiB
#7 Accepted 24ms 7.988 MiB
#8 Accepted 34ms 7.961 MiB
#9 Accepted 38ms 7.957 MiB

信息

递交者
类型
递交
题目
序列统计
题目数据
下载
语言
C++
递交时间
2018-08-11 17:31:05
评测时间
2018-08-11 17:31:05
评测机
分数
90
总耗时
291ms
峰值内存
8.0 MiB