Submission #1935686


Source Code Expand

import java.util.Iterator;
import java.util.PrimitiveIterator;
import java.util.Scanner;

class Main{
	public static void main(String[]$){
		System.out.println(4*gInt()+2*gInt());
	}

	static Scanner s=new Scanner(System.in);
	static int gInt() {return Integer.parseInt(s.next());}
	static long gLong() {return Long.parseLong(s.next());}

	static class Range implements Iterable<Integer>,PrimitiveIterator.OfInt{
		int from,to,c;
		Range(int from,int to){
			this.from=from;
			this.to=to;
			this.c=from;
		}
		Range(int n){
			this(0,n-1);
		}
		@Override
		public Iterator<Integer> iterator(){
			return this;
		}
		@Override
		public boolean hasNext(){
			return c<=to;
		}
		@Override
		public int nextInt(){
			return c++;
		}
	}
}

Submission Info

Submission Time
Task A - カメツル算
User fal_rnd
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 773 Byte
Status AC
Exec Time 92 ms
Memory 21972 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All sample_01.txt, sample_02.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt
Case Name Status Exec Time Memory
sample_01.txt AC 90 ms 19668 KB
sample_02.txt AC 90 ms 19924 KB
subtask1_01.txt AC 90 ms 19924 KB
subtask1_02.txt AC 91 ms 20180 KB
subtask1_03.txt AC 91 ms 21972 KB
subtask1_04.txt AC 92 ms 21588 KB
subtask1_05.txt AC 89 ms 19796 KB
subtask1_06.txt AC 92 ms 19668 KB
subtask1_07.txt AC 90 ms 19796 KB
subtask1_08.txt AC 90 ms 20564 KB