結果

問題 No.32 貯金箱の憂鬱
ユーザー Ryota Enokido
提出日時 2018-12-09 23:05:35
言語 Java
(openjdk 23)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 440 bytes
コンパイル時間 2,052 ms
コンパイル使用メモリ 73,796 KB
実行使用メモリ 54,196 KB
最終ジャッジ日時 2024-07-23 07:23:29
合計ジャッジ時間 4,365 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
 
 public class Main {
     public static void main(String[] args) {
         Scanner sc = new Scanner(System.in);
         
         int L = sc.nextInt();
         int M = sc.nextInt();
         int N = sc.nextInt();
         
         int sum = 100*L+25*M+N;

         int A = sum%1000;
         int B = A%100;
         int C = B%25;
           
         System.out.println(A/100 + B/25 + C);
         
     }
 }
0