結果

問題 No.734 Careful Engineer
ユーザー kekenx
提出日時 2020-04-01 19:10:23
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 308 bytes
コンパイル時間 2,004 ms
コンパイル使用メモリ 159,356 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2025-01-18 00:09:06
合計ジャッジ時間 2,324 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 10 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
  ll a, b, c;
  cin >> a >> b >> c;
  a *= 60;
  c *= 60 * 60;
  if (a < b) {
    puts("-1");
  } else if (a == b) {
    puts("0");
  } else {
    ll ans = ceil((double)c / (a - b));
    cout << ans << '\n';
  }
  return 0;
}
0