結果
| 問題 | No.796 well known |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-02 10:31:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 2,000 ms |
| コード長 | 174 bytes |
| 記録 | |
| コンパイル時間 | 316 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 82,920 KB |
| 最終ジャッジ日時 | 2026-05-21 09:56:14 |
| 合計ジャッジ時間 | 2,471 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
n = int(input())
ans = [1]*n
ans[0] = 3
if sum(ans) % 3 == 0:
ans[n-1] = 2
elif sum(ans) % 3 == 1:
ans[n-1] = 1
elif sum(ans) % 3 == 2:
ans[n-1] = 3
print(*ans)