結果
問題 | No.796 well known |
ユーザー |
|
提出日時 | 2022-07-02 10:31:09 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 72 ms / 2,000 ms |
コード長 | 174 bytes |
コンパイル時間 | 218 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 78,592 KB |
最終ジャッジ日時 | 2024-11-27 03:21:15 |
合計ジャッジ時間 | 2,243 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)