結果

問題 No.128 お年玉(1)
ユーザー Yosuke Yamaguchi
提出日時 2021-01-04 23:46:42
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 425 bytes
コンパイル時間 2,802 ms
コンパイル使用メモリ 74,676 KB
実行使用メモリ 41,508 KB
最終ジャッジ日時 2024-10-01 11:24:26
合計ジャッジ時間 6,033 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 2 WA * 3 RE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

// https://yukicoder.me/problems/no/128
public class Otoshidama128 {
  public static void main(String[] args) {
    // 標準入力から読み込む際に、Scan
    Scanner 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));
  }
}
0