/ Vijos /

记录详情

Accepted

/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 Accepted 3ms 368.0 KiB
#2 Accepted 3ms 352.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 3ms 340.0 KiB
#5 Accepted 3ms 336.0 KiB
#6 Accepted 3ms 364.0 KiB
#7 Accepted 3ms 360.0 KiB
#8 Accepted 3ms 380.0 KiB
#9 Accepted 3ms 384.0 KiB
#10 Accepted 4ms 348.0 KiB

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C++
递交时间
2017-10-24 11:49:16
评测时间
2017-10-24 11:49:16
评测机
分数
100
总耗时
33ms
峰值内存
384.0 KiB