結果
| 問題 | No.1010 折って重ねて |
| コンテスト | |
| ユーザー |
AkabaEri
|
| 提出日時 | 2020-03-28 17:44:19 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 347 bytes |
| 記録 | |
| コンパイル時間 | 973 ms |
| コンパイル使用メモリ | 179,132 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-06 01:50:17 |
| 合計ジャッジ時間 | 2,326 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 43 |
ソースコード
#include <bits/stdc++.h>
using ll = long long int;
using namespace std;
ll mod=1e9+7;
int dfs(double x,double y,double l,int ans){
if(x>l)return dfs(x/2,y,l*2,ans+1);
if(y>l)return dfs(x,y/2,l*2,ans+1);
return ans;
}
int main(){
double x,y,l;
cin >> x >> y >> l;
l*=0.001;
if(x>y)swap(x,y);
cout << dfs(x,y,l,0) << endl;
}
AkabaEri