結果
| 問題 | 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 |
| 記録 | |
| コンパイル時間 | 303 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 24,572 KB |
| 最終ジャッジ日時 | 2026-07-28 03:04:14 |
| 合計ジャッジ時間 | 5,285 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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