結果
問題 | No.734 Careful Engineer |
ユーザー |
![]() |
提出日時 | 2019-09-15 11:15:52 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 126 ms / 2,000 ms |
コード長 | 441 bytes |
コンパイル時間 | 2,758 ms |
コンパイル使用メモリ | 76,216 KB |
実行使用メモリ | 41,464 KB |
最終ジャッジ日時 | 2025-01-18 00:08:08 |
合計ジャッジ時間 | 4,554 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 |
ソースコード
import java.util.*;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);long a = sc.nextLong();long b = sc.nextLong();long c = sc.nextLong();long ans = -1;if(60 * a > b) {if((3600 * c) % (60 * a - b) == 0) {ans = (3600 * c) / (60 * a - b);} else {ans = (3600 * c) / (60 * a - b) + 1;}}System.out.println(ans);}}