結果

問題 No.734 Careful Engineer
ユーザー minimamu21minimamu21
提出日時 2020-04-02 23:31:00
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 363 bytes
コンパイル時間 1,402 ms
コンパイル使用メモリ 163,108 KB
実行使用メモリ 8,760 KB
最終ジャッジ日時 2023-09-11 00:53:39
合計ジャッジ時間 4,915 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
using namespace std;
using ll=long long;
int main(){
    ll a,b,c;
    cin>>a>>b>>c;
    a*=60;
    c*=3600;
    if(a<=b){
        cout<<-1<<endl;
        return 0;
    }
    int ans=0;
    ll x1=0,x2=c;
    while(x1<x2){
        x1+=a;
        x2+=b;
        ans++;
    }
    cout<<ans<<endl;
}
0