結果
| 問題 | No.734 Careful Engineer |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-14 10:38:35 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 236µs | |
| コード長 | 535 bytes |
| 記録 | |
| コンパイル時間 | 552 ms |
| コンパイル使用メモリ | 131,800 KB |
| 実行使用メモリ | 9,396 KB |
| 最終ジャッジ日時 | 2026-07-12 08:28:33 |
| 合計ジャッジ時間 | 1,664 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <queue>
#include <cstdio>
#include <ctime>
#include <assert.h>
#include <chrono>
#include <random>
#include <numeric>
#include <set>
using namespace std;
typedef long long int ll;
using ull = unsigned long long;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
ll a,b,c; cin >> a >> b >> c;
if(60*a<=b){
printf("-1\n");
}
else{
a*=60;
c*=3600;
printf("%lld\n",(c+a-b-1)/(a-b));
}
}