結果

問題 No.734 Careful Engineer
ユーザー tsunabittsunabit
提出日時 2019-07-01 22:02:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 440 bytes
コンパイル時間 3,942 ms
コンパイル使用メモリ 72,116 KB
実行使用メモリ 56,024 KB
最終ジャッジ日時 2023-09-25 09:00:40
合計ジャッジ時間 7,231 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,480 KB
testcase_01 AC 130 ms
56,024 KB
testcase_02 AC 128 ms
55,776 KB
testcase_03 AC 131 ms
55,876 KB
testcase_04 AC 130 ms
55,840 KB
testcase_05 AC 133 ms
55,508 KB
testcase_06 AC 129 ms
55,936 KB
testcase_07 AC 129 ms
55,672 KB
testcase_08 AC 129 ms
55,884 KB
testcase_09 AC 129 ms
55,752 KB
testcase_10 AC 129 ms
55,848 KB
testcase_11 AC 129 ms
55,820 KB
testcase_12 AC 130 ms
55,748 KB
testcase_13 AC 129 ms
55,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

public class No734 {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	long a = sc.nextLong(), b = sc.nextLong(), c = sc.nextLong();
    	
    	if(a * 60 <= b) {
    		System.out.println(-1);
    	}else {
    		double t = (double) 3600 * c / (60 * a - b);
    		long ans = (long)Math.ceil(t);
    		System.out.println(ans);
    	}
    }
}
0