結果

問題 No.734 Careful Engineer
ユーザー YamaKasaYamaKasa
提出日時 2018-09-28 22:07:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 419 bytes
コンパイル時間 1,901 ms
コンパイル使用メモリ 74,060 KB
実行使用メモリ 54,336 KB
最終ジャッジ日時 2024-04-20 11:04:10
合計ジャッジ時間 4,106 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
54,064 KB
testcase_01 AC 119 ms
54,244 KB
testcase_02 AC 109 ms
53,424 KB
testcase_03 AC 103 ms
53,084 KB
testcase_04 AC 110 ms
53,944 KB
testcase_05 AC 102 ms
52,968 KB
testcase_06 AC 106 ms
53,080 KB
testcase_07 AC 121 ms
53,800 KB
testcase_08 AC 118 ms
54,312 KB
testcase_09 AC 114 ms
54,232 KB
testcase_10 AC 114 ms
54,336 KB
testcase_11 AC 110 ms
54,204 KB
testcase_12 AC 101 ms
53,104 KB
testcase_13 AC 102 ms
52,976 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 / ((double)60 * A - B);
		long ans = (long)Math.ceil(t);
		System.out.println(ans);
	}
}
0