Submission #536042
Source Code Expand
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double ans1,ans2;
ArrayList<Integer> array = new ArrayList<Integer>();
for (int i = 0; i < 4; i++) {
array.add(sc.nextInt());
}
ans1 = (double)array.get(1) / array.get(0);
ans2 = (double)array.get(3) / array.get(2);
if (ans1 < ans2) {
System.out.println(("AOKI"));
} else if (ans1 > ans2) {
System.out.println("TAKAHASHI");
} else {
System.out.println("DRAW");
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - 勝率計算 |
| User | aiueo1104 |
| Language | Java (OpenJDK 1.7.0) |
| Score | 100 |
| Code Size | 599 Byte |
| Status | AC |
| Exec Time | 396 ms |
| Memory | 23980 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| 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 | AC | 391 ms | 23912 KiB |
| 1.txt | AC | 373 ms | 23844 KiB |
| 10.txt | AC | 374 ms | 23948 KiB |
| 11.txt | AC | 376 ms | 23904 KiB |
| 12.txt | AC | 379 ms | 23844 KiB |
| 13.txt | AC | 382 ms | 23948 KiB |
| 14.txt | AC | 396 ms | 23884 KiB |
| 15.txt | AC | 382 ms | 23856 KiB |
| 16.txt | AC | 379 ms | 23876 KiB |
| 17.txt | AC | 383 ms | 23948 KiB |
| 18.txt | AC | 396 ms | 23904 KiB |
| 19.txt | AC | 380 ms | 23956 KiB |
| 2.txt | AC | 383 ms | 23964 KiB |
| 20.txt | AC | 384 ms | 23960 KiB |
| 21.txt | AC | 383 ms | 23840 KiB |
| 22.txt | AC | 382 ms | 23892 KiB |
| 23.txt | AC | 393 ms | 23908 KiB |
| 24.txt | AC | 368 ms | 23848 KiB |
| 25.txt | AC | 379 ms | 23948 KiB |
| 26.txt | AC | 382 ms | 23860 KiB |
| 27.txt | AC | 375 ms | 23884 KiB |
| 28.txt | AC | 376 ms | 23948 KiB |
| 29.txt | AC | 377 ms | 23856 KiB |
| 3.txt | AC | 366 ms | 23944 KiB |
| 4.txt | AC | 367 ms | 23980 KiB |
| 5.txt | AC | 380 ms | 23912 KiB |
| 6.txt | AC | 378 ms | 23960 KiB |
| 7.txt | AC | 372 ms | 23908 KiB |
| 8.txt | AC | 378 ms | 23880 KiB |
| 9.txt | AC | 373 ms | 23952 KiB |
| subtask0_sample_01.txt | AC | 376 ms | 23852 KiB |
| subtask0_sample_02.txt | AC | 374 ms | 23932 KiB |
| subtask0_sample_03.txt | AC | 374 ms | 23888 KiB |