結果

問題 No.388 階段 (1)
ユーザー Humming_sangoHumming_sango
提出日時 2023-03-03 02:32:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 1,325 bytes
コンパイル時間 3,200 ms
コンパイル使用メモリ 77,788 KB
実行使用メモリ 53,352 KB
最終ジャッジ日時 2023-10-17 21:29:00
合計ジャッジ時間 3,974 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
53,348 KB
testcase_01 AC 55 ms
53,344 KB
testcase_02 AC 54 ms
52,308 KB
testcase_03 AC 55 ms
53,352 KB
testcase_04 AC 55 ms
53,348 KB
testcase_05 AC 55 ms
53,352 KB
testcase_06 AC 56 ms
53,344 KB
testcase_07 AC 58 ms
52,260 KB
testcase_08 AC 56 ms
53,348 KB
testcase_09 AC 57 ms
53,348 KB
testcase_10 AC 56 ms
53,288 KB
testcase_11 AC 56 ms
53,348 KB
testcase_12 AC 57 ms
53,344 KB
testcase_13 AC 56 ms
52,348 KB
testcase_14 AC 55 ms
53,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
 
public class Main {
	
	public static void main(String[] args) {
		FastReader fr = new FastReader();
		int a = fr.nextInt();
		int b = fr.nextInt();
		System.out.println(a/b+1);
	}
	
}

class FastReader {
	private final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 0x10000);
	private StringTokenizer tokenizer;
	
	String next() {
		try{
			while(tokenizer==null || !tokenizer.hasMoreTokens()) {
				tokenizer = new StringTokenizer(reader.readLine());
			} 
		}catch(IOException e){
			e.printStackTrace();
		}
		return tokenizer.nextToken();
		
	}
	
	int nextInt() {
		return Integer.parseInt(next());
	}
	
	long nextLong() {
		return Long.parseLong(next());
	}
	
	double nextDouble(){
		return Double.parseDouble(next());
	}
	
	char[] nextCharArray() {
        return next().toCharArray();
    }
	
	char nextSingleChar() { //一文字じゃなかったら' '(空白文字)返す
		char[] c = next().toCharArray();
		if(c.length==1) {
			return c[0]; 
		}else {
			return ' ';
		}
	}
	
	String[] nextStringArray(int n) {
	        String[] s = new String[n];
	        for (int i = 0; i < n; i++) {
	            s[i] = next();
	        }
	        return s;
	    }

}
0