結果

問題 No.796 well known
ユーザー ああいいああいい
提出日時 2021-12-07 17:38:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 8,380 KB
最終ジャッジ日時 2023-09-22 03:01:44
合計ジャッジ時間 1,950 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,900 KB
testcase_01 AC 15 ms
7,816 KB
testcase_02 AC 15 ms
7,824 KB
testcase_03 AC 14 ms
7,896 KB
testcase_04 AC 52 ms
8,220 KB
testcase_05 AC 58 ms
8,244 KB
testcase_06 AC 66 ms
8,336 KB
testcase_07 AC 25 ms
8,380 KB
testcase_08 AC 60 ms
8,352 KB
testcase_09 AC 42 ms
8,312 KB
testcase_10 AC 66 ms
8,236 KB
testcase_11 AC 21 ms
8,172 KB
testcase_12 AC 37 ms
8,212 KB
testcase_13 AC 52 ms
8,368 KB
testcase_14 AC 32 ms
8,232 KB
testcase_15 AC 40 ms
8,356 KB
testcase_16 AC 66 ms
8,208 KB
権限があれば一括ダウンロードができます

ソースコード

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