結果

問題 No.478 一般門松列列
ユーザー newlife171128
提出日時 2018-01-07 10:09:21
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 467 bytes
コンパイル時間 789 ms
コンパイル使用メモリ 73,504 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-23 09:53:32
合計ジャッジ時間 4,328 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <cmath>
#include <stack>
#include <cctype>
#include <stdio.h>

using namespace std;

int a[22000];

int main() {

  int n=0,k=0;
  cin>>n>>k;

  a[0] =1;
  a[1] =3;
  a[2] =2;

  for(int i=0; i<n-3;i++){
	  a[i+3] = a[i+1]+1;
  }
  for(int i=0; i<k; i++){
	  a[i] = 30000;
  }

  for(int i=0; i<n; i++){
	  cout<<a[i]<<endl;
  }


	return 0;
}
0