結果
問題 | No.1658 Product / Sum |
ユーザー |
![]() |
提出日時 | 2021-08-28 20:18:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 10 ms / 2,000 ms |
コード長 | 341 bytes |
コンパイル時間 | 3,939 ms |
コンパイル使用メモリ | 228,352 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 21:17:10 |
合計ジャッジ時間 | 5,368 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <atcoder/all> using namespace atcoder; using ll=long long; using Graph=vector<vector<int>>; #define MAX 2000000 #define MOD 1000000007 #define INF 1000000000 int main(){ int N,K; cin>>N>>K; cout<<2*K+N-2<<" "<<2*K; for(int i=0;i<N-2;i++){ cout<<' '<<1; } cout<<'\n'; }