結果
問題 |
No.478 一般門松列列
|
ユーザー |
![]() |
提出日時 | 2017-01-28 18:10:28 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 244 bytes |
コンパイル時間 | 1,711 ms |
コンパイル使用メモリ | 160,196 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-23 21:15:08 |
合計ジャッジ時間 | 4,756 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 15 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define int long long signed main(){ int n, k; cin >> n >> k; string str="2534"; for(int i = 0;i < n;i++){ if(i < n - k)cout << str[i%4]; else cout << "0"; if(i < n -1)cout << " "; } cout << endl; }