結果
| 問題 |
No.1837 Same but Different
|
| コンテスト | |
| ユーザー |
ikoma
|
| 提出日時 | 2022-02-11 22:03:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 163 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 82,072 KB |
| 実行使用メモリ | 65,424 KB |
| 最終ジャッジ日時 | 2024-06-27 18:43:58 |
| 合計ジャッジ時間 | 5,474 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 23 |
ソースコード
N=int(input())
A = list(range(0,3*N,3))
B = []
flg=1
for a in A:
B.append(a+flg)
flg = 1 if flg!=1 else -1
if N%2==1:
B[-1] = A[-1]
print(*A)
print(*B)
ikoma