結果
| 問題 | No.734 Careful Engineer |
| コンテスト | |
| ユーザー |
Esire
|
| 提出日時 | 2018-11-29 00:18:48 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 1,047 bytes |
| 記録 | |
| コンパイル時間 | 575 ms |
| コンパイル使用メモリ | 109,504 KB |
| 実行使用メモリ | 9,472 KB |
| 最終ジャッジ日時 | 2026-03-13 21:22:06 |
| 合計ジャッジ時間 | 7,870 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 11 TLE * 2 |
ソースコード
//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;
int ans = 0;
for(int i = 1;; i++){
if((i * b) >= (i * a)){
ans = -1;
break;
}
else if((c + (i * b)) <= (i * a)){
ans = i;
break;
}
}
cout << ans << endl;
return 0;
}
Esire