結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
|
提出日時 | 2017-10-26 17:55:55 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 618 bytes |
コンパイル時間 | 2,076 ms |
コンパイル使用メモリ | 74,016 KB |
実行使用メモリ | 54,408 KB |
最終ジャッジ日時 | 2024-11-21 20:06:42 |
合計ジャッジ時間 | 4,072 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 12 |
ソースコード
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(); } }