結果
問題 | No.734 Careful Engineer |
ユーザー |
|
提出日時 | 2025-01-25 23:58:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 441 ms |
コンパイル使用メモリ | 59,392 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-25 23:58:48 |
合計ジャッジ時間 | 1,198 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge12 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 |
ソースコード
#include<iostream>#include<cassert>using namespace std;int main(){ios::sync_with_stdio(false);cin.tie(nullptr);long A,B,C;cin>>A>>B>>C;//A*60*X>=X*B+C*3600//(60*A-B)*X>=C*3600long x=60*A-B,y=C*3600;if(x<=0)cout<<-1<<endl;else cout<<(y+x-1)/x<<endl;}