結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2018-03-26 23:21:41 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 138 ms / 5,000 ms |
コード長 | 554 bytes |
コンパイル時間 | 2,211 ms |
コンパイル使用メモリ | 74,640 KB |
実行使用メモリ | 41,592 KB |
最終ジャッジ日時 | 2024-07-23 07:07:09 |
合計ジャッジ時間 | 4,627 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
package net.ipipip0129.yukicoder.no32;import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner scan = new Scanner(System.in);int yen100 = Integer.parseInt(scan.nextLine());int yen25 = Integer.parseInt(scan.nextLine());int yen1 = Integer.parseInt(scan.nextLine());yen25 += (int) yen1/25;yen1 %= 25;yen100 += (int) yen25/4;yen25 %= 4;yen100 %= 10;System.out.println(yen1 + yen25 + yen100);}}