結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
|
提出日時 | 2017-03-24 02:30:01 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 140 ms / 5,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 2,424 ms |
コンパイル使用メモリ | 74,944 KB |
実行使用メモリ | 54,344 KB |
最終ジャッジ日時 | 2024-07-23 04:07:13 |
合計ジャッジ時間 | 4,652 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import java.util.Scanner; class Tyokinbako{ 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 d = (c / 25 + b) * 25 / 100; int e = (d + a) * 100 / 1000; int sum = c % 25 + (((c / 25 + b) * 25) % 100) / 25 + (((d + a) * 100) % 1000) / 100; System.out.println(sum); } }