結果
| 問題 | No.1010 折って重ねて |
| コンテスト | |
| ユーザー |
NOSS
|
| 提出日時 | 2020-03-20 21:36:52 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 384µs | |
| コード長 | 382 bytes |
| 記録 | |
| コンパイル時間 | 818 ms |
| コンパイル使用メモリ | 181,500 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-03 20:51:05 |
| 合計ジャッジ時間 | 2,915 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 43 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main(){
ll x, y, h;
cin >> x >> y >> h;
if(x > y) swap(x,y);
x *= 1000;
y *= 1000;
ll ans = 0, ht = h;
while(x > ht){
ht <<= 2;
ans++;
}
ht = (h << ans);
while(y > ht){
ht <<= 2;
ans++;
}
cout << ans << endl;
return 0;
}
NOSS