Submission #111065
Source Code Expand
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static void main(String[] args) throws IOException { int x = 0; int y = 0; try (BufferedReader br = new BufferedReader( new InputStreamReader(System.in))) { Matcher m = Pattern.compile("^(\\d+) (\\d+)$").matcher(br.readLine()); if (m.find()) { x = Integer.parseInt(m.group(1)); y = Integer.parseInt(m.group(2)); if (x > y) System.out.println(x); else System.out.println(y); } } } }
Submission Info
Submission Time | |
---|---|
Task | A - 正直者 |
User | hosono |
Language | Java (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 650 Byte |
Status | AC |
Exec Time | 484 ms |
Memory | 21172 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 | 444 ms | 21044 KB |
00_sample_02.txt | AC | 420 ms | 21044 KB |
kensho_diff01 | AC | 436 ms | 21044 KB |
kensho_diff02 | AC | 417 ms | 21044 KB |
kensho_diff03 | AC | 421 ms | 21044 KB |
kensho_diff04 | AC | 409 ms | 21036 KB |
kensho_diff05 | AC | 426 ms | 21040 KB |
kensho_min-max01 | AC | 438 ms | 21048 KB |
kensho_min-max02 | AC | 424 ms | 21044 KB |
kensho_min-max03 | AC | 422 ms | 21148 KB |
kensho_min-max04 | AC | 424 ms | 21040 KB |
kensho_min-max05 | AC | 424 ms | 21048 KB |
kensho_min-max06 | AC | 484 ms | 21172 KB |
kensho_min-max07 | AC | 425 ms | 21044 KB |
kensho_min-max08 | AC | 431 ms | 21040 KB |
kensho_min-max09 | AC | 429 ms | 21040 KB |
kensho_min-max10 | AC | 424 ms | 21036 KB |
kensho_rand01 | AC | 426 ms | 21056 KB |
kensho_rand02 | AC | 421 ms | 21036 KB |
kensho_rand03 | AC | 421 ms | 20920 KB |
kensho_rand04 | AC | 419 ms | 21048 KB |
kensho_rand05 | AC | 423 ms | 21172 KB |
kensho_rand06 | AC | 435 ms | 21044 KB |
kensho_rand07 | AC | 418 ms | 20920 KB |
kensho_rand08 | AC | 423 ms | 21036 KB |
kensho_rand09 | AC | 431 ms | 21044 KB |
kensho_rand10 | AC | 439 ms | 21040 KB |