結果

問題 No.388 階段 (1)
ユーザー ダンネック
提出日時 2020-05-24 12:47:20
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 420 bytes
コンパイル時間 3,528 ms
コンパイル使用メモリ 74,952 KB
実行使用メモリ 41,448 KB
最終ジャッジ日時 2024-10-11 04:12:45
合計ジャッジ時間 6,116 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 5 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;
public class length{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int f = a / b;
	    if(a % b ==0){
	        System.out.println(f + 1);
	    }else if(f != 0){
	        System.out.println(f);
	    }else{
	        System.out.println("1");
	    }
		sc.close();
    }
}
0