結果

問題 No.734 Careful Engineer
ユーザー YamaKasa
提出日時 2018-09-28 22:16:23
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 477 bytes
コンパイル時間 2,470 ms
コンパイル使用メモリ 73,740 KB
実行使用メモリ 41,768 KB
最終ジャッジ日時 2024-10-12 06:44:44
合計ジャッジ時間 4,862 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other AC * 2 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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