Accepted

foo.cc: In function ‘std::string jia(std::string)’:
foo.cc:7:33: warning: for increment expression has no effect [-Wunused-value]
    7 |         for(int i=a.size();i--;i>=0)
      |                                ~^~~
foo.cc: In function ‘std::string ch(std::string)’:
foo.cc:25:34: warning: for increment expression has no effect [-Wunused-value]
   25 |         for (int i=b.size();i--;i>=0)
      |                                 ~^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 508.0 KiB
#2 Accepted 2ms 512.0 KiB
#3 Accepted 2ms 512.0 KiB
#4 Accepted 2ms 500.0 KiB
#5 Accepted 2ms 516.0 KiB
#6 Accepted 3ms 392.0 KiB
#7 Accepted 2ms 772.0 KiB
#8 Accepted 2ms 512.0 KiB
#9 Accepted 13ms 356.0 KiB
#10 Accepted 606ms 828.0 KiB

信息

递交者
类型
递交
题目
P3002 猴子吃桃 (eat)
语言
C++
递交时间
2026-02-10 12:54:21
评测时间
2026-02-10 12:54:21
评测机
分数
100
总耗时
642ms
峰值内存
828.0 KiB