結果
問題 |
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 |
コンパイル時間 | 801 ms |
コンパイル使用メモリ | 61,900 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2025-06-20 02:20:42 |
合計ジャッジ時間 | 1,536 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
#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*3600 long x=60*A-B,y=C*3600; if(x<=0)cout<<-1<<endl; else cout<<(y+x-1)/x<<endl; }