/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'gj gjin()':
/in/foo.cc:31:43: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[999]' [-Wformat=]
 inline gj gjin(){char s[999];scanf("%s",&s);register gj a;register int i=strlen(s)-1,t=0,n=0,e=0;for(;i>0;i--)if(s[i]>47&&s[i]<58)break;for(;e<=i;e++)if(s[e]>48&&s[e]<58)break;a.w[n]=0;a.l=1;if(i==e){if(s[i]>48&&s[i]<58)a.w[n]=s[i]-48;return a;}
                                         ~~^
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 332.0 KiB
#2 Wrong Answer 1ms 328.0 KiB
#3 Wrong Answer 1ms 332.0 KiB
#4 Wrong Answer 1ms 336.0 KiB
#5 Wrong Answer 1ms 324.0 KiB
#6 Wrong Answer 1ms 328.0 KiB
#7 Wrong Answer 3ms 328.0 KiB
#8 Wrong Answer 1ms 332.0 KiB
#9 Wrong Answer 1ms 324.0 KiB
#10 Wrong Answer 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C++
递交时间
2017-10-24 11:48:39
评测时间
2017-10-24 11:48:39
评测机
分数
0
总耗时
18ms
峰值内存
340.0 KiB