結果
問題 | No.169 何分かかるの!? |
ユーザー | len_prog |
提出日時 | 2016-06-15 10:00:21 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 536 bytes |
コンパイル時間 | 1,978 ms |
コンパイル使用メモリ | 73,792 KB |
実行使用メモリ | 56,268 KB |
最終ジャッジ日時 | 2024-04-17 22:35:56 |
合計ジャッジ時間 | 5,859 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 131 ms
41,144 KB |
testcase_01 | WA | - |
testcase_02 | AC | 128 ms
41,076 KB |
testcase_03 | AC | 123 ms
41,032 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 131 ms
41,264 KB |
testcase_07 | AC | 110 ms
41,452 KB |
testcase_08 | AC | 119 ms
41,376 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 111 ms
41,408 KB |
testcase_14 | WA | - |
testcase_15 | AC | 131 ms
41,248 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 119 ms
41,528 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | AC | 125 ms
41,536 KB |
ソースコード
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.ceil(totalMinute_Decimal); System.out.println(totalMinute); scan.close(); } }