結果

問題 No.1658 Product / Sum
ユーザー 👑 H20H20
提出日時 2021-08-27 22:05:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 92 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 82,320 KB
実行使用メモリ 78,904 KB
最終ジャッジ日時 2024-05-01 02:39:46
合計ジャッジ時間 2,835 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,524 KB
testcase_01 AC 39 ms
52,704 KB
testcase_02 AC 40 ms
52,668 KB
testcase_03 AC 39 ms
51,884 KB
testcase_04 AC 39 ms
53,004 KB
testcase_05 AC 66 ms
78,720 KB
testcase_06 AC 66 ms
78,780 KB
testcase_07 AC 51 ms
63,956 KB
testcase_08 AC 65 ms
78,444 KB
testcase_09 AC 52 ms
67,160 KB
testcase_10 AC 50 ms
65,304 KB
testcase_11 AC 50 ms
63,404 KB
testcase_12 AC 50 ms
65,136 KB
testcase_13 AC 52 ms
66,808 KB
testcase_14 AC 62 ms
78,904 KB
testcase_15 AC 52 ms
68,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int, input().split())
L = [1]*N
L[0] = (K+1)**2-(K+1)+(N-2)*K
L[1] = K+1
print(*L)
0