結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
![]() |
提出日時 | 2017-10-17 15:41:18 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 137 ms / 5,000 ms |
コード長 | 587 bytes |
コンパイル時間 | 2,674 ms |
コンパイル使用メモリ | 74,324 KB |
実行使用メモリ | 41,388 KB |
最終ジャッジ日時 | 2024-07-23 06:46:06 |
合計ジャッジ時間 | 4,189 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import java.util.Scanner;public class Main {public static void main(String[] args){Scanner sc=new Scanner(System.in);//ここから処理開始int K = 0;int L = sc.nextInt();int M = sc.nextInt();int N = sc.nextInt();if(N/25>0){M += N/25;N = N%25;}if(M/4>0){L += M/4;M = M%4;}if(L/10>0){K += L/10;L = L%10;}System.out.print(L+M+N);//ここまでsc.close();}}