結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-26 17:53:44 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 615 bytes |
| コンパイル時間 | 2,013 ms |
| コンパイル使用メモリ | 73,860 KB |
| 実行使用メモリ | 42,204 KB |
| 最終ジャッジ日時 | 2024-11-21 20:06:37 |
| 合計ジャッジ時間 | 4,476 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 11 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int L =sc.nextInt();
int M =sc.nextInt();
int N =sc.nextInt();
int O =0;
do{
if((L/25)>0){
M=M+1;
L=L-1;
}
if((M/4)>0){
N=N+1;
M=M-1;
}
if((N/10)>0){
O=O+1;
N=N-1;
}
System.out.println(L+M+N+O);
}while((N/10)>0);
sc.close();
}
}