結果
| 問題 |
No.796 well known
|
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-16 13:32:15 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 303 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 20,864 KB |
| 最終ジャッジ日時 | 2024-06-23 16:28:16 |
| 合計ジャッジ時間 | 3,121 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 WA * 13 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N = int(read())
A = list(range(3, 3 + N - 1))
S = sum(A)
if S % 3 == 0:
A.append(1)
elif S % 3 == 1:
A.append(3 + N + (-N)%3)
else:
A.append(2)
print(' '.join(map(str,A)))
maspy