Submission #386702
Source Code Expand
import java.awt.geom.Point2D; import java.io.*; import java.math.BigInteger; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.Deque; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.NoSuchElementException; import java.util.PriorityQueue; import java.util.Scanner; import java.util.Stack; import java.util.TreeMap; public class Main { static PrintWriter out = new PrintWriter(System.out); static FastScanner sc = new FastScanner(); static Scanner stdIn = new Scanner(System.in); public static void main (String[] args) { out.println(sc.nextInt()*2); out.flush(); } } //------------------------------// //-----------// class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr < buflen) { return true; }else{ ptr = 0; try { buflen = in.read(buffer); } catch (IOException e) { e.printStackTrace(); } if (buflen <= 0) { return false; } } return true; } private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;} private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;} private void skipUnprintable() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;} public boolean hasNext() { skipUnprintable(); return hasNextByte();} public String next() { if (!hasNext()) throw new NoSuchElementException(); StringBuilder sb = new StringBuilder(); int b = readByte(); while(isPrintableChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public long nextLong() { if (!hasNext()) throw new NoSuchElementException(); long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while(true){ if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; }else if(b == -1 || !isPrintableChar(b)){ return minus ? -n : n; }else{ throw new NumberFormatException(); } b = readByte(); } } public int nextInt() { if (!hasNext()) throw new NoSuchElementException(); int n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while(true){ if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; }else if(b == -1 || !isPrintableChar(b)){ return minus ? -n : n; }else{ throw new NumberFormatException(); } b = readByte(); } } public double nextDouble() { return Double.parseDouble(next()); } }
Submission Info
Submission Time | |
---|---|
Task | A - 流行 |
User | XzA_2123 |
Language | Java (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 3600 Byte |
Status | AC |
Exec Time | 370 ms |
Memory | 17128 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_00.txt, max_1000000.txt, min_0.txt, rand_133007.txt, rand_171937.txt, rand_172717.txt, rand_232508.txt, rand_242450.txt, rand_246841.txt, rand_269046.txt, rand_320433.txt, rand_435534.txt, rand_50616.txt, rand_537196.txt, rand_565439.txt, rand_601980.txt, rand_622146.txt, rand_624081.txt, rand_678601.txt, rand_696476.txt, rand_762274.txt, rand_798714.txt, rand_821336.txt, rand_85323.txt, rand_859632.txt, rand_921203.txt, rand_934508.txt, rand_993594.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 362 ms | 17116 KB |
max_1000000.txt | AC | 362 ms | 16980 KB |
min_0.txt | AC | 364 ms | 17008 KB |
rand_133007.txt | AC | 357 ms | 17028 KB |
rand_171937.txt | AC | 342 ms | 17012 KB |
rand_172717.txt | AC | 353 ms | 17092 KB |
rand_232508.txt | AC | 344 ms | 17036 KB |
rand_242450.txt | AC | 355 ms | 17024 KB |
rand_246841.txt | AC | 356 ms | 17080 KB |
rand_269046.txt | AC | 363 ms | 16952 KB |
rand_320433.txt | AC | 359 ms | 17080 KB |
rand_435534.txt | AC | 354 ms | 17076 KB |
rand_50616.txt | AC | 362 ms | 17056 KB |
rand_537196.txt | AC | 363 ms | 16996 KB |
rand_565439.txt | AC | 352 ms | 17012 KB |
rand_601980.txt | AC | 366 ms | 17000 KB |
rand_622146.txt | AC | 363 ms | 17004 KB |
rand_624081.txt | AC | 363 ms | 16996 KB |
rand_678601.txt | AC | 370 ms | 17012 KB |
rand_696476.txt | AC | 364 ms | 17024 KB |
rand_762274.txt | AC | 364 ms | 16992 KB |
rand_798714.txt | AC | 367 ms | 17052 KB |
rand_821336.txt | AC | 362 ms | 17076 KB |
rand_85323.txt | AC | 362 ms | 17060 KB |
rand_859632.txt | AC | 366 ms | 17120 KB |
rand_921203.txt | AC | 361 ms | 16952 KB |
rand_934508.txt | AC | 355 ms | 17024 KB |
rand_993594.txt | AC | 365 ms | 17128 KB |