結果

問題 No.734 Careful Engineer
ユーザー 👑 obakyan
提出日時 2019-03-31 20:40:52
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 465 bytes
コンパイル時間 572 ms
コンパイル使用メモリ 74,196 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2025-06-20 00:45:52
合計ジャッジ時間 1,208 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstdlib>
#include <cstddef>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <iostream>
#include <iomanip>

int main(void)
{
	long a, b, c;
	std::cin >> a >> b >> c;
    if(60 * a - b <= 0) {
        std::cout << -1 << std::endl;
    } else {
        long x = 3600 * c % (60 * a - b) == 0 ? 3600 * c / (60 * a - b) : 3600 * c / (60 * a - b) + 1;
        std::cout << x << std::endl;
    }
	return 0;
}

0