結果

問題 No.128 お年玉(1)
ユーザー GrenacheGrenache
提出日時 2015-09-23 20:46:57
言語 Java19
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 304 bytes
コンパイル時間 3,080 ms
コンパイル使用メモリ 71,744 KB
実行使用メモリ 57,520 KB
最終ジャッジ日時 2023-07-24 14:57:17
合計ジャッジ時間 7,308 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,712 KB
testcase_01 AC 123 ms
56,104 KB
testcase_02 AC 124 ms
55,776 KB
testcase_03 AC 124 ms
55,764 KB
testcase_04 AC 122 ms
56,084 KB
testcase_05 AC 123 ms
55,708 KB
testcase_06 AC 121 ms
56,288 KB
testcase_07 AC 124 ms
55,928 KB
testcase_08 AC 124 ms
55,676 KB
testcase_09 AC 124 ms
55,364 KB
testcase_10 AC 124 ms
55,568 KB
testcase_11 AC 123 ms
55,788 KB
testcase_12 AC 125 ms
55,920 KB
testcase_13 AC 123 ms
56,016 KB
testcase_14 AC 126 ms
55,796 KB
testcase_15 AC 126 ms
57,520 KB
testcase_16 AC 125 ms
55,808 KB
testcase_17 AC 124 ms
55,668 KB
testcase_18 AC 124 ms
55,500 KB
testcase_19 AC 123 ms
55,552 KB
testcase_20 AC 123 ms
56,008 KB
testcase_21 AC 122 ms
56,008 KB
testcase_22 AC 125 ms
55,680 KB
testcase_23 AC 122 ms
55,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder128 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        long n = sc.nextLong() / 1000;
        long m = sc.nextLong();

        System.out.println(n / m * 1000);
        
        sc.close();
    }
}
0