結果

問題 No.734 Careful Engineer
ユーザー TeepaBlue
提出日時 2018-10-13 17:44:10
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 416 bytes
コンパイル時間 674 ms
コンパイル使用メモリ 53,976 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-10-12 18:08:34
合計ジャッジ時間 3,752 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 4
other AC * 1 TLE * 1 -- * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;

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