結果
問題 | No.734 Careful Engineer |
ユーザー |
![]() |
提出日時 | 2018-10-14 00:05:42 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 336 bytes |
コンパイル時間 | 526 ms |
コンパイル使用メモリ | 72,880 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-12 18:15:19 |
合計ジャッジ時間 | 3,876 ms |
ジャッジサーバーID (参考情報) |
judge / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | AC * 1 TLE * 1 -- * 8 |
ソースコード
#include<iostream> #include<algorithm> #include<vector> #include<cstdio> #include<cmath> using namespace std; using ll = long long; int main(){ ll a,b,c,x=0; cin >> a >> b >> c; if(a*60<=b){ cout << -1 << endl; return 0; } while((x*b+(c*3600))>((a*60)*x)) x++; cout << x << endl; return 0; }