Submission #1370632
Source Code Expand
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); ArrayList<Long> num = new ArrayList<Long>(); ArrayList<String> param = new ArrayList<String>(); while (sc.hasNext()) { if(sc.hasNextInt()){ num.add(sc.nextLong()); } else { param.add(sc.nextLine()); } } Method(num); } static void Method(ArrayList<Long> num){ if(num.get(0) > num.get(1)){ System.out.println(num.get(0)); } else { System.out.println(num.get(1)); } } }
Submission Info
Submission Time | |
---|---|
Task | A - 正直者 |
User | unirita153 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 610 Byte |
Status | AC |
Exec Time | 99 ms |
Memory | 25172 KB |
Judge Result
Set Name | all | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
all | 00_sample_01.txt, 00_sample_02.txt, kensho_diff01, kensho_diff02, kensho_diff03, kensho_diff04, kensho_diff05, kensho_min-max01, kensho_min-max02, kensho_min-max03, kensho_min-max04, kensho_min-max05, kensho_min-max06, kensho_min-max07, kensho_min-max08, kensho_min-max09, kensho_min-max10, kensho_rand01, kensho_rand02, kensho_rand03, kensho_rand04, kensho_rand05, kensho_rand06, kensho_rand07, kensho_rand08, kensho_rand09, kensho_rand10 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 96 ms | 20052 KB |
00_sample_02.txt | AC | 95 ms | 21716 KB |
kensho_diff01 | AC | 97 ms | 20560 KB |
kensho_diff02 | AC | 96 ms | 19028 KB |
kensho_diff03 | AC | 95 ms | 21076 KB |
kensho_diff04 | AC | 95 ms | 18516 KB |
kensho_diff05 | AC | 96 ms | 21588 KB |
kensho_min-max01 | AC | 97 ms | 25172 KB |
kensho_min-max02 | AC | 97 ms | 21204 KB |
kensho_min-max03 | AC | 99 ms | 19796 KB |
kensho_min-max04 | AC | 94 ms | 19924 KB |
kensho_min-max05 | AC | 95 ms | 21844 KB |
kensho_min-max06 | AC | 95 ms | 21844 KB |
kensho_min-max07 | AC | 98 ms | 21460 KB |
kensho_min-max08 | AC | 97 ms | 21460 KB |
kensho_min-max09 | AC | 97 ms | 19668 KB |
kensho_min-max10 | AC | 97 ms | 21588 KB |
kensho_rand01 | AC | 95 ms | 19796 KB |
kensho_rand02 | AC | 96 ms | 21716 KB |
kensho_rand03 | AC | 96 ms | 23508 KB |
kensho_rand04 | AC | 93 ms | 19796 KB |
kensho_rand05 | AC | 96 ms | 20692 KB |
kensho_rand06 | AC | 94 ms | 19796 KB |
kensho_rand07 | AC | 95 ms | 20692 KB |
kensho_rand08 | AC | 95 ms | 20820 KB |
kensho_rand09 | AC | 93 ms | 21972 KB |
kensho_rand10 | AC | 95 ms | 20564 KB |