22 lines
347 B
C++
22 lines
347 B
C++
|
#include <iostream>
|
||
|
using namespace std;
|
||
|
int ans=0,nowans=1;
|
||
|
void xiao(int now,int duan){
|
||
|
if(duan==1){
|
||
|
if(ans==0||nowans<ans){
|
||
|
ans=nowans;
|
||
|
return ;
|
||
|
}
|
||
|
}else{
|
||
|
for(int i=10;;i*=10){
|
||
|
if(now)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
int main()
|
||
|
{
|
||
|
int n;
|
||
|
cin>>n;
|
||
|
xiao(n,4);
|
||
|
}
|