結果

問題 No.46 はじめのn歩
ユーザー Humming_sangoHumming_sango
提出日時 2023-03-03 02:29:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 1,329 bytes
コンパイル時間 3,032 ms
コンパイル使用メモリ 77,968 KB
実行使用メモリ 53,532 KB
最終ジャッジ日時 2023-10-17 21:25:49
合計ジャッジ時間 3,156 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
52,520 KB
testcase_01 AC 54 ms
53,524 KB
testcase_02 AC 55 ms
53,532 KB
testcase_03 AC 54 ms
52,540 KB
testcase_04 AC 53 ms
53,524 KB
testcase_05 AC 53 ms
53,532 KB
testcase_06 AC 53 ms
53,532 KB
testcase_07 AC 53 ms
53,532 KB
testcase_08 AC 54 ms
53,520 KB
testcase_09 AC 55 ms
51,572 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)/a);
	}
	
}

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