結果

問題 No.734 Careful Engineer
ユーザー Mcpu3Mcpu3
提出日時 2018-09-29 00:08:01
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 495 bytes
コンパイル時間 2,425 ms
コンパイル使用メモリ 73,616 KB
実行使用メモリ 41,688 KB
最終ジャッジ日時 2024-10-12 07:40:40
合計ジャッジ時間 5,069 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 9 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double A = sc.nextDouble(), B = sc.nextDouble(), C = sc.nextDouble();
        sc.close();
        A *= 60;
        C *= 3600;
        if (B > A) System.out.print(-1);
        else {
            if ((long)(C / (A - B)) == C / (A - B)) System.out.print(C / (A - B));
            else System.out.print((long)(C / (A - B) + 1));
        }
    }
}
0