結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
41,780 KB
testcase_01 AC 138 ms
41,380 KB
testcase_02 AC 136 ms
41,404 KB
testcase_03 AC 135 ms
41,664 KB
testcase_04 AC 136 ms
41,600 KB
testcase_05 AC 138 ms
41,684 KB
testcase_06 AC 140 ms
41,796 KB
testcase_07 AC 139 ms
41,520 KB
testcase_08 AC 138 ms
41,932 KB
testcase_09 AC 136 ms
41,816 KB
testcase_10 AC 138 ms
41,656 KB
testcase_11 AC 137 ms
41,572 KB
testcase_12 AC 137 ms
41,528 KB
testcase_13 AC 136 ms
41,900 KB
testcase_14 WA -
testcase_15 AC 138 ms
41,740 KB
testcase_16 AC 138 ms
41,420 KB
testcase_17 AC 135 ms
41,580 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,9,RoundingMode.HALF_UP);
		System.out.println(ans);
	}
}
0