結果
| 問題 |
No.1010 折って重ねて
|
| コンテスト | |
| ユーザー |
rahulsingh40g
|
| 提出日時 | 2020-03-20 21:34:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 466 bytes |
| コンパイル時間 | 1,696 ms |
| コンパイル使用メモリ | 166,480 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-15 04:31:50 |
| 合計ジャッジ時間 | 2,555 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 WA * 13 |
ソースコード
#include <bits/stdc++.h>
#define ll long long int
#define w(t) int t;cin>>t;while(t--)
using namespace std;
int main() {
ll l,b,h,count=0;;
cin>>l>>b>>h;
l*=1000;
b*=1000;
while(1)
{
if(l>h)
{
l/=2;
count++;
h*=2;
}
else if(b>h)
{
b/=2;
count++;
h*=2;
}
else
break;
}
cout<<count;
return 0;
}
rahulsingh40g