17 条题解
- 1
信息
- ID
- 644
- 时间
- 1000ms
- 内存
- 125MiB
- 难度
- 3
- 标签
- (无)
- 递交数
- 525
- 已通过
- 269
- 上传者
#include<iostream>
using namespace std;
int main(){
int a,day=1;
cin>>a;
while(a!=1){
a =a/2;
day++;
}
cout<<day;
return 0;
}
#include<bits/stdc++.h> using namespace std; int main() { int i,n=1; cin>>i; for(i=1;i<=n;n++ ){ if(i%2==0){ n=n+i; }
} cout<<n; return 0; }
#include<bits/stdc++.h> using namespace std; int main(){ int day=1,a; cin>>a; while(a!=1){ a = a/2; day++; } cout<<day; return 0; }
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,day=1;
cin>>a;
while(a!=1){
a = a/2;
day++;
}
cout<<day;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,day=1;
cin>>a;
while(a!=1){
a = a/2;
day++;
}
cout<<day;
return 0;
}
> > #include<bits/stdc++.h>
using namespace std;
int main(){
int a,day=1;
cin>>a;
while(a!=1){
a = a/2;
day++;
}
cout<<day;
return 0;
}
using namespace std;
int main(){
int a,day=1;
cin>>a;
while(a!=1){
a =a/2;
day++;
}
cout<<day;
return 0;
}
#include<bits/stdc++.h> using namespace std; int main(){ int a,day=1; cin>>a; while(a!=1){ a =a/2; day++; } cout<<day; return 0; }
#include<bits/stdc++.h> using namespace std; int main(){ long long n,sum=0; cin>>n; while(n>=1){ n=n/2; sum++; } cout<<sum; return 0; }
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
long long sum=0;
cin>>n;
while(n>=1){
n/=2;
sum++;
}
printf("%.1ld",sum);
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b=0;
cin>>a;
while(a>=1){
a/=2;
b++;
}
printf("%.1ld",b);
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
long long sum=0;
cin>>n;
while(n>=1){
n/=2;
sum++;
}
printf("%.1ld",sum);
return 0;
}