Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
int32_t main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
int t; cin >> t;
while(t--) {
ll n ; cin >> n;
vector<int>v(3);
v[0] = 2;
v[1] = 4;
v[2] = 9;
int var = 2;
for (int i = 1; i <= n-3; i++) {
v.push_back(6*var);
var++;
}
for (auto x : v) {
cout << x << " ";
}
cout << endl;
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1070 Strange Sequences
- Contest
- Brain Booster #4
- Language
- C++20 (G++ 13.2.0)
- Submit At
- 2024-07-14 18:46:28
- Judged At
- 2024-11-11 03:22:09
- Judged By
- Score
- 0
- Total Time
- 9ms
- Peak Memory
- 1.172 MiB