結果

問題 No.388 階段 (1)
ユーザー newoota0331newoota0331
提出日時 2016-09-01 17:26:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 433 bytes
コンパイル時間 1,953 ms
コンパイル使用メモリ 73,828 KB
実行使用メモリ 54,208 KB
最終ジャッジ日時 2024-04-27 14:26:02
合計ジャッジ時間 4,751 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
53,928 KB
testcase_01 AC 128 ms
54,036 KB
testcase_02 AC 129 ms
54,004 KB
testcase_03 AC 127 ms
53,892 KB
testcase_04 AC 129 ms
54,104 KB
testcase_05 AC 130 ms
53,928 KB
testcase_06 AC 132 ms
54,208 KB
testcase_07 AC 129 ms
53,792 KB
testcase_08 AC 129 ms
53,892 KB
testcase_09 AC 132 ms
54,000 KB
testcase_10 AC 132 ms
53,968 KB
testcase_11 AC 132 ms
53,948 KB
testcase_12 AC 134 ms
53,876 KB
testcase_13 AC 133 ms
53,968 KB
testcase_14 AC 130 ms
53,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		int a,b,i;
		
		a = sc.nextInt();
		b = sc.nextInt();
		
		for(i=1;a>=b;i++){
			a-=b;
		}
		
		System.out.println(i);
	}
}
0