結果

問題 No.734 Careful Engineer
ユーザー 👑 CleyL
提出日時 2020-02-25 16:54:12
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 425 ms
コンパイル使用メモリ 65,764 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-06-20 00:46:27
合計ジャッジ時間 1,065 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
using namespace std;
int main(){
    long long a,b,c;cin>>a>>b>>c;
    if(60*a <= b) cout << -1 << endl;
    else cout<< 3600*c/(60*a-b) + (3600*c%(60*a-b)?1:0) << endl;
}
0