結果
| 問題 | No.734 Careful Engineer | 
| コンテスト | |
| ユーザー |  a01sa01to | 
| 提出日時 | 2024-03-07 00:13:35 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 561 bytes | 
| コンパイル時間 | 3,434 ms | 
| コンパイル使用メモリ | 272,372 KB | 
| 実行使用メモリ | 7,844 KB | 
| 最終ジャッジ日時 | 2025-06-20 02:05:40 | 
| 合計ジャッジ時間 | 4,135 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 13 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
  #include "settings/debug.cpp"
  #define _GLIBCXX_DEBUG
#else
  #define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
  ll a, b, c;
  cin >> a >> b >> c;
  // 60ax >= 3600c + bx
  // 60ax - bx >= 3600c
  // x(60a - b) >= 3600c
  // x >= 3600c / (60a - b)
  ll bunbo = 60 * a - b;
  if (bunbo <= 0) {
    cout << -1 << endl;
    return 0;
  }
  cout << (3600 * c + bunbo - 1) / bunbo << endl;
  return 0;
}
            
            
            
        