結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
|
提出日時 | 2020-10-05 10:56:05 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 180 bytes |
コンパイル時間 | 553 ms |
コンパイル使用メモリ | 66,424 KB |
最終ジャッジ日時 | 2025-01-15 02:54:54 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 21 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:10:10: warning: ‘t’ may be used uninitialized [-Wmaybe-uninitialized] 10 | t++; | ~^~ main.cpp:5:19: note: ‘t’ was declared here 5 | int n,w=1,t; | ^
ソースコード
#include<iostream> using namespace std; int main(){ int n,w=1,t; cin >> n; while(w<n){ w*=2; t++; } cout << t << endl; return 0; }