結果

問題 No.1658 Product / Sum
ユーザー rlangevinrlangevin
提出日時 2022-12-31 21:58:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 188 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 86,804 KB
実行使用メモリ 85,536 KB
最終ジャッジ日時 2023-08-17 21:14:40
合計ジャッジ時間 5,020 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,288 KB
testcase_01 AC 74 ms
71,292 KB
testcase_02 AC 73 ms
71,212 KB
testcase_03 AC 72 ms
71,292 KB
testcase_04 AC 73 ms
71,288 KB
testcase_05 AC 100 ms
85,480 KB
testcase_06 AC 100 ms
85,536 KB
testcase_07 AC 86 ms
76,464 KB
testcase_08 AC 97 ms
83,228 KB
testcase_09 AC 86 ms
77,736 KB
testcase_10 AC 88 ms
76,940 KB
testcase_11 AC 82 ms
76,152 KB
testcase_12 AC 86 ms
76,968 KB
testcase_13 AC 87 ms
78,204 KB
testcase_14 AC 96 ms
85,136 KB
testcase_15 AC 89 ms
78,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
c = N - 2
ans = [K + 1, K * (K + c + 1)]
for i in range(c):
    ans.append(1)
    
# S, P = 0, 1
# for a in ans:
#     S += a
#     P *= a
    
print(*ans)
0