結果

問題 No.379 五円硬貨
ユーザー fal_rndfal_rnd
提出日時 2017-03-31 15:47:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 1,000 ms
コード長 413 bytes
コンパイル時間 2,280 ms
コンパイル使用メモリ 72,672 KB
実行使用メモリ 56,436 KB
最終ジャッジ日時 2023-09-21 10:39:07
合計ジャッジ時間 5,835 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
56,336 KB
testcase_01 AC 127 ms
56,276 KB
testcase_02 AC 127 ms
56,100 KB
testcase_03 AC 129 ms
56,432 KB
testcase_04 AC 129 ms
56,060 KB
testcase_05 AC 128 ms
56,176 KB
testcase_06 AC 128 ms
56,276 KB
testcase_07 AC 139 ms
56,312 KB
testcase_08 AC 125 ms
56,436 KB
testcase_09 AC 127 ms
56,004 KB
testcase_10 AC 126 ms
56,172 KB
testcase_11 AC 127 ms
55,952 KB
testcase_12 AC 126 ms
56,232 KB
testcase_13 AC 125 ms
54,176 KB
testcase_14 AC 128 ms
56,348 KB
testcase_15 AC 127 ms
56,144 KB
testcase_16 AC 126 ms
56,376 KB
testcase_17 AC 127 ms
56,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

public class Main{

	static Scanner s=new Scanner(System.in);

	public static void main(String __[]){
		input();
		solve();
	}

	private static void input(){
	}

	private static void solve(){
		System.out.println(BigDecimal.valueOf((s.nextLong()/5)*s.nextLong())
				.divide(s.nextBigDecimal(),14,RoundingMode.HALF_UP));
	}
}
0