結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
8130Tsk
|
| 提出日時 | 2015-07-24 20:46:14 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 130 ms / 5,000 ms |
| コード長 | 446 bytes |
| コンパイル時間 | 3,342 ms |
| コンパイル使用メモリ | 74,064 KB |
| 実行使用メモリ | 54,372 KB |
| 最終ジャッジ日時 | 2024-07-23 02:06:32 |
| 合計ジャッジ時間 | 5,422 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
import java.util.Scanner;
public class No26 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int L = sc.nextInt();
int M = sc.nextInt();
int N = sc.nextInt();
int count1= N/25;
N = N - count1*25;
M = M + count1;
int count2 = M/4;
M = M - count2*4;
L = L + count2;
int count3 = L/10;
L = L - count3*10;
System.out.println(L+M+N);
}
}
8130Tsk