結果
| 問題 |
No.2608 Divide into two
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-01-20 04:41:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 1,000 ms |
| コード長 | 244 bytes |
| コンパイル時間 | 279 ms |
| コンパイル使用メモリ | 82,400 KB |
| 実行使用メモリ | 52,608 KB |
| 最終ジャッジ日時 | 2024-09-28 05:25:02 |
| 合計ジャッジ時間 | 874 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 |
ソースコード
t=int(input()) for i in range(t): n=int(input()) if n%2: n+=1 if n%4==0: s="1"*(n//4)+"0"*(n//2)+"1"*(n//4) print(s[1:]) else: print(-1) else: if n%4==0: s="1"*(n//4)+"0"*(n//2)+"1"*(n//4) print(s) else: print(-1)
sasa8uyauya