結果

問題 No.734 Careful Engineer
ユーザー tentententen
提出日時 2020-09-02 11:46:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 390 bytes
コンパイル時間 2,312 ms
コンパイル使用メモリ 74,244 KB
実行使用メモリ 41,852 KB
最終ジャッジ日時 2024-05-01 10:29:10
合計ジャッジ時間 5,185 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
40,276 KB
testcase_01 AC 131 ms
41,728 KB
testcase_02 AC 131 ms
41,716 KB
testcase_03 AC 136 ms
41,852 KB
testcase_04 AC 133 ms
41,524 KB
testcase_05 AC 134 ms
41,180 KB
testcase_06 AC 133 ms
41,484 KB
testcase_07 AC 132 ms
41,576 KB
testcase_08 AC 135 ms
41,540 KB
testcase_09 AC 133 ms
41,596 KB
testcase_10 AC 131 ms
41,168 KB
testcase_11 AC 131 ms
41,420 KB
testcase_12 AC 130 ms
41,272 KB
testcase_13 AC 132 ms
41,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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