/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;++i)std::cin>>a[i]>>c[i],cj*=a[i];
              ~^~~
/in/foo.cc:13:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;++i)b[i]=cj/a[i];
              ~^~~
/in/foo.cc:14:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;++i)ans=(ans+b[i]*c[i]*Work(b[i],a[i]))%cj;
              ~^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 348.0 KiB
#2 Accepted 3ms 356.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 260.0 KiB
#5 Accepted 3ms 352.0 KiB
#6 Accepted 3ms 364.0 KiB
#7 Accepted 3ms 380.0 KiB
#8 Accepted 3ms 344.0 KiB
#9 Time Exceeded ≥1006ms ≥372.0 KiB
#10 Accepted 3ms 364.0 KiB

信息

递交者
类型
递交
题目
P1164 曹冲养猪
语言
C++
递交时间
2018-06-19 17:08:10
评测时间
2018-06-19 17:08:10
评测机
分数
90
总耗时
≥1035ms
峰值内存
≥384.0 KiB