結果
問題 |
No.1837 Same but Different
|
ユーザー |
|
提出日時 | 2022-02-11 22:18:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-06-27 19:31:34 |
合計ジャッジ時間 | 4,315 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 23 |
ソースコード
n=int(input()) a=[] b=[] asum=0 bsum=0 s=1 if n%3==2: s=2 for i in range(n): p=0 if i>=n//2: p=3 a.append(3*i+p) asum+=3*i+p b.append(3*i+s) bsum+=3*i+s a[n-1]+=bsum-asum print(*a) print(*b)