結果

問題 No.796 well known
ユーザー URechaRecha
提出日時 2019-09-06 16:53:06
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,668 KB
最終ジャッジ日時 2024-06-24 00:41:09
合計ジャッジ時間 1,837 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    for i in range(4,312454,3):
        if i %3 ==1 and i >= (N-1):
            ans = [i]
            ans[0] -= N-2
            ans +=[1]*(N-2)
            ans.append(3)
            print((' ').join(map(str,ans)))
            return None
main()
0