結果

問題 No.379 五円硬貨
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-23 00:51:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 415 bytes
コンパイル時間 1,807 ms
コンパイル使用メモリ 74,312 KB
実行使用メモリ 54,620 KB
最終ジャッジ日時 2024-04-15 03:07:46
合計ジャッジ時間 4,799 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
53,168 KB
testcase_01 AC 120 ms
54,340 KB
testcase_02 AC 115 ms
54,100 KB
testcase_03 AC 118 ms
54,376 KB
testcase_04 AC 124 ms
54,412 KB
testcase_05 AC 120 ms
54,404 KB
testcase_06 AC 122 ms
54,620 KB
testcase_07 AC 123 ms
54,412 KB
testcase_08 AC 109 ms
53,296 KB
testcase_09 AC 121 ms
53,988 KB
testcase_10 AC 124 ms
54,444 KB
testcase_11 AC 123 ms
54,328 KB
testcase_12 AC 120 ms
54,240 KB
testcase_13 AC 119 ms
54,112 KB
testcase_14 AC 109 ms
53,008 KB
testcase_15 AC 124 ms
54,148 KB
testcase_16 AC 123 ms
54,208 KB
testcase_17 AC 122 ms
54,272 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,14,RoundingMode.HALF_UP);
		System.out.println(ans);
	}
}
0