結果
| 問題 |
No.1837 Same but Different
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-11 23:54:33 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 304 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,264 KB |
| 最終ジャッジ日時 | 2024-06-27 22:30:20 |
| 合計ジャッジ時間 | 4,180 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 WA * 16 |
ソースコード
n = int(input())
A, B = [], []
for i in range(n):
A.append(3 * i)
B.append(7 + 3 * i)
if n % 3 == 1:
A[0] += 1
elif n % 3 == 2:
A[0] += 1
A[1] += 1
res = sum(B) - sum(A)
i = n - 1
while res > 0:
A[i] += 3
res -= 3
i = (i - 1) % n
print(*A)
print(*B)