- 一级测试第二轮
D
- 2023-7-27 10:20:43 @
#include <iostream>
using namespace std;
int main ()
{
int a,b,c=0,n;
cin>>a>>b;
for(int i=1;i<=a;i++)
{
cin>>n;
if(n%10==b)
c+=n;
}
cout<<c;
return 0;
}
0 comments
No comments so far...