結果
| 問題 |
No.734 Careful Engineer
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-28 16:43:13 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 261 bytes |
| コンパイル時間 | 411 ms |
| コンパイル使用メモリ | 59,228 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-19 07:07:52 |
| 合計ジャッジ時間 | 942 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 WA * 3 |
ソースコード
#include<iostream>
#include<math.h>
using namespace std;
int main() {
long long a, b, c;
double x = 0;
cin >> a >> b >> c;
x = (-pow(60, 2)*c) / (b - 60 * a);
double ans = ceil(x);
if (x < 0) {
cout << -1;
return 0;
}
cout << ans;
return 0;
}