結果

問題 No.734 Careful Engineer
ユーザー YamaKasaYamaKasa
提出日時 2018-09-28 22:06:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 2,261 ms
コンパイル使用メモリ 74,800 KB
実行使用メモリ 42,088 KB
最終ジャッジ日時 2024-04-20 11:02:58
合計ジャッジ時間 4,908 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
41,612 KB
testcase_01 AC 133 ms
41,424 KB
testcase_02 AC 137 ms
41,188 KB
testcase_03 AC 136 ms
41,468 KB
testcase_04 AC 137 ms
41,440 KB
testcase_05 AC 136 ms
41,652 KB
testcase_06 AC 137 ms
41,452 KB
testcase_07 AC 137 ms
41,536 KB
testcase_08 AC 143 ms
41,856 KB
testcase_09 AC 137 ms
42,088 KB
testcase_10 AC 136 ms
41,556 KB
testcase_11 AC 136 ms
41,468 KB
testcase_12 AC 133 ms
41,528 KB
testcase_13 AC 134 ms
41,248 KB
権限があれば一括ダウンロードができます

ソースコード

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 / (60 * A - B);
		long ans = (long)Math.ceil(t);
		System.out.println(ans);
	}
}
0