Submission #559952


Source Code Expand

#include <stdio.h>

int main (void){
  int a,b,c,d;
  char taka[]="TAKAHASHI";
  char dra[]="DRAW";
  scanf("%d %d %d %d",&a,&b,&c,&d);
  if((a/b)>(c/d)){
    printf("%s\n",dra);
  }else{
    printf("%s\n",taka);
  }
  return 0;
}


Submission Info

Submission Time
Task A - 勝率計算
User miccchi
Language C (GCC 4.9.2)
Score 0
Code Size 249 Byte
Status WA
Exec Time 28 ms
Memory 800 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:7:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d %d %d",&a,&b,&c,&d);
   ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 1
WA × 2
AC × 11
WA × 22
Set Name Test Cases
Sample subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt
All 0.txt, 1.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 2.txt, 20.txt, 21.txt, 22.txt, 23.txt, 24.txt, 25.txt, 26.txt, 27.txt, 28.txt, 29.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt
Case Name Status Exec Time Memory
0.txt WA 27 ms 776 KB
1.txt AC 25 ms 784 KB
10.txt AC 24 ms 696 KB
11.txt WA 24 ms 792 KB
12.txt WA 25 ms 788 KB
13.txt AC 25 ms 800 KB
14.txt WA 25 ms 668 KB
15.txt WA 24 ms 672 KB
16.txt AC 25 ms 708 KB
17.txt WA 24 ms 716 KB
18.txt WA 27 ms 784 KB
19.txt AC 24 ms 792 KB
2.txt WA 22 ms 800 KB
20.txt WA 24 ms 800 KB
21.txt WA 26 ms 692 KB
22.txt AC 25 ms 788 KB
23.txt WA 24 ms 792 KB
24.txt WA 24 ms 788 KB
25.txt AC 25 ms 788 KB
26.txt WA 24 ms 652 KB
27.txt WA 24 ms 792 KB
28.txt AC 23 ms 700 KB
29.txt WA 25 ms 784 KB
3.txt WA 22 ms 800 KB
4.txt AC 28 ms 796 KB
5.txt WA 23 ms 660 KB
6.txt WA 23 ms 700 KB
7.txt AC 26 ms 792 KB
8.txt WA 26 ms 648 KB
9.txt WA 23 ms 672 KB
subtask0_sample_01.txt WA 23 ms 800 KB
subtask0_sample_02.txt AC 23 ms 800 KB
subtask0_sample_03.txt WA 24 ms 796 KB