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:28:48: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |                                 for(int k=j+1;k<s.size()-1;k++)
      |                                               ~^~~~~~~~~~~
/in/foo.cc:30:56: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   30 |                                         for(int l=k+1;l<s.size();l+=2)
      |                                                       ~^~~~~~~~~
/in/foo.cc:35:49: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   35 |                                                 if(check(s1)&&check(s2))
      |                                                 ^~
/in/foo.cc:36:65: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   36 |                                                         ans++;  cout<<ans<<endl;
      |                                                                 ^~~~
# 状态 耗时 内存占用
#1 Wrong Answer 5ms 540.0 KiB
#2 Time Exceeded ≥1001ms ≥556.0 KiB
#3 Wrong Answer 2ms 508.0 KiB
#4 Wrong Answer 2ms 524.0 KiB
#5 Wrong Answer 19ms 540.0 KiB
#6 Time Exceeded ≥1002ms ≥536.0 KiB
#7 Time Exceeded ≥1001ms ≥484.0 KiB
#8 Time Exceeded ≥1002ms ≥480.0 KiB
#9 Time Exceeded ≥1001ms ≥492.0 KiB
#10 Time Exceeded ≥1005ms ≥616.0 KiB

信息

递交者
类型
递交
题目
P3099 成双成对 pta202411T5
语言
C++
递交时间
2026-11-05 13:44:13
评测时间
2026-11-05 13:44:13
评测机
分数
0
总耗时
≥6044ms
峰值内存
≥616.0 KiB