Submission #1268232


Source Code Expand

a,b,c[1<<17],f,i;main(j){for(;~scanf("%d%d",&a,&b);)--j?c[a]++,c[b]++:0;for(;++i<1<<17;f+=c[i]%2);puts(f?"NO":"YES");}

Submission Info

Submission Time
Task B - Unplanned Queries
User kotatsugame
Language C (GCC 5.4.1)
Score 500
Code Size 118 Byte
Status AC
Exec Time 17 ms
Memory 512 KB

Compile Error

./Main.c:1:1: warning: data definition has no type or storage class
 a,b,c[1<<17],f,i;main(j){for(;~scanf("%d%d",&a,&b);)--j?c[a]++,c[b]++:0;for(;++i<1<<17;f+=c[i]%2);puts(f?"NO":"YES");}
 ^
./Main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
./Main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int]
 a,b,c[1<<17],f,i;main(j){for(;~scanf("%d%d",&a,&b);)--j?c[a]++,c[b]++:0;for(;++i<1<<17;f+=c[i]%2);puts(f?"NO":"YES");}
   ^
./Main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int]
 a,b,c[1<<17],f,i;main(j){for(;~scanf("%d%d",&a,&b);)--j?c[a]++,c[b]++:0;for(;++i<1<<17;f+=c[i]%2);puts(f?"NO":"YES");}
     ^
./Main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘f’ [-Wimplicit-int]
 a,b,c[1<<17],f,i;main(j){for(;~scanf("%d%d",&a,&b);)--j?c[a]++,c[b]++:0;for(;++i<1<<17;f+=c[i]%2);puts(f?"NO":"YES");}
              ^
./Main.c:1:16: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
 a,b,c[1<<17],f,i;...

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 500 / 500
Status
AC × 2
AC × 20
Set Name Test Cases
Sample sample1.txt, sample2.txt
All sample1.txt, sample2.txt, in1.txt, in10.txt, in11.txt, in12.txt, in13.txt, in14.txt, in15.txt, in16.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, in8.txt, in9.txt, sample1.txt, sample2.txt
Case Name Status Exec Time Memory
in1.txt AC 17 ms 512 KB
in10.txt AC 17 ms 512 KB
in11.txt AC 15 ms 256 KB
in12.txt AC 17 ms 512 KB
in13.txt AC 17 ms 512 KB
in14.txt AC 17 ms 512 KB
in15.txt AC 3 ms 256 KB
in16.txt AC 1 ms 128 KB
in2.txt AC 17 ms 512 KB
in3.txt AC 17 ms 512 KB
in4.txt AC 17 ms 512 KB
in5.txt AC 17 ms 512 KB
in6.txt AC 17 ms 512 KB
in7.txt AC 17 ms 512 KB
in8.txt AC 17 ms 512 KB
in9.txt AC 17 ms 512 KB
sample1.txt AC 1 ms 128 KB
sample2.txt AC 1 ms 128 KB