結果

問題 No.796 well known
ユーザー toshiro_yanagi
提出日時 2020-07-12 12:58:16
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 13,312 KB
最終ジャッジ日時 2024-10-14 23:59:04
合計ジャッジ時間 2,098 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = [3]

for i in range(n - 1):
    s.append(1)

while sum(s) % 3 != 1:
    s[-1] += 1

print(*s)
0