結果

問題 No.379 五円硬貨
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-23 01:38:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 415 bytes
コンパイル時間 2,455 ms
コンパイル使用メモリ 74,728 KB
実行使用メモリ 42,240 KB
最終ジャッジ日時 2024-04-15 04:18:19
合計ジャッジ時間 4,672 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
41,648 KB
testcase_01 AC 115 ms
41,696 KB
testcase_02 AC 113 ms
41,972 KB
testcase_03 AC 114 ms
41,688 KB
testcase_04 AC 111 ms
41,736 KB
testcase_05 AC 110 ms
41,724 KB
testcase_06 AC 120 ms
41,380 KB
testcase_07 AC 118 ms
42,068 KB
testcase_08 AC 121 ms
41,584 KB
testcase_09 AC 112 ms
41,436 KB
testcase_10 AC 124 ms
41,676 KB
testcase_11 AC 108 ms
41,904 KB
testcase_12 AC 108 ms
41,876 KB
testcase_13 AC 121 ms
41,728 KB
testcase_14 AC 120 ms
41,732 KB
testcase_15 AC 125 ms
41,556 KB
testcase_16 AC 116 ms
41,936 KB
testcase_17 AC 120 ms
42,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		long n = sc.nextLong();
		long g = sc.nextLong();
		long v = sc.nextLong();
		long total = n/5*g;
		BigDecimal b1 = new BigDecimal(total);
		BigDecimal b2 = new BigDecimal(v);
		BigDecimal ans = b1.divide(b2,10,RoundingMode.HALF_UP);
		System.out.println(ans);
	}
}
0