結果

問題 No.734 Careful Engineer
ユーザー nii
提出日時 2018-09-28 22:07:44
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 391 bytes
コンパイル時間 729 ms
コンパイル使用メモリ 85,788 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-06-20 00:43:48
合計ジャッジ時間 1,457 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <iostream>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <list>
#include <cmath>
#include <stack>
#include <string>
#include <cstring>
using namespace std;
//
const int inf=1e9+7;//0x3f
//
int main(){
	long long A,B,C;
	cin>>A>>B>>C;
	if(60*A-B<=0){
		cout<<-1<<endl;
	}else{
		cout<<(3600*C+60*A-B-1)/(60*A-B)<<endl;
	}
	return 0;
}
0