結果

問題 No.734 Careful Engineer
ユーザー YamaKasaYamaKasa
提出日時 2018-09-28 21:25:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 410 bytes
コンパイル時間 4,261 ms
コンパイル使用メモリ 74,284 KB
実行使用メモリ 41,536 KB
最終ジャッジ日時 2024-04-20 10:50:27
合計ジャッジ時間 4,693 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
41,160 KB
testcase_01 AC 133 ms
40,708 KB
testcase_02 AC 121 ms
39,768 KB
testcase_03 AC 127 ms
41,036 KB
testcase_04 AC 125 ms
41,424 KB
testcase_05 AC 114 ms
40,920 KB
testcase_06 AC 131 ms
41,052 KB
testcase_07 AC 126 ms
41,048 KB
testcase_08 AC 137 ms
41,472 KB
testcase_09 AC 135 ms
41,368 KB
testcase_10 AC 128 ms
41,044 KB
testcase_11 AC 121 ms
39,768 KB
testcase_12 AC 128 ms
41,536 KB
testcase_13 AC 125 ms
41,496 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