結果
| 問題 |
No.734 Careful Engineer
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-02-03 02:19:35 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 305 bytes |
| コンパイル時間 | 1,521 ms |
| コンパイル使用メモリ | 165,264 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-11-30 13:27:57 |
| 合計ジャッジ時間 | 8,041 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 TLE * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ll a, b, c;
cin >> a >> b >> c;
a *= 60;
c *= 3600;
if(a < b){
printf("-1\n");
return 0;
}
ll ans = 1;
while(a*ans < b*ans+c) ans++;
printf("%lld\n", ans);
return 0;
}