結果
| 問題 |
No.3 ビットすごろく
|
| コンテスト | |
| ユーザー |
yuki0217
|
| 提出日時 | 2018-06-26 13:38:02 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 285 bytes |
| コンパイル時間 | 368 ms |
| コンパイル使用メモリ | 55,164 KB |
| 実行使用メモリ | 16,832 KB |
| 最終ジャッジ日時 | 2024-06-30 22:53:28 |
| 合計ジャッジ時間 | 12,818 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 32 |
ソースコード
#include <iostream>
using namespace std;
int n;
int main() {
cin >> n;
int cnt2=0;
int cnt1;
for(int i=1;i<n;i+=cnt1){
cnt1=0;
for(int j=i;j==1;j/=2){
if(j%2==1){
cnt1++;
}
}
cnt2++;
}
cout << cnt2 << endl;
return 0;
}
yuki0217