結果

問題 No.379 五円硬貨
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-23 01:39:03
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 414 bytes
コンパイル時間 2,130 ms
コンパイル使用メモリ 74,220 KB
実行使用メモリ 54,476 KB
最終ジャッジ日時 2024-04-15 04:19:25
合計ジャッジ時間 5,159 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
54,100 KB
testcase_01 AC 130 ms
54,284 KB
testcase_02 AC 117 ms
53,232 KB
testcase_03 AC 130 ms
54,184 KB
testcase_04 AC 130 ms
54,340 KB
testcase_05 AC 129 ms
54,216 KB
testcase_06 AC 116 ms
53,232 KB
testcase_07 AC 130 ms
54,420 KB
testcase_08 AC 118 ms
52,968 KB
testcase_09 WA -
testcase_10 AC 130 ms
54,404 KB
testcase_11 AC 130 ms
54,164 KB
testcase_12 AC 126 ms
54,256 KB
testcase_13 AC 130 ms
54,472 KB
testcase_14 WA -
testcase_15 AC 129 ms
54,460 KB
testcase_16 AC 131 ms
54,180 KB
testcase_17 AC 130 ms
54,476 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,8,RoundingMode.HALF_UP);
		System.out.println(ans);
	}
}
0