結果
| 問題 |
No.2608 Divide into two
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-20 00:06:22 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 406 bytes |
| コンパイル時間 | 1,955 ms |
| コンパイル使用メモリ | 191,564 KB |
| 最終ジャッジ日時 | 2025-02-18 21:39:25 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 1 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void solve() {
int N;
cin >> N;
if ((N & 3) == 0) {
for (int i = 0; i < N / 4; i ++) {
cout << "1001";
}
cout << endl;
} else if ((N & 3) == 3) {
cout << "110";
for (int i = 0; i < N / 4; i ++) {
cout << "1001";
}
} else {
cout << "-1" << endl;
}
}
int main () {
int T;
cin >> T;
while (T--) {
solve();
}
}