結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| ユーザー |
RCCW
|
| 提出日時 | 2017-02-02 12:27:54 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 210 bytes |
| コンパイル時間 | 1,444 ms |
| コンパイル使用メモリ | 157,048 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 02:31:27 |
| 合計ジャッジ時間 | 2,361 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 15 |
ソースコード
#include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
int count=0;
cin>>n;
while(n!=1){
n=n/2;
if(n==2){
count-=1;
}
count+=1;
}
cout<<count+1<<endl;
}
RCCW