結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| ユーザー |
tSijEG6OkepBhhp
|
| 提出日時 | 2022-10-17 13:03:18 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 183 bytes |
| コンパイル時間 | 1,536 ms |
| コンパイル使用メモリ | 165,808 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-28 03:26:36 |
| 合計ジャッジ時間 | 2,335 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 1 WA * 20 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:7:12: warning: 'n' is used uninitialized [-Wuninitialized]
7 | while(b<n){
| ~^~
main.cpp:4:9: note: 'n' was declared here
4 | int n;
| ^
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
int b=1;
int c=0;
while(b<n){
b*=2;
c++;
}
if(n%2==1)c++;
cout<<c<<endl;
}
tSijEG6OkepBhhp