結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
54,040 KB
testcase_01 WA -
testcase_02 AC 126 ms
53,988 KB
testcase_03 AC 122 ms
54,248 KB
testcase_04 AC 119 ms
54,392 KB
testcase_05 AC 119 ms
54,136 KB
testcase_06 AC 116 ms
53,116 KB
testcase_07 AC 124 ms
54,288 KB
testcase_08 AC 110 ms
53,712 KB
testcase_09 WA -
testcase_10 AC 102 ms
54,016 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 122 ms
54,024 KB
testcase_14 AC 122 ms
53,956 KB
testcase_15 AC 122 ms
54,204 KB
testcase_16 AC 122 ms
54,024 KB
testcase_17 AC 108 ms
52,700 KB
testcase_18 AC 123 ms
54,068 KB
testcase_19 WA -
testcase_20 AC 114 ms
53,852 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 123 ms
53,992 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.round(totalMinute_Decimal);

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

}
0