結果
問題 |
No.734 Careful Engineer
|
ユーザー |
![]() |
提出日時 | 2018-09-28 22:13:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 446 bytes |
コンパイル時間 | 719 ms |
コンパイル使用メモリ | 87,056 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 06:43:20 |
合計ジャッジ時間 | 1,227 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 9 WA * 1 |
ソースコード
#include <algorithm> #include <iostream> #include <vector> #include <queue> #include <set> #include <map> #include <list> #include <cmath> #include <stack> #include <string> #include <cstring> using namespace std; // const int inf=1e9+7;//0x3f // int main(){ long long A,B,C; cin>>A>>B>>C; if(60*A-B<=0){ cout<<-1<<endl; }else{ long long D=(3600*C+60*A-B-1)/(60*A-B); if(60*A*D<=B*D+3600*C){ D++; } cout<<D<<endl; } return 0; }