結果
| 問題 |
No.1658 Product / Sum
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-08 15:16:09 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 211 bytes |
| コンパイル時間 | 1,907 ms |
| コンパイル使用メモリ | 192,732 KB |
| 最終ジャッジ日時 | 2025-02-08 00:27:14 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
long long N,K;
cin>>N>>K;
for(int i=0;i<N-2;i++)cout<<"1 ";
cout<<K+1<<' '<<K*(K+N-1)<<'\n';
}