結果
| 問題 | No.478 一般門松列列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-02-04 01:20:50 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 339 bytes |
| 記録 | |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 73,708 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-30 02:48:15 |
| 合計ジャッジ時間 | 4,946 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 34 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
int num = 30000;
for(int i=0;i<k;i++)
cout << num << endl;
for(int i=0;i<n-k;i++) {
cout << num << endl;
if(i%2==0)
num++;
else
num--;
num *= -1;
}
}