結果
問題 | No.128 お年玉(1) |
ユーザー | maru |
提出日時 | 2016-03-20 00:51:33 |
言語 | Java21 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 333 bytes |
コンパイル時間 | 3,827 ms |
コンパイル使用メモリ | 78,244 KB |
実行使用メモリ | 58,340 KB |
最終ジャッジ日時 | 2024-04-08 18:38:38 |
合計ジャッジ時間 | 8,482 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 145 ms
57,732 KB |
testcase_01 | AC | 147 ms
57,784 KB |
testcase_02 | AC | 142 ms
58,072 KB |
testcase_03 | RE | - |
testcase_04 | AC | 141 ms
57,692 KB |
testcase_05 | AC | 141 ms
57,968 KB |
testcase_06 | AC | 149 ms
57,816 KB |
testcase_07 | AC | 144 ms
57,956 KB |
testcase_08 | AC | 144 ms
57,712 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 | - |
ソースコード
import java.util.Scanner; public class yukicoder_128 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int m = scanner.nextInt(); int a = n / m / 1000; int money = a * 1000; if (money < 1000) { money = 0; } System.out.println(money); } }