/ StarOI /

记录详情

Time Exceeded

/in/foo.cc: In function 'long long int ch(int)':
/in/foo.cc:9:10: warning: array subscript has type 'char' [-Wchar-subscripts]
  --s[a[w]];
          ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:22:17: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[60]' [-Wformat=]
  scanf("%s",&a+1);
                 ^
/in/foo.cc:25:31: warning: array subscript has type 'char' [-Wchar-subscripts]
  for(int i=1;i<=n;++i)++s[a[i]];
                               ^
/in/foo.cc:26:35: warning: array subscript has type 'char' [-Wchar-subscripts]
  for(int i=1;i<=n;++i)ans+=(d[a[i]]-s[a[i]])*ch(i);
                                   ^
/in/foo.cc:26:43: warning: array subscript has type 'char' [-Wchar-subscripts]
  for(int i=1;i<=n;++i)ans+=(d[a[i]]-s[a[i]])*ch(i);
                                           ^
# 状态 耗时 内存占用
#1 Time Exceeded ≥1033ms ≥356.0 KiB
#2 Time Exceeded ≥1006ms ≥336.0 KiB
#3 Time Exceeded ≥1031ms ≥340.0 KiB
#4 Time Exceeded ≥1003ms ≥352.0 KiB
#5 Time Exceeded ≥1023ms ≥328.0 KiB
#6 Time Exceeded ≥1027ms ≥368.0 KiB
#7 Time Exceeded ≥1017ms ≥256.0 KiB
#8 Time Exceeded ≥1029ms ≥360.0 KiB
#9 Time Exceeded ≥1006ms ≥376.0 KiB
#10 Time Exceeded ≥1020ms ≥344.0 KiB
#11 Time Exceeded ≥1002ms ≥340.0 KiB
#12 Time Exceeded ≥1002ms ≥372.0 KiB
#13 Time Exceeded ≥1005ms ≥340.0 KiB
#14 Time Exceeded ≥1001ms ≥336.0 KiB
#15 Time Exceeded ≥1001ms ≥344.0 KiB
#16 Time Exceeded ≥1003ms ≥364.0 KiB
#17 Time Exceeded ≥1003ms ≥332.0 KiB
#18 Time Exceeded ≥1003ms ≥348.0 KiB
#19 Time Exceeded ≥1004ms ≥368.0 KiB
#20 Time Exceeded ≥1004ms ≥368.0 KiB

信息

递交者
类型
递交
题目
下雨了
语言
C++
递交时间
2017-09-08 14:51:34
评测时间
2017-09-08 14:51:34
评测机
分数
0
总耗时
≥20231ms
峰值内存
≥376.0 KiB