过了两道题,继续加油
A Madoka and Math Dad
#include<bits/stdc++.h>
using namespace std;
int T;
int get1(int x){
return x % 3;
}
int get2(int x){
return x / 3;
}
int main()
{
cin>>T;
while(T -- ){
int n;
cin>>n;
int x = get1(n);
int y = get2(n);
if(x == 1){
cout<<"1";
for(int i = 0; i < 2 * y; i ++ ){
if(i % 2 == 0){
cout<<"2";
}
else if(i % 2 == 1){
cout<<"1";
}
}
}
else if(x == 2){
for(int i = 0; i < 2 * y; i ++ ){
if(i % 2 == 0){
cout<<"2";
}
else if