Submission #615717
Source Code Expand
// package atcoder.dwango2016.qual; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; /** * Created by hama_du on 2016/01/23. */ public class Main { public static void main(String[] args) { InputReader in = new InputReader(System.in); PrintWriter out = new PrintWriter(System.out); long a = in.nextLong(); out.println(a / 25); out.flush(); } static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; public InputReader(InputStream stream) { this.stream = stream; } private int next() { if (numChars == -1) throw new InputMismatchException(); if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) return -1; } return buf[curChar++]; } public char nextChar() { int c = next(); while (isSpaceChar(c)) c = next(); if ('a' <= c && c <= 'z') { return (char) c; } if ('A' <= c && c <= 'Z') { return (char) c; } throw new InputMismatchException(); } public String nextToken() { int c = next(); while (isSpaceChar(c)) c = next(); StringBuilder res = new StringBuilder(); do { res.append((char) c); c = next(); } while (!isSpaceChar(c)); return res.toString(); } public int nextInt() { int c = next(); while (isSpaceChar(c)) c = next(); int sgn = 1; if (c == '-') { sgn = -1; c = next(); } int res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c-'0'; c = next(); } while (!isSpaceChar(c)); return res * sgn; } public long nextLong() { int c = next(); while (isSpaceChar(c)) c = next(); long sgn = 1; if (c == '-') { sgn = -1; c = next(); } long res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c-'0'; c = next(); } while (!isSpaceChar(c)); return res * sgn; } public boolean isSpaceChar(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } static void debug(Object... o) { System.err.println(Arrays.deepToString(o)); } }
Submission Info
Submission Time | |
---|---|
Task | A - ニコニコ数 |
User | hamadu |
Language | Java (OpenJDK 1.7.0) |
Score | 60 |
Code Size | 3523 Byte |
Status | AC |
Exec Time | 515 ms |
Memory | 22504 KB |
Judge Result
Set Name | Sample | Subtask1 | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 60 / 60 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
Subtask1 | sample_01.txt, sample_02.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 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 515 ms | 22504 KB |
sample_02.txt | AC | 336 ms | 22408 KB |
test_01.txt | AC | 337 ms | 22412 KB |
test_02.txt | AC | 395 ms | 22308 KB |
test_03.txt | AC | 343 ms | 22428 KB |
test_04.txt | AC | 375 ms | 22496 KB |
test_05.txt | AC | 341 ms | 22424 KB |
test_06.txt | AC | 347 ms | 22412 KB |
test_07.txt | AC | 338 ms | 22452 KB |
test_08.txt | AC | 371 ms | 22404 KB |
test_09.txt | AC | 343 ms | 22416 KB |
test_10.txt | AC | 344 ms | 22380 KB |
test_11.txt | AC | 341 ms | 22412 KB |
test_12.txt | AC | 338 ms | 22372 KB |
test_13.txt | AC | 356 ms | 22416 KB |
test_14.txt | AC | 340 ms | 22448 KB |
test_15.txt | AC | 373 ms | 22380 KB |