https://codeforces.com/problemset/problem/1326/A
思路:其实直接输出2333...就行了,因为永远不可能被3或2整除
以下是代码实现
#include<iostream>
using namespace std;
void solved()
{
int n;
cin>>n;
if(n==1)
{
cout<<-1<<endl;
return ;
}
for(int i=1;i<=n;i++)
{
if(i==1) cout<<2;
else cout<<3;
}
cout<<endl;
return ;
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int t;
cin>>t;
while(t--)
{
solved();
}
return 0;
}