結果
問題 | No.734 Careful Engineer |
ユーザー |
![]() |
提出日時 | 2018-10-14 00:13:53 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 367 bytes |
コンパイル時間 | 535 ms |
コンパイル使用メモリ | 69,708 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-18 00:06:01 |
合計ジャッジ時間 | 1,298 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 |
ソースコード
#include<iostream> #include<algorithm> #include<vector> #include<cstdio> #include<cmath> using namespace std; using ll = long long; int main(){ ll a,b,c,x=0; cin >> a >> b >> c; if(a*60<=b){ cout << -1 << endl; return 0; } c*=3600; a*=60; x = c/(a-b)-1; while( c > (a-b)*x ) x++; cout << x << endl; return 0; }