結果
問題 |
No.2608 Divide into two
|
ユーザー |
|
提出日時 | 2024-03-22 12:21:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 2,056 ms |
コンパイル使用メモリ | 192,480 KB |
最終ジャッジ日時 | 2025-02-20 10:57:02 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 2 |
ソースコード
#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; }