結果

問題 No.734 Careful Engineer
コンテスト
ユーザー obakyan
提出日時 2019-03-31 20:40:52
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 777µs
コード長 465 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 504 ms
コンパイル使用メモリ 93,044 KB
実行使用メモリ 9,792 KB
最終ジャッジ日時 2026-10-13 09:40:06
合計ジャッジ時間 1,937 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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