結果
問題 | No.128 お年玉(1) |
ユーザー |
|
提出日時 | 2021-01-04 23:48:44 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 439 bytes |
コンパイル時間 | 3,393 ms |
コンパイル使用メモリ | 74,684 KB |
実行使用メモリ | 54,412 KB |
最終ジャッジ日時 | 2024-10-01 11:24:41 |
合計ジャッジ時間 | 7,128 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 RE * 16 |
ソースコード
import java.util.Scanner;// https://yukicoder.me/problems/no/128public class Otoshidama128 {public static void main(String[] args) {// 標準入力から読み込む際に、ScanScanner sc = new Scanner(System.in);// String 1つ分を読み込むint money = Integer.parseInt(sc.next());int children = Integer.parseInt(sc.next());System.out.println(Math.floorDiv(money, children * 1000) * 1000);}}