結果

問題 No.388 階段 (1)
ユーザー taketake
提出日時 2016-07-10 14:34:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 514 bytes
コンパイル時間 2,687 ms
コンパイル使用メモリ 75,184 KB
実行使用メモリ 41,288 KB
最終ジャッジ日時 2024-04-21 11:46:21
合計ジャッジ時間 4,799 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
39,888 KB
testcase_01 AC 131 ms
41,176 KB
testcase_02 AC 127 ms
41,288 KB
testcase_03 AC 115 ms
40,124 KB
testcase_04 AC 116 ms
40,200 KB
testcase_05 AC 126 ms
41,032 KB
testcase_06 AC 127 ms
41,132 KB
testcase_07 AC 131 ms
40,984 KB
testcase_08 AC 126 ms
41,100 KB
testcase_09 AC 126 ms
40,964 KB
testcase_10 AC 115 ms
40,160 KB
testcase_11 AC 129 ms
41,080 KB
testcase_12 AC 128 ms
41,180 KB
testcase_13 AC 128 ms
41,284 KB
testcase_14 AC 128 ms
41,268 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);

	    // s
	    int s = sc.nextInt();
	    //System.out.println(s);
	    
		// f
		int f = sc.nextInt();
		//System.out.println(f);
		
		// ans
		int ans = s / f + 1;
		System.out.println(ans);
	}
	
}
0