Submission #535578
Source Code Expand
import java.io.BufferedReader; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.LinkedList; import java.util.Map; import java.util.Map.Entry; import java.util.PriorityQueue; import java.util.StringTokenizer; import java.util.TreeSet; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); final int A = sc.nextInt(); final int B = sc.nextInt(); final int C = sc.nextInt(); final int D = sc.nextInt(); if(A * D < B * C){ System.out.println("TAKAHASHI"); }else if(A * D > B * C){ System.out.println("AOKI"); }else{ System.out.println("DRAW"); } } public static class Scanner implements Closeable { private BufferedReader br; private StringTokenizer tok; public Scanner(InputStream is) throws IOException { br = new BufferedReader(new InputStreamReader(is)); } private void getLine() throws IOException { while (!hasNext()) { tok = new StringTokenizer(br.readLine()); } } private boolean hasNext() { return tok != null && tok.hasMoreTokens(); } public String next() throws IOException { getLine(); return tok.nextToken(); } public int nextInt() throws IOException { return Integer.parseInt(next()); } public long nextLong() throws IOException { return Long.parseLong(next()); } public void close() throws IOException { br.close(); } } }
Submission Info
Submission Time | |
---|---|
Task | A - 勝率計算 |
User | mondatto |
Language | Java (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 1823 Byte |
Status | AC |
Exec Time | 340 ms |
Memory | 22492 KB |
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 | 329 ms | 22460 KB |
1.txt | AC | 338 ms | 22320 KB |
10.txt | AC | 331 ms | 22416 KB |
11.txt | AC | 327 ms | 22428 KB |
12.txt | AC | 332 ms | 22316 KB |
13.txt | AC | 330 ms | 22408 KB |
14.txt | AC | 329 ms | 22424 KB |
15.txt | AC | 335 ms | 22404 KB |
16.txt | AC | 317 ms | 22332 KB |
17.txt | AC | 320 ms | 22320 KB |
18.txt | AC | 340 ms | 22392 KB |
19.txt | AC | 326 ms | 22416 KB |
2.txt | AC | 322 ms | 22376 KB |
20.txt | AC | 320 ms | 22424 KB |
21.txt | AC | 324 ms | 22440 KB |
22.txt | AC | 327 ms | 22416 KB |
23.txt | AC | 313 ms | 22392 KB |
24.txt | AC | 321 ms | 22432 KB |
25.txt | AC | 332 ms | 22336 KB |
26.txt | AC | 324 ms | 22400 KB |
27.txt | AC | 329 ms | 22380 KB |
28.txt | AC | 314 ms | 22424 KB |
29.txt | AC | 325 ms | 22492 KB |
3.txt | AC | 327 ms | 22304 KB |
4.txt | AC | 318 ms | 22356 KB |
5.txt | AC | 317 ms | 22436 KB |
6.txt | AC | 325 ms | 22340 KB |
7.txt | AC | 325 ms | 22388 KB |
8.txt | AC | 314 ms | 22420 KB |
9.txt | AC | 321 ms | 22412 KB |
subtask0_sample_01.txt | AC | 330 ms | 22316 KB |
subtask0_sample_02.txt | AC | 325 ms | 22420 KB |
subtask0_sample_03.txt | AC | 325 ms | 22432 KB |