結果

問題 No.1658 Product / Sum
ユーザー fuppy_kyoprofuppy_kyopro
提出日時 2021-08-27 23:28:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 82,128 KB
実行使用メモリ 76,224 KB
最終ジャッジ日時 2024-05-01 04:22:14
合計ジャッジ時間 2,482 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,676 KB
testcase_01 AC 35 ms
52,528 KB
testcase_02 AC 33 ms
52,748 KB
testcase_03 AC 35 ms
52,668 KB
testcase_04 AC 35 ms
52,548 KB
testcase_05 AC 54 ms
76,224 KB
testcase_06 AC 54 ms
75,792 KB
testcase_07 AC 45 ms
63,964 KB
testcase_08 AC 50 ms
73,748 KB
testcase_09 AC 47 ms
64,960 KB
testcase_10 AC 46 ms
65,520 KB
testcase_11 AC 45 ms
64,328 KB
testcase_12 AC 46 ms
65,656 KB
testcase_13 AC 51 ms
65,812 KB
testcase_14 AC 54 ms
75,768 KB
testcase_15 AC 49 ms
67,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = list(map(int, input().split()))

y = k + 1
x =  k * y + k * (n - 2)
for i in range(n - 2):
    print(1, end = " ")
print(f"{y} {x}")
0