結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
ダンネック
|
| 提出日時 | 2020-05-23 00:51:26 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 141 ms / 5,000 ms |
| コード長 | 537 bytes |
| コンパイル時間 | 3,476 ms |
| コンパイル使用メモリ | 75,148 KB |
| 実行使用メモリ | 54,408 KB |
| 最終ジャッジ日時 | 2024-07-23 07:55:49 |
| 合計ジャッジ時間 | 5,851 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
import java.util.Arrays;
import java.util.Scanner;
public class sort{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int i = sc.nextInt();
int j = sc.nextInt();
int k = sc.nextInt();
int j_kuriage = 0;
int k_kuriage= 0;
int i_total = 0;
int j_total = 0;
int k_total = 0;
k_kuriage = k/25;
k_total = k%25;
j_kuriage = (j + k_kuriage)/4;
j_total = (j + k_kuriage)%4;
i_total = (i + j_kuriage)%10;
System.out.println(i_total+j_total+k_total);
sc.close();
}
}
ダンネック