結果
| 問題 | No.128 お年玉(1) |
| コンテスト | |
| ユーザー |
FVRChan
|
| 提出日時 | 2017-09-24 16:16:58 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 325 bytes |
| 記録 | |
| コンパイル時間 | 2,534 ms |
| コンパイル使用メモリ | 74,720 KB |
| 実行使用メモリ | 41,680 KB |
| 最終ジャッジ日時 | 2024-10-01 10:40:57 |
| 合計ジャッジ時間 | 5,454 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 WA * 16 |
ソースコード
import java.util.Scanner;
public class Main{
public static void main(String args[])throws Exception{
Scanner sc=new Scanner(System.in);
long money=Long.parseLong(sc.nextLine());
int people=Integer.parseInt(sc.nextLine());
int baka=(int)(money/people);
int aho=(int)(baka%1000);
System.out.println(baka-aho);
}
}
FVRChan