結果
| 問題 |
No.1658 Product / Sum
|
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2021-08-30 12:33:20 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 2,000 ms |
| コード長 | 368 bytes |
| コンパイル時間 | 4,137 ms |
| コンパイル使用メモリ | 336,316 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-23 16:07:43 |
| 合計ジャッジ時間 | 5,787 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
namespace mp = boost::multiprecision;
int main(){
int N,K;
cin>>N>>K;
if(N==2){
cout<<(2*K)<<' '<<(2*K)<<endl;
}else{
cout<<2<<' '<<K<<' '<<(N+K-1);
for(int i=0;i<N-3;i++){
cout<<' '<<1;
}
cout<<endl;
}
}
ytft