結果

問題 No.1658 Product / Sum
ユーザー V_MelvilleV_Melville
提出日時 2021-08-28 00:20:35
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 246 bytes
コンパイル時間 1,664 ms
コンパイル使用メモリ 199,692 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-05-01 05:12:21
合計ジャッジ時間 3,227 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,812 KB
testcase_01 AC 1 ms
6,944 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 1 ms
6,940 KB
testcase_04 WA -
testcase_05 AC 9 ms
6,944 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 3 ms
6,944 KB
testcase_11 AC 3 ms
6,944 KB
testcase_12 WA -
testcase_13 AC 4 ms
6,940 KB
testcase_14 WA -
testcase_15 AC 4 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)

using std::cin;
using std::cout;

int main() {
	int n, k;
	cin >> n >> k;
	
	cout << k * (n + k - 1) << " " << k + 1 << " ";
	rep(i, n - 2) cout << 1 << " ";
	
	return 0;
}
0