#include<iostream>
#include<string>
using namespace std;
int main(){
int t;
int a = 0;
cin>> t;
long k[t];
string outp;
for (int i = 0; i<t; i++){
cin>>k[i];
}
for (int i = 0; i<t; i++){
outp = "";
if (k[i]<=100){
outp = "1";
for (long j = 1; j<k[i]; j++){
outp += "+1";
}}
else{
outp = "NIE";
}
cout<<outp<<endl;
}
}
int div(long x){
int n;
if(x%2==0){
return true;
}
else{
return false;
}
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #include<iostream> #include<string> using namespace std; int main(){ int t; int a = 0; cin>> t; long k[t]; string outp; for (int i = 0; i<t; i++){ cin>>k[i]; } for (int i = 0; i<t; i++){ outp = ""; if (k[i]<=100){ outp = "1"; for (long j = 1; j<k[i]; j++){ outp += "+1"; }} else{ outp = "NIE"; } cout<<outp<<endl; } } int div(long x){ int n; if(x%2==0){ return true; } else{ return false; } } |
English