結果

問題 No.734 Careful Engineer
ユーザー htensai
提出日時 2019-12-07 13:57:07
言語 Java
(openjdk 23)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 407 bytes
コンパイル時間 2,460 ms
コンパイル使用メモリ 76,324 KB
実行使用メモリ 41,728 KB
最終ジャッジ日時 2025-06-20 00:46:19
合計ジャッジ時間 4,562 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

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