結果

問題 No.734 Careful Engineer
ユーザー bluebery1001bluebery1001
提出日時 2023-02-23 17:11:34
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 569 bytes
コンパイル時間 1,512 ms
コンパイル使用メモリ 165,460 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-30 18:27:02
合計ジャッジ時間 2,892 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 WA -
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 2 ms
4,376 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 1 ms
4,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using namespace std;
#include<bits/stdc++.h>
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
typedef long long ll;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
#define all(v) v.begin(),v.end()
#define rep(i, star,fini) for (int i = (int)(star); i < (int)(fini); i++)
ll a,b,c;
int main() {
    cin >> a >> b >> c;
    a *= 60;
    c *= 3600;
    ll ans = c/(a-b);
    if(a<b){cout<<-1<<endl;return 0;}
    if(ans*a>ans*b+c)
    {
        ans += 1;
    }
    cout<<ans+1<<endl;
}
0