結果

問題 No.796 well known
ユーザー ああいい
提出日時 2021-12-07 17:38:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-07 19:49:46
合計ジャッジ時間 1,799 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
x = 2 * N % 3
S = '3'
if x == 0:
    S += '22'
else:
    S += str(x) + '1'
if N == 2:print(3,1)
else:
    S += '1' * (N-3)
    for i in S:
        print(i,end = ' ')
    print()
0