結果

問題 No.2038 Strange Arrange
ユーザー ぷら
提出日時 2022-08-12 22:51:05
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 280 bytes
コンパイル時間 2,118 ms
コンパイル使用メモリ 191,900 KB
最終ジャッジ日時 2025-01-30 21:36:06
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    int N;
    cin >> N;
    for(int i = 1; i <= N; i++) {
        int cnt = 1;
        int j = i;
        while(j%2 == 0) {
            j /= 2;
            cnt++;
        }
        cout << cnt;
    }
    cout << endl;
}
0