比赛 2026初中综合小练习 评测结果 RRRRRRRRRRRRRRRRRRRR
题目名称 逻辑表达式 最终得分 0
用户昵称 星辰流浪 运行时间 0.270 s
代码语言 C++ 内存使用 11.39 MiB
提交时间 2026-04-14 19:52:27
显示代码纯文本
#include <bits/stdc++.h>
using namespace std;

long long a[1000005];

int main(){
    freopen("minvalinset.in","r",stdin);
    freopen("minvalinset.out","w",stdout);
    int n;
    cin >> n;
    long long  temp = 1,temp2 = 1;
    a[1] = 1;
    for(int i=2;i<=1000002;i++){
        a[i] = a[i-1]+2;
        i++;
        a[i] = a[i-1] +1;
        i++;
        a[i] = a[i-1] +3;
    }
    for(int i=1;i<=n;i++){
        printf("%d ",a[i]);
    }
    return 0;
}