結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-11-10 10:09:03 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 137 ms / 5,000 ms |
| コード長 | 415 bytes |
| コンパイル時間 | 2,096 ms |
| コンパイル使用メモリ | 77,052 KB |
| 実行使用メモリ | 41,488 KB |
| 最終ジャッジ日時 | 2024-07-23 08:05:46 |
| 合計ジャッジ時間 | 4,457 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int hundred = sc.nextInt();
int quater = sc.nextInt();
int one = sc.nextInt();
quater += one / 25;
one %= 25;
hundred += quater / 4;
quater %= 4;
hundred %= 10;
System.out.println(hundred + quater + one);
}
}
tenten