- 一级测试第二轮
 rte
- @ 2023-8-18 12:06:16
 
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,k,he=0;
cin>>n>>k;
for(int i=1;i<=n;i++)
{
int b;
cin>>b;
if(b%10==k)
{
he=he+b;a
}
}
cout<<he<<endl;
return 0;
}
        0 comments
  
  No comments so far...