結果

問題 No.128 お年玉(1)
ユーザー shinwisteriashinwisteria
提出日時 2018-03-04 12:14:48
言語 Java21
(openjdk 21)
結果
TLE  
実行時間 -
コード長 353 bytes
コンパイル時間 7,042 ms
コンパイル使用メモリ 75,012 KB
実行使用メモリ 64,504 KB
最終ジャッジ日時 2024-04-08 19:27:07
合計ジャッジ時間 10,385 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
57,828 KB
testcase_01 AC 126 ms
57,824 KB
testcase_02 AC 126 ms
57,820 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con128 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		long N = s.nextLong();
		int M = s.nextInt();
		s.close();

		int max = 0;
		for(int i = 1;;i++){
			if(i * M * 1000 <= N){
				max++;
			}else{
				break;
			}
		}
		System.out.println(max * 1000);

	}

}
0