結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
水野嶺
|
| 提出日時 | 2020-05-19 10:37:32 |
| 言語 | Java (openjdk 25.0.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 431 bytes |
| 記録 | |
| コンパイル時間 | 1,699 ms |
| コンパイル使用メモリ | 73,896 KB |
| 実行使用メモリ | 41,568 KB |
| 最終ジャッジ日時 | 2024-10-01 22:36:59 |
| 合計ジャッジ時間 | 3,716 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 9 |
ソースコード
import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
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 total =0;
int d =0;
int e =0;
d = a/25;
total += a%25;
e = (b+d)/4;
total += (b+d)%4;
total += (c+e)%10;
System.out.println(total);
}
}
水野嶺