Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    7 |     for(int i=0;i<a.size();i++)
      |                 ~^~~~~~~~~
/in/foo.cc:7:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    7 |     for(int i=0;i<a.size();i++)
      |     ^~~
/in/foo.cc:10:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   10 |         sort(b.begin(), b.end(), greater<char>());
      |         ^~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 464.0 KiB
#2 Accepted 2ms 476.0 KiB
#3 Accepted 2ms 404.0 KiB
#4 Accepted 1ms 348.0 KiB
#5 Accepted 2ms 348.0 KiB
#6 Accepted 2ms 484.0 KiB
#7 Accepted 2ms 488.0 KiB
#8 Accepted 2ms 480.0 KiB
#9 Accepted 2ms 484.0 KiB
#10 Accepted 2ms 472.0 KiB
#11 Accepted 2ms 484.0 KiB
#12 Accepted 2ms 528.0 KiB
#13 Accepted 2ms 540.0 KiB
#14 Accepted 2ms 532.0 KiB
#15 Accepted 6ms 864.0 KiB
#16 Accepted 3ms 724.0 KiB
#17 Accepted 3ms 720.0 KiB
#18 Accepted 5ms 760.0 KiB
#19 Accepted 5ms 764.0 KiB
#20 Accepted 47ms 4.289 MiB
#21 Accepted 18ms 2.344 MiB
#22 Accepted 18ms 2.312 MiB
#23 Accepted 37ms 2.953 MiB
#24 Accepted 37ms 2.965 MiB
#25 Accepted 37ms 2.945 MiB

信息

递交者
类型
递交
题目
P2987 拼数
比赛
2025.11.15中级班练习
语言
C++
递交时间
2025-11-15 18:39:39
评测时间
2025-11-15 18:39:39
评测机
分数
100
总耗时
255ms
峰值内存
4.289 MiB