题目传送门

可以给小学生做找规律的题 round 13 level3 t2

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

int n,y=2024;
int d=0;
int dd[]={3,-1,3,-5};

int main(){
     cin>>n;
     while(n--){
          cout<<y<<" 4 4"<<endl;
          y+=dd[d]*10;
          d=(d+1)%4;
          y+=100;
     }
     return 0;
}

0 comments

No comments so far...