結果
| 問題 | No.1010 折って重ねて |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-21 08:31:53 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 275 bytes |
| 記録 | |
| コンパイル時間 | 263 ms |
| コンパイル使用メモリ | 74,016 KB |
| 実行使用メモリ | 9,928 KB |
| 最終ジャッジ日時 | 2026-10-04 19:58:12 |
| 合計ジャッジ時間 | 2,507 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 WA * 13 |
ソースコード
#include <iostream>
using namespace std;
int main() {
long double x, y, h;
cin >> x >> y >> h;
x *= 1000; y*= 1000;
int ans = 0;
while(x > h) {
x /= 2;
h *= 2;
ans++;
}
while(y > h) {
y /= 2;
h *= 2;
ans++;
}
cout << ans << endl;
}