Submission #1316899
Source Code Expand
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String[] values = reader.readLine().split(" "); long first = Integer.valueOf(values[0])*Integer.valueOf(values[1]); long second = Integer.valueOf(values[2])*Integer.valueOf(values[3]); if (first <= second) { System.out.print(second); } else { System.out.println(first); } // PrintWriter writer = new PrintWriter(new OutputStreamWriter(System.out)); // // // // writer.close(); } }
Submission Info
Submission Time | |
---|---|
Task | A - Two Rectangles |
User | wangfonda |
Language | Java7 (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 692 Byte |
Status | AC |
Exec Time | 76 ms |
Memory | 22612 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
All | sample_01.txt, sample_02.txt, subtask_1_abmax_01.txt, subtask_1_allmax_01.txt, subtask_1_cdmax_01.txt, subtask_1_rand_01.txt, subtask_1_rand_02.txt, subtask_1_rand_03.txt, subtask_1_same_01.txt, subtask_1_same_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 76 ms | 20564 KB |
sample_02.txt | AC | 74 ms | 18644 KB |
subtask_1_abmax_01.txt | AC | 74 ms | 18644 KB |
subtask_1_allmax_01.txt | AC | 76 ms | 22612 KB |
subtask_1_cdmax_01.txt | AC | 76 ms | 18772 KB |
subtask_1_rand_01.txt | AC | 74 ms | 18772 KB |
subtask_1_rand_02.txt | AC | 76 ms | 18644 KB |
subtask_1_rand_03.txt | AC | 75 ms | 18772 KB |
subtask_1_same_01.txt | AC | 75 ms | 20692 KB |
subtask_1_same_02.txt | AC | 75 ms | 20564 KB |