結果

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

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long A = scan.nextLong();
		long B = scan.nextLong();
		long C = scan.nextLong();
		scan.close();
		if(60 * A <= B) {
			System.out.println(-1);
			System.exit(0);
		}
		double t = (double) 3600 * C / ((double)60 * A - B);
		long ans = (long)Math.ceil(t);
		System.out.println(ans);
	}
}
0