結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
![]() |
提出日時 | 2017-06-11 20:52:33 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 132 ms / 5,000 ms |
コード長 | 353 bytes |
コンパイル時間 | 1,987 ms |
コンパイル使用メモリ | 74,220 KB |
実行使用メモリ | 54,320 KB |
最終ジャッジ日時 | 2024-07-23 05:14:17 |
合計ジャッジ時間 | 4,237 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import java.util.*;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 ans = 0;ans += (N % 25);M += (N / 25);ans += (M % 4);L += (M / 4);ans += (L % 10);System.out.println(ans);}}