結果

問題 No.734 Careful Engineer
ユーザー cowgirlcowgirl
提出日時 2018-09-28 21:41:33
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 243 bytes
コンパイル時間 1,378 ms
コンパイル使用メモリ 162,716 KB
実行使用メモリ 17,216 KB
最終ジャッジ日時 2024-04-20 11:00:58
合計ジャッジ時間 7,806 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
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;
int main(){
    int a,b,c; cin >> a >> b >> c;
    if(a*60 < b) cout << -1 << endl;
    else{
        for(int i=1;;i++){
            if(i*60*a >= 60*60*c + i*b) cout << i << endl;
        }
    }
}
0