记录详情

Accepted

/in/foo.cc:3:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main(){
      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:5:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;i++)scanf("%u",&num[i]);
              ~^~~
/in/foo.cc:6:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;i++)for(int j=1;i*j<=n;j++)t[i*j]+=num[i];
              ~^~~
/in/foo.cc:6:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;i++)for(int j=1;i*j<=n;j++)t[i*j]+=num[i];
                                   ~~~^~~
/in/foo.cc:7:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;i++)ans^=t[i];
              ~^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 488.0 KiB
#2 Accepted 3ms 464.0 KiB
#3 Accepted 10ms 916.0 KiB
#4 Accepted 1ms 360.0 KiB
#5 Accepted 1ms 328.0 KiB
#6 Accepted 13ms 980.0 KiB
#7 Accepted 1ms 376.0 KiB
#8 Accepted 1ms 316.0 KiB
#9 Accepted 1ms 376.0 KiB
#10 Accepted 1ms 380.0 KiB

信息

递交者
类型
递交
题目
P1013 ‘你今天AC了吗’ 团队内部赛彭德巡回赛 彭德的救赎
语言
C++
递交时间
2024-10-29 19:26:35
评测时间
2024-10-29 19:26:35
评测机
分数
2621440
总耗时
40ms
峰值内存
980.0 KiB