Submission #536544
Source Code Expand
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double a = sc.nextInt();
double b = sc.nextInt();
double c = sc.nextInt();
double d = sc.nextInt();
if(b/a > d/c) {
System.out.println("TAKAHASHI");
} else if (b/a < d/c) {
System.out.println("AOKI");
} else {
System.out.println("DRAW");
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - 勝率計算 |
| User | yms072 |
| Language | Java (OpenJDK 1.7.0) |
| Score | 100 |
| Code Size | 414 Byte |
| Status | AC |
| Exec Time | 508 ms |
| Memory | 23984 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 | 421 ms | 23864 KiB |
| 1.txt | AC | 420 ms | 23816 KiB |
| 10.txt | AC | 420 ms | 23764 KiB |
| 11.txt | AC | 414 ms | 23984 KiB |
| 12.txt | AC | 418 ms | 23896 KiB |
| 13.txt | AC | 409 ms | 23960 KiB |
| 14.txt | AC | 407 ms | 23860 KiB |
| 15.txt | AC | 406 ms | 23720 KiB |
| 16.txt | AC | 408 ms | 23912 KiB |
| 17.txt | AC | 408 ms | 23916 KiB |
| 18.txt | AC | 404 ms | 23848 KiB |
| 19.txt | AC | 404 ms | 23924 KiB |
| 2.txt | AC | 402 ms | 23792 KiB |
| 20.txt | AC | 416 ms | 23900 KiB |
| 21.txt | AC | 508 ms | 23848 KiB |
| 22.txt | AC | 403 ms | 23720 KiB |
| 23.txt | AC | 405 ms | 23852 KiB |
| 24.txt | AC | 403 ms | 23940 KiB |
| 25.txt | AC | 401 ms | 23812 KiB |
| 26.txt | AC | 403 ms | 23896 KiB |
| 27.txt | AC | 407 ms | 23860 KiB |
| 28.txt | AC | 405 ms | 23932 KiB |
| 29.txt | AC | 403 ms | 23916 KiB |
| 3.txt | AC | 403 ms | 23812 KiB |
| 4.txt | AC | 403 ms | 23796 KiB |
| 5.txt | AC | 403 ms | 23812 KiB |
| 6.txt | AC | 405 ms | 23932 KiB |
| 7.txt | AC | 414 ms | 23936 KiB |
| 8.txt | AC | 424 ms | 23772 KiB |
| 9.txt | AC | 429 ms | 23980 KiB |
| subtask0_sample_01.txt | AC | 421 ms | 23916 KiB |
| subtask0_sample_02.txt | AC | 413 ms | 23816 KiB |
| subtask0_sample_03.txt | AC | 413 ms | 23888 KiB |