結果

問題 No.46 はじめのn歩
ユーザー ぬるぬるぬるぬる
提出日時 2016-05-14 03:05:55
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 416 bytes
コンパイル時間 3,054 ms
コンパイル使用メモリ 74,668 KB
実行使用メモリ 51,724 KB
最終ジャッジ日時 2024-04-15 19:24:44
合計ジャッジ時間 4,248 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

public class Test {
	public static void main(String[] args) {
		if (args.length != 2){
			System.out.println("error");
			System.exit(-1);
		}
		int amari = Integer.parseInt(args[1]) % Integer.parseInt(args[0]);
		if ( amari == 0 ){
			System.out.println( Integer.parseInt(args[1]) / Integer.parseInt(args[0]));

		}else{
			System.out.println((Integer.parseInt(args[1]) / Integer.parseInt(args[0]))+1);

		}

	}

}
0