結果
| 問題 | No.1010 折って重ねて |
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-03-21 11:52:45 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 887µs | |
| コード長 | 414 bytes |
| 記録 | |
| コンパイル時間 | 1,317 ms |
| コンパイル使用メモリ | 208,968 KB |
| 実行使用メモリ | 9,900 KB |
| 最終ジャッジ日時 | 2026-10-25 16:31:55 |
| 合計ジャッジ時間 | 3,701 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 |
ソースコード
#include<bits/stdc++.h>
using lint=long long;
int main(){
std::cin.tie(nullptr);std::ios_base::sync_with_stdio(false);
std::cout.setf(std::ios_base::fixed);std::cout.precision(15);
lint x,y,h;std::cin>>x>>y>>h;
x*=1000;
y*=1000;
if(x>y)std::swap(x,y);
lint ans=0;
while(x>h){
y*=2,h*=4,ans++;
}
while(y>h){
x*=2,h*=4,ans++;
}
std::cout<<ans<<'\n';
}
ngtkana