結果

問題 No.734 Careful Engineer
ユーザー mine691
提出日時 2018-09-28 21:40:25
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 64,688 KB
実行使用メモリ 13,640 KB
最終ジャッジ日時 2024-10-12 06:36:50
合計ジャッジ時間 3,939 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 4
other AC * 2 WA * 1 TLE * 1 -- * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;

int main() {
	long long a, b, c;
	cin >> a >> b >> c;
	if (a < b) {
		cout << -1 << endl;
		return 0;
	}
	else {
		long long ans = 1;
		while (1) {
			if (a * 60 * ans> c * 3600 + ans * b) {
				cout << ans << endl;
				return 0;
			}
			ans++;
		}
	}
}
0