/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:8:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (i=0;i<=999999;i++) for (j=1;j<=6;j++) f[i][j]=0;d[6]=1;for (i=5;i;i--) d[i]=d[i+1]*10;
     ^~~
foo.cc:8:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
     for (i=0;i<=999999;i++) for (j=1;j<=6;j++) f[i][j]=0;d[6]=1;for (i=5;i;i--) d[i]=d[i+1]*10;
                                                          ^
foo.cc:9:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     a[1]=0;for (i=1;i<=6;i++) {scanf("%c",&x);j=x-'0';a[1]=a[1]*10+j;}b[1]=1;c[1]=0;f[a[1]][1]=1;scanf("%c",&x);
                                ~~~~~^~~~~~~~~
foo.cc:9:103: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     a[1]=0;for (i=1;i<=6;i++) {scanf("%c",&x);j=x-'0';a[1]=a[1]*10+j;}b[1]=1;c[1]=0;f[a[1]][1]=1;scanf("%c",&x);
                                                                                                  ~~~~~^~~~~~~~~
foo.cc:10:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     a[0]=0;for (i=1;i<=6;i++) {scanf("%c",&x);j=x-'0';a[0]=a[0]*10+j;}if (a[0]==a[1]) {printf("%d",0);return 0;}
                                ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 14ms 8.719 MiB
#2 Accepted 588ms 62.219 MiB
#3 Accepted 8ms 6.895 MiB
#4 Accepted 738ms 73.508 MiB
#5 Accepted 115ms 22.277 MiB
#6 Accepted 901ms 75.754 MiB
#7 Accepted 633ms 65.43 MiB
#8 Accepted 678ms 71.488 MiB
#9 Accepted 559ms 62.488 MiB
#10 Accepted 476ms 55.934 MiB

信息

递交者
类型
递交
题目
P1673 聪明的打字员
语言
C++
递交时间
2021-02-05 21:05:44
评测时间
2021-02-05 21:05:44
评测机
分数
100
总耗时
4714ms
峰值内存
75.754 MiB