/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 324.0 KiB
#2 Wrong Answer 8ms 1.02 MiB
#3 Wrong Answer 8ms 1.066 MiB

Code

#include<bits/stdc++.h>
#define ll long long
using namespace std;

int main(){
  int t;
  cin >> t;
  while (t--){
    int n, ans = 0;
    cin >> n;
    //vector<int> a(n + 2), vis(n + 2);
    cout << "6 10 15 ";
    if (n == 4) cout << 30;
    if (n > 4){
      for (int i = 30, j = 4; j <= n; j++, i += 6){
        cout << i << ' ';
      }
    }
    cout << endl;
  }
}

Information

Submit By
Type
Submission
Problem
P1070 Strange Sequences
Contest
Brain Booster #4
Language
C++17 (G++ 13.2.0)
Submit At
2024-07-14 17:16:21
Judged At
2024-11-11 03:23:07
Judged By
Score
10
Total Time
8ms
Peak Memory
1.066 MiB