結果
問題 | No.734 Careful Engineer |
ユーザー |
![]() |
提出日時 | 2018-09-29 00:12:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 607 bytes |
コンパイル時間 | 1,446 ms |
コンパイル使用メモリ | 158,696 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-18 00:05:08 |
合計ジャッジ時間 | 2,078 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h>#define int long longusing namespace std;#define rep(i,s,n) for(int i = s;i<n;i++)#define repe(i,s,n) for(int i = s;i<=n;i++)#define pb push_back#define fi first#define se secondtypedef long long ll;typedef pair<int,int>pint;typedef vector<int>vint;typedef vector<pint>vpint;static const ll maxLL = (ll)1 << 62;const ll MOD=1000000007,INF=1e18;int dy[]={-1,0,1,0};int dx[]={0,1,0,-1};int a,b,c;signed main(){cin>>a>>b>>c;if(60*a<=b)cout<<-1;else cout<<(ll)ceil((double)3600*c/(60*a-b));return 0;}