結果
| 問題 | No.734 Careful Engineer |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-27 13:09:13 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 713 bytes |
| 記録 | |
| コンパイル時間 | 2,566 ms |
| コンパイル使用メモリ | 85,880 KB |
| 実行使用メモリ | 45,672 KB |
| 最終ジャッジ日時 | 2026-09-30 23:56:41 |
| 合計ジャッジ時間 | 5,454 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 WA * 7 |
ソースコード
import java.io.*;
import java.util.Scanner;
public class Main_yukicoder734 {
private static Scanner sc;
private static Printer pr;
private static void solve() {
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
// 60 a x >= b x + 3600c
if (60 * a - b <= 0) {
pr.println(-1);
} else {
int x = (3600 * c + 60 * a - b - 1) / (60 * a - b);
pr.println(x);
}
}
// ---------------------------------------------------
public static void main(String[] args) {
sc = new Scanner(System.in);
pr = new Printer(System.out);
solve();
pr.close();
sc.close();
}
static class Printer extends PrintWriter {
Printer(OutputStream out) {
super(out);
}
}
}