結果

問題 No.379 五円硬貨
ユーザー yuma_shobon1108yuma_shobon1108
提出日時 2016-11-11 18:57:14
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 2,819 ms
コンパイル使用メモリ 71,284 KB
実行使用メモリ 56,536 KB
最終ジャッジ日時 2023-08-16 18:40:54
合計ジャッジ時間 5,412 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
54,200 KB
testcase_01 AC 123 ms
56,084 KB
testcase_02 AC 124 ms
55,572 KB
testcase_03 AC 119 ms
55,920 KB
testcase_04 WA -
testcase_05 AC 123 ms
56,196 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 121 ms
55,804 KB
testcase_09 WA -
testcase_10 AC 121 ms
56,152 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 121 ms
56,296 KB
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

	}
}
0