結果
問題 | No.734 Careful Engineer |
ユーザー |
👑 |
提出日時 | 2019-03-31 20:40:52 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 465 bytes |
コンパイル時間 | 578 ms |
コンパイル使用メモリ | 73,136 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-18 00:07:25 |
合計ジャッジ時間 | 1,327 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 |
ソースコード
#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;}