結果

問題 No.796 well known
ユーザー hogeandfugahogeandfuga
提出日時 2019-03-15 21:39:21
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 424 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 8,376 KB
最終ジャッジ日時 2023-09-14 13:11:47
合計ジャッジ時間 2,354 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,848 KB
testcase_01 AC 15 ms
7,812 KB
testcase_02 AC 16 ms
7,844 KB
testcase_03 AC 16 ms
7,916 KB
testcase_04 AC 60 ms
8,280 KB
testcase_05 AC 64 ms
8,216 KB
testcase_06 AC 76 ms
8,248 KB
testcase_07 AC 29 ms
8,244 KB
testcase_08 AC 65 ms
8,224 KB
testcase_09 AC 47 ms
8,352 KB
testcase_10 AC 72 ms
8,352 KB
testcase_11 AC 23 ms
8,220 KB
testcase_12 AC 41 ms
8,292 KB
testcase_13 AC 59 ms
8,352 KB
testcase_14 AC 35 ms
8,296 KB
testcase_15 AC 43 ms
8,244 KB
testcase_16 AC 74 ms
8,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
r = n%3
if r == 0:
    one = n-2
elif r == 1:
    one = n-3
else:
    one = n-1
for i in range(one):
    print(1, end=" ")
for i in range(n-one):
    print(3, end=" ")
print()
0