結果
| 問題 | No.1010 折って重ねて |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-20 21:45:59 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 386µs | |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 808 ms |
| コンパイル使用メモリ | 183,056 KB |
| 実行使用メモリ | 9,876 KB |
| 最終ジャッジ日時 | 2026-10-03 21:11:28 |
| 合計ジャッジ時間 | 3,139 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 43 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
double const eps = 1e-10;
int main() {
double x,y,h; cin >> x >> y >> h;
x *= 1000; y *= 1000;
if(x > y) swap(x,y);
int res = 0;
while(x > h + eps) {
++res; x *= 0.5; h *= 2.0;
}
while(y > h + eps) {
++res; y *= 0.5; h *= 2.0;
}
cout << res << endl;
}