結果
| 問題 |
No.688 E869120 and Constructing Array 2
|
| コンテスト | |
| ユーザー |
aguroshou
|
| 提出日時 | 2018-05-18 23:29:43 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 466 bytes |
| コンパイル時間 | 432 ms |
| コンパイル使用メモリ | 57,108 KB |
| 実行使用メモリ | 13,884 KB |
| 最終ジャッジ日時 | 2024-07-07 13:39:28 |
| 合計ジャッジ時間 | 4,944 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | WA * 9 OLE * 1 |
ソースコード
#include<iostream>
#include <algorithm>
#include<string>
using namespace std;
int main()
{
int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, ans = 0;
int k;
cin >> k;
for ( a = 2; a <= 30; a++)
{
b = a - 1;
if (k%(a*b)==0)
{
c = k / (a*b);
if (!(c & (c - 1)))
{
while (c != 1)
{
cout << "0 ";
c /= 2;
}
cout << "0 ";
break;
}
}
}
for ( b = 0; b < a; b++)
{
cout << "1 ";
}
return 0;
}
aguroshou