結果

問題 No.734 Careful Engineer
ユーザー TeepaBlueTeepaBlue
提出日時 2018-10-13 17:44:10
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 416 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 55,584 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-04-20 20:08:51
合計ジャッジ時間 3,853 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
10,624 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
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(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