Time Exceeded

/in/foo.cc: In function 'bool check(std::string)':
/in/foo.cc:10:30: warning: left operand of comma operator has no effect [-Wunused-value]
   10 |         for(int i=0,j=len/2;i<len/2,j<len;i++,j++)
      |                             ~^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:24:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |                 for(int i=0;i<s.size()-3;i++)
      |                             ~^~~~~~~~~~~
/in/foo.cc:26:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |                         for(int j=i+1;j<s.size()-2;j+=2)
      |                                       ~^~~~~~~~~~~
/in/foo.cc:29:48: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   29 |                                 for(int l=k+1;l<s.size();l+=2)
      |                                               ~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 532.0 KiB
#2 Accepted 136ms 516.0 KiB
#3 Accepted 1ms 536.0 KiB
#4 Accepted 1ms 532.0 KiB
#5 Accepted 2ms 532.0 KiB
#6 Time Exceeded ≥1002ms ≥532.0 KiB
#7 Time Exceeded ≥1002ms ≥484.0 KiB
#8 Time Exceeded ≥1002ms ≥480.0 KiB
#9 Time Exceeded ≥1002ms ≥484.0 KiB
#10 Time Exceeded ≥1005ms ≥640.0 KiB

信息

递交者
类型
递交
题目
P3099 成双成对 pta202411T5
语言
C++
递交时间
2026-11-05 14:00:41
评测时间
2026-11-05 14:00:41
评测机
分数
50
总耗时
≥5158ms
峰值内存
≥640.0 KiB