結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
![]() |
提出日時 | 2020-05-19 11:06:22 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 145 ms / 5,000 ms |
コード長 | 431 bytes |
コンパイル時間 | 2,140 ms |
コンパイル使用メモリ | 75,372 KB |
実行使用メモリ | 54,688 KB |
最終ジャッジ日時 | 2024-07-23 07:55:10 |
合計ジャッジ時間 | 4,592 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import java.util.*;import java.lang.*;import java.io.*;class Main{public static void main (String[] args){// 入力値の読み込みScanner sc = new Scanner(System.in);int a = sc.nextInt();int b = sc.nextInt();int c = sc.nextInt();int total =0;int d =0;int e =0;d = c/25;total += c%25;e = (b+d)/4;total += (b+d)%4;total += (a+e)%10;System.out.println(total);}}