結果

問題 No.169 何分かかるの!?
ユーザー len_proglen_prog
提出日時 2016-06-15 10:09:55
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 541 bytes
コンパイル時間 2,305 ms
コンパイル使用メモリ 74,944 KB
実行使用メモリ 54,624 KB
最終ジャッジ日時 2024-04-17 22:36:37
合計ジャッジ時間 6,973 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 150 ms
54,028 KB
testcase_01 WA -
testcase_02 AC 155 ms
53,848 KB
testcase_03 AC 150 ms
53,980 KB
testcase_04 AC 152 ms
54,004 KB
testcase_05 AC 147 ms
54,328 KB
testcase_06 AC 151 ms
54,156 KB
testcase_07 AC 148 ms
54,320 KB
testcase_08 AC 151 ms
54,296 KB
testcase_09 WA -
testcase_10 AC 148 ms
54,124 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 152 ms
54,624 KB
testcase_14 AC 157 ms
53,932 KB
testcase_15 AC 150 ms
54,320 KB
testcase_16 AC 150 ms
54,112 KB
testcase_17 AC 155 ms
54,144 KB
testcase_18 AC 153 ms
54,132 KB
testcase_19 WA -
testcase_20 AC 153 ms
54,148 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 152 ms
54,124 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