結果
| 問題 | No.796 well known |
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-16 13:32:15 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 910 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 24,284 KB |
| 最終ジャッジ日時 | 2026-03-08 17:17:21 |
| 合計ジャッジ時間 | 6,131 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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