結果

問題 No.734 Careful Engineer
ユーザー mine691mine691
提出日時 2018-09-28 21:40:25
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 791 ms
コンパイル使用メモリ 64,396 KB
実行使用メモリ 10,144 KB
最終ジャッジ日時 2024-04-20 10:59:48
合計ジャッジ時間 4,262 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
10,144 KB
testcase_01 WA -
testcase_02 AC 2 ms
6,944 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

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