题解
2026-08-16 15:02:19
发布于:安徽
5阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
long long num,b=0,n;
cin >> n;
for (int i = 1; i <= n; i++) {
cin>>b;
if(b%10==0||b%10==5)
num+=b;
}
cout<<num;
return 0;
}
求点赞
团队
全部评论 2
5天前 来自 安徽
119小时前 来自 安徽
0








有帮助,赞一个