結果
| 問題 |
No.2038 Strange Arrange
|
| コンテスト | |
| ユーザー |
pockyny
|
| 提出日時 | 2022-08-12 22:28:41 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 303 bytes |
| コンパイル時間 | 830 ms |
| コンパイル使用メモリ | 72,800 KB |
| 最終ジャッジ日時 | 2025-01-30 21:21:05 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
int i,n; cin >> n;
vector<int> v;
for(i=1;i<=n;i++){
int j = i,num = 1;
while(j%2==0){
j /= 2; num++;
}
v.push_back(num);
}
for(int x:v) cout << x;
cout << endl;
}
pockyny