結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
![]() |
提出日時 | 2017-05-05 01:28:34 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 56 ms / 5,000 ms |
コード長 | 676 bytes |
コンパイル時間 | 3,056 ms |
コンパイル使用メモリ | 74,452 KB |
実行使用メモリ | 50,356 KB |
最終ジャッジ日時 | 2024-07-23 04:35:16 |
合計ジャッジ時間 | 4,305 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
/*No.32 貯金箱の憂鬱*/ import java.io.*; public class No32 { public static void main(String[] args) { String h_maisuu[]=new String[3]; int mai_1,mai_25,mai_100,mai_1000=0; try(BufferedReader input =new BufferedReader(new InputStreamReader(System.in))){ mai_100=Integer.parseInt(input.readLine()); mai_25=Integer.parseInt(input.readLine()); mai_1=Integer.parseInt(input.readLine()); mai_25+=mai_1/25; mai_1%=25; mai_100+=25*mai_25/100; mai_25-=100/25*(25*mai_25/100); mai_1000+=100*mai_100/1000; mai_100-=1000/100*(100*mai_100/1000); System.out.println(mai_1+mai_25+mai_100); }catch(Exception e){ e.printStackTrace(); } } }