結果
| 問題 |
No.1837 Same but Different
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-02-11 23:30:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 271 bytes |
| コンパイル時間 | 125 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2024-06-27 21:55:27 |
| 合計ジャッジ時間 | 3,752 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 7 WA * 16 |
ソースコード
import sys
input = sys.stdin.readline
N=int(input())
A=[]
B=[]
s=1
for i in range((N+1)//2):
A.append(s)
s+=2
for i in range(N):
B.append(s)
s+=2
s-=1
for i in range(N-(N+1)//2-1):
A.append(s)
s+=2
A.append(sum(B)-sum(A))
print(*A)
print(*B)
titia