結果

問題 No.128 お年玉(1)
ユーザー 🐧しゅんチャマ🌸🐧しゅんチャマ🌸
提出日時 2023-09-13 23:35:10
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 427 bytes
コンパイル時間 2,373 ms
コンパイル使用メモリ 71,476 KB
実行使用メモリ 56,276 KB
最終ジャッジ日時 2023-09-13 23:35:19
合計ジャッジ時間 7,265 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 161 ms
55,724 KB
testcase_01 AC 128 ms
55,728 KB
testcase_02 AC 128 ms
55,944 KB
testcase_03 RE -
testcase_04 AC 130 ms
55,760 KB
testcase_05 AC 131 ms
55,792 KB
testcase_06 AC 129 ms
55,992 KB
testcase_07 AC 132 ms
55,720 KB
testcase_08 AC 129 ms
55,840 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Y128{
    public static void main(String args[]){
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        int num=0;
        for(int i=0;i<1000000000;i++){
            if(1000*i*m>n){
                num=i-1;
                break;
            }else{
                num++;
            }
        }
        System.out.println(1000*num);
    }
}
0