結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
rururu
|
| 提出日時 | 2017-06-05 18:13:30 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 5,000 ms |
| コード長 | 1,485 bytes |
| コンパイル時間 | 2,343 ms |
| コンパイル使用メモリ | 74,708 KB |
| 実行使用メモリ | 54,316 KB |
| 最終ジャッジ日時 | 2024-07-23 04:53:30 |
| 合計ジャッジ時間 | 4,829 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
import java.util.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
Scanner s = new Scanner(System.in);
int L = s.nextInt();
int M = s.nextInt();
int N =s.nextInt();
int K = 0;
int S = 0;
int R = 0;
if(N>24){
K=N/25;
N=N%25;
M=M+K;
}
if(M>3){
S=M/4;
M=M%4;
L=L+S;
}
if(L>9){
R=L/10;
L=L%10;
}
int sum =L+M+N;
System.out.println(sum);
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
}
}
rururu