Submission #122053
Source Code Expand
import java.io.IOException; public class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int num = parseNum(); System.out.println((num+1)*5000); } private static int parseNum() { try { int buf = 0; int num = 0; int skp = 1; // 0~9以外は読み飛ばす while (true) { buf = System.in.read(); if (buf >= '0' && buf <= '9') { num = num * 10 + (buf - '0'); skp = 0; } else if (skp == 0) { return num; } } } catch (IOException e) {} return -1; } }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder社の給料 |
User | aramaki |
Language | Java (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 609 Byte |
Status | AC |
Exec Time | 426 ms |
Memory | 20660 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, test_100.txt, test_14.txt, test_29.txt, test_4.txt, test_42.txt, test_48.txt, test_54.txt, test_59.txt, test_71.txt, test_72.txt, test_84.txt, test_96.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 413 ms | 20532 KB |
00_sample_02.txt | AC | 426 ms | 20660 KB |
test_100.txt | AC | 414 ms | 20528 KB |
test_14.txt | AC | 424 ms | 20528 KB |
test_29.txt | AC | 406 ms | 20528 KB |
test_4.txt | AC | 418 ms | 20532 KB |
test_42.txt | AC | 410 ms | 20524 KB |
test_48.txt | AC | 396 ms | 20608 KB |
test_54.txt | AC | 404 ms | 20656 KB |
test_59.txt | AC | 409 ms | 20536 KB |
test_71.txt | AC | 416 ms | 20588 KB |
test_72.txt | AC | 400 ms | 20656 KB |
test_84.txt | AC | 405 ms | 20524 KB |
test_96.txt | AC | 412 ms | 20524 KB |