Submission #1437004
Source Code Expand
s;main(a,b){scanf("%*d");for(;~scanf("%d%d",&a,&b);s+=a*b);printf("%.f\n",s*1.05);}
Submission Info
Submission Time | |
---|---|
Task | A - 元気にお使い!高橋君 |
User | sira |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 83 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 128 KB |
Compile Error
./Main.c:1:1: warning: data definition has no type or storage class s;main(a,b){scanf("%*d");for(;~scanf("%d%d",&a,&b);s+=a*b);printf("%.f\n",s*1.05);} ^ ./Main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] ./Main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int] s;main(a,b){scanf("%*d");for(;~scanf("%d%d",&a,&b);s+=a*b);printf("%.f\n",s*1.05);} ^ ./Main.c: In function ‘main’: ./Main.c:1:3: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int] ./Main.c:1:3: warning: type of ‘b’ defaults to ‘int’ [-Wimplicit-int] ./Main.c:1:13: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] s;main(a,b){scanf("%*d");for(;~scanf("%d%d",&a,&b);s+=a*b);printf("%.f\n",s*1.05);} ^ ./Main.c:1:13: warning: incompatible implicit declaration of built-in function ‘scanf’ ./Main.c:1:13: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ ./Main.c:1:60: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-dec...
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample1.txt, 00_sample2.txt, 00_sample3.txt, 00_sample4.txt, 01_rand_00.txt, 01_rand_01.txt, 01_rand_02.txt, 01_rand_03.txt, 01_rand_04.txt, 01_rand_05.txt, 01_rand_06.txt, 01_rand_07.txt, 01_rand_08.txt, 01_rand_09.txt, 01_rand_10.txt, 01_rand_11.txt, 01_rand_12.txt, 01_rand_13.txt, 01_rand_14.txt, 01_rand_15.txt, 01_rand_16.txt, 01_rand_17.txt, 01_rand_18.txt, 01_rand_19.txt, 02_maxrand_00.txt, 02_maxrand_01.txt, 02_maxrand_02.txt, 02_maxrand_03.txt, 02_maxrand_04.txt, 02_maxrand_05.txt, 02_maxrand_06.txt, 02_maxrand_07.txt, 02_maxrand_08.txt, 02_maxrand_09.txt, 02_maxrand_10.txt, 02_maxrand_11.txt, 02_maxrand_12.txt, 02_maxrand_13.txt, 02_maxrand_14.txt, 02_maxrand_15.txt, 02_maxrand_16.txt, 02_maxrand_17.txt, 02_maxrand_18.txt, 02_maxrand_19.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample1.txt | AC | 1 ms | 128 KB |
00_sample2.txt | AC | 0 ms | 128 KB |
00_sample3.txt | WA | 0 ms | 128 KB |
00_sample4.txt | WA | 0 ms | 128 KB |
01_rand_00.txt | AC | 1 ms | 128 KB |
01_rand_01.txt | WA | 0 ms | 128 KB |
01_rand_02.txt | WA | 0 ms | 128 KB |
01_rand_03.txt | AC | 0 ms | 128 KB |
01_rand_04.txt | WA | 0 ms | 128 KB |
01_rand_05.txt | AC | 0 ms | 128 KB |
01_rand_06.txt | AC | 0 ms | 128 KB |
01_rand_07.txt | AC | 0 ms | 128 KB |
01_rand_08.txt | AC | 0 ms | 128 KB |
01_rand_09.txt | AC | 0 ms | 128 KB |
01_rand_10.txt | AC | 0 ms | 128 KB |
01_rand_11.txt | AC | 0 ms | 128 KB |
01_rand_12.txt | WA | 0 ms | 128 KB |
01_rand_13.txt | WA | 0 ms | 128 KB |
01_rand_14.txt | AC | 0 ms | 128 KB |
01_rand_15.txt | WA | 0 ms | 128 KB |
01_rand_16.txt | AC | 0 ms | 128 KB |
01_rand_17.txt | WA | 0 ms | 128 KB |
01_rand_18.txt | WA | 0 ms | 128 KB |
01_rand_19.txt | AC | 0 ms | 128 KB |
02_maxrand_00.txt | AC | 0 ms | 128 KB |
02_maxrand_01.txt | AC | 0 ms | 128 KB |
02_maxrand_02.txt | WA | 0 ms | 128 KB |
02_maxrand_03.txt | AC | 0 ms | 128 KB |
02_maxrand_04.txt | WA | 0 ms | 128 KB |
02_maxrand_05.txt | WA | 0 ms | 128 KB |
02_maxrand_06.txt | WA | 1 ms | 128 KB |
02_maxrand_07.txt | AC | 1 ms | 128 KB |
02_maxrand_08.txt | AC | 1 ms | 128 KB |
02_maxrand_09.txt | WA | 1 ms | 128 KB |
02_maxrand_10.txt | WA | 1 ms | 128 KB |
02_maxrand_11.txt | AC | 1 ms | 128 KB |
02_maxrand_12.txt | WA | 1 ms | 128 KB |
02_maxrand_13.txt | WA | 0 ms | 128 KB |
02_maxrand_14.txt | AC | 0 ms | 128 KB |
02_maxrand_15.txt | WA | 0 ms | 128 KB |
02_maxrand_16.txt | AC | 0 ms | 128 KB |
02_maxrand_17.txt | WA | 0 ms | 128 KB |
02_maxrand_18.txt | WA | 0 ms | 128 KB |
02_maxrand_19.txt | AC | 0 ms | 128 KB |