結果

問題 No.796 well known
ユーザー URechaRechaURechaRecha
提出日時 2019-09-06 16:53:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 16,368 KB
最終ジャッジ日時 2023-09-06 06:01:00
合計ジャッジ時間 1,840 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,864 KB
testcase_01 AC 17 ms
7,784 KB
testcase_02 AC 17 ms
7,852 KB
testcase_03 AC 14 ms
7,788 KB
testcase_04 AC 34 ms
14,084 KB
testcase_05 AC 34 ms
14,704 KB
testcase_06 AC 38 ms
16,040 KB
testcase_07 AC 19 ms
9,680 KB
testcase_08 AC 36 ms
14,556 KB
testcase_09 AC 28 ms
12,260 KB
testcase_10 AC 38 ms
16,368 KB
testcase_11 AC 18 ms
9,248 KB
testcase_12 AC 24 ms
11,604 KB
testcase_13 AC 32 ms
13,964 KB
testcase_14 AC 21 ms
10,556 KB
testcase_15 AC 24 ms
11,840 KB
testcase_16 AC 36 ms
16,012 KB
権限があれば一括ダウンロードができます

ソースコード

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