結果
| 問題 | No.734 Careful Engineer |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-31 20:40:52 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 245µs | |
| コード長 | 465 bytes |
| 記録 | |
| コンパイル時間 | 501 ms |
| コンパイル使用メモリ | 92,944 KB |
| 実行使用メモリ | 9,404 KB |
| 最終ジャッジ日時 | 2026-07-12 08:06:21 |
| 合計ジャッジ時間 | 1,923 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
#include <cstdio>
#include <cstdlib>
#include <cstddef>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <iostream>
#include <iomanip>
int main(void)
{
long a, b, c;
std::cin >> a >> b >> c;
if(60 * a - b <= 0) {
std::cout << -1 << std::endl;
} else {
long x = 3600 * c % (60 * a - b) == 0 ? 3600 * c / (60 * a - b) : 3600 * c / (60 * a - b) + 1;
std::cout << x << std::endl;
}
return 0;
}