結果

問題 No.169 何分かかるの!?
ユーザー len_proglen_prog
提出日時 2016-06-15 09:59:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 537 bytes
コンパイル時間 2,298 ms
コンパイル使用メモリ 74,212 KB
実行使用メモリ 56,056 KB
最終ジャッジ日時 2024-04-17 22:35:49
合計ジャッジ時間 6,330 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 128 ms
54,108 KB
testcase_02 AC 126 ms
54,096 KB
testcase_03 WA -
testcase_04 AC 127 ms
54,008 KB
testcase_05 AC 127 ms
54,176 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 128 ms
54,100 KB
testcase_09 AC 128 ms
54,048 KB
testcase_10 AC 124 ms
54,496 KB
testcase_11 AC 126 ms
54,272 KB
testcase_12 AC 127 ms
53,932 KB
testcase_13 AC 126 ms
54,124 KB
testcase_14 AC 126 ms
54,148 KB
testcase_15 AC 115 ms
54,708 KB
testcase_16 AC 129 ms
54,152 KB
testcase_17 AC 126 ms
54,084 KB
testcase_18 WA -
testcase_19 AC 135 ms
54,356 KB
testcase_20 AC 130 ms
54,160 KB
testcase_21 AC 127 ms
54,024 KB
testcase_22 AC 131 ms
54,612 KB
testcase_23 AC 136 ms
54,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int alreadyProcessed_Percent = scan.nextInt();
		int remainMinute = scan.nextInt();

		double alreadyProcessed_Decimal = alreadyProcessed_Percent / 100.0;
		double remainProcess_Decimal = 1.0 - alreadyProcessed_Decimal;
		double totalMinute_Decimal = remainMinute / remainProcess_Decimal;
		int totalMinute = (int)Math.floor(totalMinute_Decimal);

		System.out.println(totalMinute);
		scan.close();
	}

}
0