結果
| 問題 | No.2608 Divide into two |
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2024-02-09 02:23:18 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 94 ms / 1,000 ms |
| + 811µs | |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 295 ms |
| コンパイル使用メモリ | 21,468 KB |
| 実行使用メモリ | 15,784 KB |
| 最終ジャッジ日時 | 2026-09-05 16:17:36 |
| 合計ジャッジ時間 | 1,524 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 |
ソースコード
T=int(input())
for t in range(T):
N=int(input())
if N%4 in (1,2):
print(-1)
else:
ans_lst=[]
if N%4==3:
ans_lst.append(0)
ans_lst.append(0)
ans_lst.append(1)
while len(ans_lst)<N:
ans_lst.append(1)
ans_lst.append(0)
ans_lst.append(0)
ans_lst.append(1)
print(*ans_lst,sep="")
vwxyz