結果
| 問題 |
No.379 五円硬貨
|
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2017-01-03 10:20:33 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 132 ms / 1,000 ms |
| コード長 | 452 bytes |
| コンパイル時間 | 2,399 ms |
| コンパイル使用メモリ | 74,224 KB |
| 実行使用メモリ | 54,364 KB |
| 最終ジャッジ日時 | 2024-12-16 06:09:11 |
| 合計ジャッジ時間 | 5,417 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int YEN = sc.nextInt();
int GAS = sc.nextInt();
int VOLUME = sc.nextInt();
int fiveYenCoins = YEN / 5;
long sumGas = (long) fiveYenCoins * GAS;
double concentrationGas = (double) sumGas / VOLUME;
System.out.printf("%.11f\n", concentrationGas);
}
}
samplelpmas