結果

問題 No.734 Careful Engineer
ユーザー U-Ar
提出日時 2018-11-23 21:02:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 304 bytes
コンパイル時間 1,144 ms
コンパイル使用メモリ 58,648 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-24 18:53:40
合計ジャッジ時間 1,700 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cmath>
using namespace std;

int main() {
    int a, b, c;
    cin >> a; cin >> b; cin >> c;
    
    if (b >= 60 * a){
        cout << -1 << "\n";
        return 0;
    }

    long tmp;
    tmp = static_cast<long>(ceil(3600.0 * c / (60 * a - b)));

    cout << tmp << "\n";
}
0