結果
問題 | No.2608 Divide into two |
ユーザー |
|
提出日時 | 2022-08-26 18:58:10 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 5,028 ms |
コンパイル使用メモリ | 65,276 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-27 19:24:08 |
合計ジャッジ時間 | 4,565 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 1 |
ソースコード
import strutilsproc solve()=let n = stdin.readLine.parseBiggestIntif n mod 4 == 1:echo -1returnvar s = n * (n + 1) div 4var result = '0'.repeat(n)for i in countdown(n, 1):if i <= s:result[i-1] = '1's -= iecho resultlet t = stdin.readLine.parseIntfor _ in 0..<t:solve()