結果
| 問題 | No.3 ビットすごろく |
| コンテスト | |
| ユーザー |
yuki0217
|
| 提出日時 | 2018-06-26 13:38:02 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 285 bytes |
| 記録 | |
| コンパイル時間 | 512 ms |
| コンパイル使用メモリ | 71,512 KB |
| 実行使用メモリ | 11,176 KB |
| 最終ジャッジ日時 | 2026-03-21 10:42:44 |
| 合計ジャッジ時間 | 193,839 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 2 TLE * 31 |
ソースコード
#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