- 数据处理
0分求调
- @ 2026-9-6 20:16:24
样例都过了,提交就全错
#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll n,a,ans;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cin>>n;
while(n--){
cin>>a;
while(a%2==0){
ans++;
a/=2;
}
}
cout<<ans;
return 0;
}
2 条评论
-
zengjianbo LV 8 @ 2026-9-8 13:12:296
-
@ 2026-9-7 11:54:14是题目的测试数据的配置文件有问题 已修正
you are right
- 1
信息
- ID
- 4677
- 时间
- ms
- 内存
- MiB
- 难度
- 1
- 标签
- 递交数
- 57
- 已通过
- 29
- 上传者