結果

問題 No.379 五円硬貨
ユーザー yuma_shobon1108yuma_shobon1108
提出日時 2016-11-11 18:57:14
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 2,230 ms
コンパイル使用メモリ 74,680 KB
実行使用メモリ 54,352 KB
最終ジャッジ日時 2024-05-04 02:14:24
合計ジャッジ時間 5,621 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
41,304 KB
testcase_01 AC 134 ms
41,404 KB
testcase_02 AC 138 ms
41,228 KB
testcase_03 AC 136 ms
41,264 KB
testcase_04 WA -
testcase_05 AC 134 ms
41,264 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 133 ms
41,188 KB
testcase_09 WA -
testcase_10 AC 135 ms
41,212 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 133 ms
41,380 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