Submission #112440
Source Code Expand
import java.io.IOException; import java.io.InputStream; public class Main { private static InputStream is = null; static { is = System.in; } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(parseNum()-parseNum()); } private static int parseNum() { try { int buf = 0; int num = 0; // 0~9以外は読み飛ばす while ((buf = is.read()) != -1 && !((buf >= '0' && buf <= '9'))); num = buf-'0'; while (true) { buf = is.read(); if (buf >= '0' && buf <= '9') { num = num * 10 + (buf - '0'); } else { return num; } } } catch (IOException e) {} return -1; } }
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | aramaki |
Language | Java (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 739 Byte |
Status | AC |
Exec Time | 398 ms |
Memory | 20580 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, 00_sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 398 ms | 20564 KB |
00_sample_02.txt | AC | 389 ms | 20500 KB |
00_sample_03.txt | AC | 383 ms | 20576 KB |
test_01.txt | AC | 390 ms | 20564 KB |
test_02.txt | AC | 378 ms | 20572 KB |
test_03.txt | AC | 373 ms | 20448 KB |
test_04.txt | AC | 382 ms | 20572 KB |
test_05.txt | AC | 378 ms | 20572 KB |
test_06.txt | AC | 385 ms | 20564 KB |
test_07.txt | AC | 387 ms | 20560 KB |
test_08.txt | AC | 377 ms | 20448 KB |
test_09.txt | AC | 390 ms | 20560 KB |
test_10.txt | AC | 385 ms | 20564 KB |
test_11.txt | AC | 378 ms | 20560 KB |
test_12.txt | AC | 380 ms | 20568 KB |
test_13.txt | AC | 390 ms | 20452 KB |
test_14.txt | AC | 397 ms | 20580 KB |
test_15.txt | AC | 384 ms | 20576 KB |
test_16.txt | AC | 395 ms | 20568 KB |
test_17.txt | AC | 385 ms | 20544 KB |