結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2019-06-12 13:26:13 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 130 ms / 5,000 ms |
コード長 | 446 bytes |
コンパイル時間 | 2,175 ms |
コンパイル使用メモリ | 74,180 KB |
実行使用メモリ | 54,448 KB |
最終ジャッジ日時 | 2024-07-23 07:34:33 |
合計ジャッジ時間 | 4,112 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);int oneH = sc.nextInt();int tweF = sc.nextInt();int oneC = sc.nextInt();sc.close();if(oneC>=25){tweF += oneC/25;oneC = oneC%25;}if(tweF>=4){oneH += tweF/4;tweF = tweF%4;}if(oneH>=10){oneH = oneH%10;}System.out.println(oneH + tweF + oneC);}// mainmethod} // class