結果
| 問題 | No.734 Careful Engineer | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-09-28 22:01:33 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 1,134 bytes | 
| コンパイル時間 | 1,502 ms | 
| コンパイル使用メモリ | 170,964 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-12 06:41:12 | 
| 合計ジャッジ時間 | 2,081 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 7 WA * 3 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=a;i<b;i++)
#define revrep(i,a,b) for(int i=a;i>b;i--)
#define int long long
const int inf = 100100100100000;
const int mod = 1000000007;
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};
int input(){int tmp;cin >> tmp;return tmp;}
string raw_input(){string tmp;cin >> tmp;return tmp;}
string readline(){string s;getline(cin, s);return s;}
void print(int n){cout << n << endl;}
void print(vector<int> arr){cout << arr[0];rep(i,1,arr.size()) cout << " " << arr[i];cout << endl;}
void print(string s){cout << s << endl;}
void print(pair<int, int> p){cout << p.first << " " << p.second;}
void print(vector<vector<int>> arr){rep(i,0,arr.size()){print(arr[i]);}}
void print(double n){cout << n << endl;}
int ceil(int a, int b){if(a%b == 0) return a/b;else return a/b + 1;}
//main-----------------------------------------------------------------------------
signed main(){
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);
    int a,b,c; cin >> a >> b >> c;
    a *= 60;
    c *= 3600;
    
    int x = ceil(c/(a-b));
    print( x > 0 ? x + 1 : -1);
}
            
            
            
        