結果

問題 No.32 貯金箱の憂鬱
ユーザー papipenpapipen
提出日時 2017-03-24 02:30:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 401 bytes
コンパイル時間 2,458 ms
コンパイル使用メモリ 74,156 KB
実行使用メモリ 55,992 KB
最終ジャッジ日時 2023-09-30 10:02:12
合計ジャッジ時間 4,635 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,500 KB
testcase_01 AC 127 ms
55,808 KB
testcase_02 AC 130 ms
55,836 KB
testcase_03 AC 136 ms
55,744 KB
testcase_04 AC 127 ms
55,672 KB
testcase_05 AC 127 ms
55,992 KB
testcase_06 AC 132 ms
55,984 KB
testcase_07 AC 128 ms
55,916 KB
testcase_08 AC 130 ms
55,452 KB
testcase_09 AC 130 ms
55,676 KB
testcase_10 AC 133 ms
55,524 KB
testcase_11 AC 127 ms
55,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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);
  }
}
0