結果
| 問題 |
No.734 Careful Engineer
|
| コンテスト | |
| ユーザー |
Esire
|
| 提出日時 | 2018-11-29 00:22:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 877 bytes |
| コンパイル時間 | 926 ms |
| コンパイル使用メモリ | 93,028 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2025-01-18 00:06:39 |
| 合計ジャッジ時間 | 1,922 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 RE * 1 |
ソースコード
//g++ -std=c++11 -Wall -O2 -o main.exe main.cpp
//g++ -std=c++14 -Wall -O2 -o main.exe main.cpp
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <stack>
#include <tuple>
#include <functional>
#include <algorithm>
#include <complex>
#include <numeric>
using namespace std;
#define spc " "
#define MOD 1000000007
typedef long long ll;
typedef long double ld;
typedef pair<int, int> p_ii;
typedef tuple<int, int, int, int> tup;
bool tupComp(tup &t1, tup &t2){
return get<2>(t1) > get<2>(t2);
}
//------------------------------------------------------------------------------
int main(){
ll a, b, c;
cin >> a >> b >> c;
a *= 60; c *= 3600;
ll ans = max((ll)-1, (c + (a - b - 1)) / (a - b));
cout << ans << endl;
return 0;
}
Esire