結果
問題 | No.734 Careful Engineer |
ユーザー |
![]() |
提出日時 | 2023-08-21 12:53:48 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 2,833 ms |
コンパイル使用メモリ | 120,000 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-18 00:12:49 |
合計ジャッジ時間 | 3,183 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 |
ソースコード
#include<iostream>#include<map>#include<vector>#include <algorithm>#include<math.h>using namespace std;int main(){long long a, b, c, t;cin >> a >> b >> c;t = ceil((double)c*60*60/(a*60 - b));cout << ((a*60 <= b) ? -1 : t) << endl;}