結果
| 問題 |
No.2038 Strange Arrange
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-16 00:25:11 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 321 bytes |
| コンパイル時間 | 648 ms |
| コンパイル使用メモリ | 66,372 KB |
| 最終ジャッジ日時 | 2025-02-09 14:07:36 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 4 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
for (int i = 0; i < n; i++)
{
for (int j = 0; j <= 10; j++)
{
if ((i >> j) & 1)
{
cout << j + 1 << " ";
break;
}
}
}
cout << endl;
}