/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int kinds(std::string, int)':
foo.cc:7:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(sentence[start]>='3'||sentence[start]=='2'&&sentence[start+1]>'6')
                                               ^
foo.cc:7:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  if(sentence[start]>='3'||sentence[start]=='2'&&sentence[start+1]>'6')
    ^
foo.cc:12:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  if(sentence[start+1]=='0')
    ^
# 状态 耗时 内存占用
#1 Accepted 1ms 388.0 KiB
#2 Runtime Error Segmentation fault 18ms 24.586 MiB
#3 Wrong Answer 读取到 1979711488 ,应为 1698693120 2ms 504.0 KiB
#4 Wrong Answer 读取到 1535115264 ,应为 1698693120 2ms 624.0 KiB
#5 Wrong Answer 读取到 0 ,应为 1358954496 2ms 584.0 KiB
#6 Wrong Answer 读取到 -1308622848 ,应为 1358954496 2ms 620.0 KiB
#7 Wrong Answer 读取到 0 ,应为 2038431744 1ms 600.0 KiB
#8 Wrong Answer 读取到 -1610612736 ,应为 2038431744 2ms 592.0 KiB
#9 Wrong Answer 读取到 -1156841472 ,应为 1194393600 1ms 504.0 KiB
#10 Wrong Answer 读取到 1174405120 ,应为 1258291200 1ms 504.0 KiB

信息

递交者
类型
递交
题目
P1342 Alpha编码
语言
C++
递交时间
2020-10-31 17:05:29
评测时间
2020-10-31 17:05:29
评测机
分数
10
总耗时
36ms
峰值内存
24.586 MiB