Codeforces Global Round 7.[Bad Ugly Numbers]

题目大意:

链接 http://codeforces.com/contest/1326/problem/A

让你求一个数,使得这个数的任何位上面的数字都不能整除他。

做法

请直接输出27777777................ QAQ

代码

#include<bits/stdc++.h>
using namespace std;
int main(){
    int t;
    cin>>t;
    while(t){
        t--;
        int n;
        cin>>n;
        if(n==1){
            cout<<-1<<endl;
        }
        else{
            cout<<2;
            for(int i=1;i<n;i++){
                cout<<7;
            }
                cout<<endl;
        }
    }
    return 0;
}
rush!
原文地址:https://www.cnblogs.com/LH2000/p/12528866.html