Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:43:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < a.size(); i ++, time ++ ) res += a[i] * time;
                     ~~^~~~~~~~~~
/in/foo.cc:44:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < b.size(); i ++, time ++ ) res += b[i] * time;
                     ~~^~~~~~~~~~
/in/foo.cc:45:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll {aka long long int}' [-Wformat=]
     printf("%d", res);
                     ^
# 状态 耗时 内存占用
#1 Accepted 1ms 376.0 KiB
#2 Accepted 1ms 376.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 1ms 424.0 KiB

信息

递交者
类型
递交
题目
P2425 重排数
语言
C++
递交时间
2024-07-26 15:37:17
评测时间
2024-07-26 15:37:17
评测机
分数
100
总耗时
6ms
峰值内存
424.0 KiB