結果
| 問題 | No.1837 Same but Different |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-02-11 23:30:21 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 1,437 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-16 01:39:50 |
| 合計ジャッジ時間 | 6,050 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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