Submission #131665


Source Code Expand

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

import java.util.*;
import java.util.Map.Entry;

public class Main {
	
	
	public static void main(String[] args) throws IOException{
		Scanner sc = new Scanner(System.in);
		
		final int n = sc.nextInt();
		
		System.out.println(n * 2);
		
		
	}
	
	public static class Scanner {
		
		private BufferedReader br;
		private StringTokenizer tok;
		
		public Scanner(InputStream is) throws IOException{
			br = new BufferedReader(new InputStreamReader(is));
			getLine();
		}
		
		private void getLine() throws IOException{
			while(tok == null || !tok.hasMoreTokens()){
				tok = new StringTokenizer(br.readLine());
			}
		}
		
		private boolean hasNext(){
			return tok.hasMoreTokens();
		}
		
		public String next() throws IOException{
			if(hasNext()){
				return tok.nextToken();
			}else{
				getLine();
				return tok.nextToken();
			}
		}
		
		public int nextInt() throws IOException{
			if(hasNext()){
				return Integer.parseInt(tok.nextToken());
			}else{
				getLine();
				return Integer.parseInt(tok.nextToken());
			}
		}
		
		public long nextLong() throws IOException{
			if(hasNext()){
				return Long.parseLong(tok.nextToken());
			}else{
				getLine();
				return Long.parseLong(tok.nextToken());
			}
		}
		
		public double nextDouble() throws IOException{
			if(hasNext()){
				return Double.parseDouble(tok.nextToken());
			}else{
				getLine();
				return Double.parseDouble(tok.nextToken());
			}
		}
	}
}

Submission Info

Submission Time
Task A - 流行
User mondatto
Language Java (OpenJDK 1.7.0)
Score 100
Code Size 1625 Byte
Status AC
Exec Time 485 ms
Memory 20680 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 28
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 485 ms 20680 KB
max_1000000.txt AC 438 ms 20528 KB
min_0.txt AC 413 ms 20528 KB
rand_133007.txt AC 424 ms 20576 KB
rand_171937.txt AC 413 ms 20528 KB
rand_172717.txt AC 406 ms 20528 KB
rand_232508.txt AC 415 ms 20524 KB
rand_242450.txt AC 422 ms 20396 KB
rand_246841.txt AC 427 ms 20528 KB
rand_269046.txt AC 413 ms 20524 KB
rand_320433.txt AC 404 ms 20652 KB
rand_435534.txt AC 416 ms 20528 KB
rand_50616.txt AC 408 ms 20528 KB
rand_537196.txt AC 421 ms 20572 KB
rand_565439.txt AC 412 ms 20660 KB
rand_601980.txt AC 430 ms 20660 KB
rand_622146.txt AC 434 ms 20552 KB
rand_624081.txt AC 474 ms 20484 KB
rand_678601.txt AC 427 ms 20648 KB
rand_696476.txt AC 425 ms 20652 KB
rand_762274.txt AC 425 ms 20524 KB
rand_798714.txt AC 422 ms 20512 KB
rand_821336.txt AC 415 ms 20524 KB
rand_85323.txt AC 413 ms 20524 KB
rand_859632.txt AC 435 ms 20524 KB
rand_921203.txt AC 427 ms 20624 KB
rand_934508.txt AC 430 ms 20524 KB
rand_993594.txt AC 431 ms 20648 KB