結果
問題 | No.734 Careful Engineer |
ユーザー |
|
提出日時 | 2019-01-26 00:14:06 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 564 bytes |
コンパイル時間 | 1,233 ms |
コンパイル使用メモリ | 154,772 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-18 00:06:58 |
合計ジャッジ時間 | 2,086 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 10 RE * 1 |
ソースコード
#include <bits/stdc++.h>const int INF = 1e9;const int MOD = 1e9+7;const long long LINF = 1e18;#define dump(x) cout << 'x' << ' = ' << (x) << ` `;#define FOR(i,a,b) for(int i=(a);i<(b);++i)#define REP(i,n) for(int i=0;i<(n);++i)#define REPR(i,n) for(int i=n;i>=0;i--)#define FOREACH(x,a) for(auto& (x) : (a) )typedef long long ll;using namespace std;int main(int argc, char const *argv[]) {ll a, b, c;cin >> a >> b >> c;a *= 60;c *= 3600;if (a < b) cout << -1 << endl;else cout << (c+(a-b)-1)/(a-b) << endl;return 0;}