#include <bits/stdc++.h>
using namespace std;
int vet[100100];
int main(){
int k;
cin >> k;
for(int i=1; i<=k; i++){
cin >> vet[i];
}
int x = vet[1];
if(x==0){
if(k==1){
cout << 0 << endl;
}
else if(k>=2 and k<=10){
cout << 100 << endl;
}
else if(k>=11 and k<=100){
cout << 10000 << endl;
}
else if(k>=101 and k<=1000){
cout << 1000000 << endl;
}
else if(k>=1001 and k<=10000){
cout << 100000000 << endl;
}
else if(k>=10001 and k<=100000){
cout << 10000000000 << endl;
}
return 0;
}
if(k==1){
cout << x << endl;
}
else if(k>=2 and k<=10){
cout << x*10 << endl;
}
else if(k>=11 and k<=100){
cout << x*100 << endl;
}
else if(k>=101 and k<=1000){
cout << x*1000 << endl;
}
else if(k>=1001 and k<=10000){
cout << x*10000 << endl;
}
else if(k>=10001 and k<=100000){
cout << x*100000 << endl;
}
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |