結果

問題 No.1837 Same but Different
ユーザー titia
提出日時 2022-02-11 23:14:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-06-27 21:35:13
合計ジャッジ時間 4,559 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 3 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N=int(input())

A=[]
B=[]

for i in range(1,N):
    A.append(i)
for i in range(N,N+N):
    B.append(i)

A.append(sum(B)-sum(A))

print(*A)
print(*B)
0