結果

問題 No.2608 Divide into two
ユーザー mikan0131mikan0131
提出日時 2024-03-22 12:21:34
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 362 bytes
コンパイル時間 2,056 ms
コンパイル使用メモリ 201,528 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-03-22 12:21:38
合計ジャッジ時間 3,230 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int T, N[109];

int main() {
	cin >> T;
	for (int i = 1; i <= T; i++) cin >> N[i];
	for (int i = 1; i <= T; i++) {
		if (N[i] % 4 != 0 && N[i] != 3) {cout << -1 << endl; continue;}
		for (int j = 1; j <= N[i]; j++) {
			if (j % 4 == 0 || j % 4 == 3) cout << 1;
			else cout << 0;
		}
		cout << endl;
	}
	return 0;
}
0