結果

問題 No.734 Careful Engineer
ユーザー htensaihtensai
提出日時 2019-12-07 13:57:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 407 bytes
コンパイル時間 2,030 ms
コンパイル使用メモリ 70,988 KB
実行使用メモリ 56,072 KB
最終ジャッジ日時 2023-08-26 17:18:30
合計ジャッジ時間 5,334 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,640 KB
testcase_01 AC 124 ms
55,820 KB
testcase_02 AC 125 ms
55,868 KB
testcase_03 AC 124 ms
55,696 KB
testcase_04 AC 122 ms
55,684 KB
testcase_05 AC 124 ms
55,888 KB
testcase_06 AC 127 ms
55,752 KB
testcase_07 AC 127 ms
55,908 KB
testcase_08 AC 123 ms
55,876 KB
testcase_09 AC 125 ms
56,072 KB
testcase_10 AC 125 ms
55,784 KB
testcase_11 AC 124 ms
55,696 KB
testcase_12 AC 124 ms
55,900 KB
testcase_13 AC 122 ms
55,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long a = sc.nextInt() * 60L;
        long b = sc.nextInt();
        long c = sc.nextInt() * 3600L;
        if (a <= b) {
            System.out.println(-1);
        } else {
            long d = a - b;
            System.out.println((c + d - 1) / d);
        }
   }
}
0