結果
問題 |
No.734 Careful Engineer
|
ユーザー |
![]() |
提出日時 | 2019-09-07 20:13:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 413 bytes |
コンパイル時間 | 704 ms |
コンパイル使用メモリ | 87,004 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-20 00:46:06 |
合計ジャッジ時間 | 1,456 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
#include<iostream> #include<algorithm> #include <vector> #include<cmath> #include<iomanip> #include<queue> using namespace std; typedef long long int lont; int main() { double A, B, C; cin >> A >> B >> C; A *= 60; C *= 3600; lont ans = 1; if (A <= B) { cout << -1 << endl; } else if(C/(A-B)-lont(C/(A-B))){ cout << lont(C / (A - B))+1 << endl; } else { cout << lont(C / (A - B)) << endl; } }