結果
| 問題 | No.3 ビットすごろく |
| コンテスト | |
| ユーザー |
yuki0217
|
| 提出日時 | 2018-06-26 13:38:02 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 285 bytes |
| 記録 | |
| コンパイル時間 | 265 ms |
| コンパイル使用メモリ | 69,632 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2026-08-02 20:39:55 |
| 合計ジャッジ時間 | 13,073 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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