結果

問題 No.734 Careful Engineer
ユーザー U-Ar
提出日時 2018-11-23 21:06:30
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 305 bytes
コンパイル時間 507 ms
コンパイル使用メモリ 64,020 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2025-06-20 00:45:11
合計ジャッジ時間 1,161 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
    long 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