結果

問題 No.734 Careful Engineer
ユーザー NoiriNoiri
提出日時 2019-02-03 02:19:35
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 305 bytes
コンパイル時間 1,645 ms
コンパイル使用メモリ 165,268 KB
実行使用メモリ 8,704 KB
最終ジャッジ日時 2024-05-07 18:29:55
合計ジャッジ時間 4,897 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 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>
using namespace std;

typedef long long ll;

int main(){
    ll a, b, c;
    cin >> a >> b >> c;
    a *= 60;
    c *= 3600;
    if(a < b){
        printf("-1\n");
        return 0;
    }
    ll ans = 1;
    while(a*ans < b*ans+c) ans++;
    printf("%lld\n", ans);
    return 0;
}
0