結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
![]() |
提出日時 | 2020-05-23 00:50:54 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 537 bytes |
コンパイル時間 | 2,919 ms |
コンパイル使用メモリ | 74,968 KB |
実行使用メモリ | 41,648 KB |
最終ジャッジ日時 | 2024-10-06 02:25:02 |
合計ジャッジ時間 | 4,896 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 10 |
ソースコード
import java.util.Arrays; import java.util.Scanner; public class sort{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int i = sc.nextInt(); int j = sc.nextInt(); int k = sc.nextInt(); int j_kuriage = 0; int k_kuriage= 0; int i_total = 0; int j_total = 0; int k_total = 0; k_kuriage = k/25; k_total = k%25; j_kuriage = (j + k_kuriage)/4; j_total = (j + k_kuriage)%4; i_total = (i + j_kuriage)/10; System.out.println(i_total+j_total+k_total); sc.close(); } }