結果

問題 No.379 五円硬貨
ユーザー yuma_shobon1108yuma_shobon1108
提出日時 2016-11-11 19:00:09
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 2,017 ms
コンパイル使用メモリ 71,524 KB
実行使用メモリ 58,804 KB
最終ジャッジ日時 2023-08-16 18:41:08
合計ジャッジ時間 5,229 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,280 KB
testcase_01 AC 121 ms
56,088 KB
testcase_02 AC 121 ms
55,844 KB
testcase_03 AC 122 ms
56,076 KB
testcase_04 AC 121 ms
56,500 KB
testcase_05 AC 123 ms
56,240 KB
testcase_06 WA -
testcase_07 AC 119 ms
55,964 KB
testcase_08 AC 119 ms
56,060 KB
testcase_09 WA -
testcase_10 AC 121 ms
56,240 KB
testcase_11 WA -
testcase_12 AC 122 ms
56,172 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 124 ms
55,952 KB
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Question379
{
	public static void main(String[] args)
	{
	
		Scanner scan = new Scanner(System.in);
		
		long yen = scan.nextLong();
		long gas = scan.nextLong();
		long v = scan.nextLong();
		
		long coin = yen / 5;
		long agas = coin * gas;
		double con = agas / v;
		
		System.out.println(con);

	}
}
0