結果

問題 No.388 階段 (1)
ユーザー 水野嶺
提出日時 2020-05-14 14:22:11
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 412 bytes
コンパイル時間 2,520 ms
コンパイル使用メモリ 74,212 KB
実行使用メモリ 41,388 KB
最終ジャッジ日時 2024-09-15 06:09:47
合計ジャッジ時間 5,263 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 2 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.lang.*;
import java.io.*;


class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		//0で条件分岐
		//aが0の場合
		if(a == 0){
		System.out.println(1);
		
		}else{
		//商
		int n = b / a;
		System.out.println(n + 1);
		}
	}
}
0