Submission #3602170
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); int d = scan.nextInt(); if (a < b) { if (c < d) { System.out.println(a + c); } else { System.out.println(a + d); } } else { if (c < d) { System.out.println(b + c); } else { System.out.println(b + d); } } } }
Submission Info
Submission Time | |
---|---|
Task | A - Traveling Budget |
User | mageehoa |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 522 Byte |
Status | AC |
Exec Time | 99 ms |
Memory | 22868 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, sample-03.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, sample-01.txt, sample-02.txt, sample-03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 99 ms | 20436 KB |
02.txt | AC | 98 ms | 20948 KB |
03.txt | AC | 97 ms | 20564 KB |
04.txt | AC | 97 ms | 19284 KB |
05.txt | AC | 97 ms | 21204 KB |
06.txt | AC | 97 ms | 20948 KB |
07.txt | AC | 97 ms | 18772 KB |
08.txt | AC | 95 ms | 19796 KB |
09.txt | AC | 97 ms | 18900 KB |
sample-01.txt | AC | 96 ms | 18900 KB |
sample-02.txt | AC | 97 ms | 19028 KB |
sample-03.txt | AC | 96 ms | 22868 KB |