結果
| 問題 |
No.734 Careful Engineer
|
| コンテスト | |
| ユーザー |
東前頭十一枚目
|
| 提出日時 | 2018-09-29 10:35:07 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 475 bytes |
| コンパイル時間 | 1,278 ms |
| コンパイル使用メモリ | 159,652 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2025-01-18 00:05:16 |
| 合計ジャッジ時間 | 1,862 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 WA * 1 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define all(x) (x).begin(),(x).end()
using namespace std;
const int INF=1145141919,MOD=1e9+7;
const long long LINF=8931145141919364364,LMOD=998244353;
// const int dx[]={1,0,-1,0,1,1,-1,-1},dy[]={0,-1,0,1,1,-1,-1,1};
int main(){
long long a,b,c; cin>>a>>b>>c;
if(a*60==b) cout<<0<<endl;
else if(a*60<b) cout<<-1<<endl;
else{
cout<<(c*3600+a*60-b-1)/(a*60-b)<<endl;
}
return 0;
}
東前頭十一枚目