#9856. 【电子学会1级】满足条件的数的累加
【电子学会1级】满足条件的数的累加
Description
- 现有n个整数,将其中个位数为k的数进行累加求和。
Input Format
- 第一行两个整数n、k,以空格分隔。( 0 < n < 1000, 0 ≤ k ≤ 9)
- 第二行n个非负整数,以空格分隔,每个数不大于100000。
Output Format
- 输出满足题目要求的累加和。
10 7
2 5 7 17 11 18 4 27 1 7
58
10 7
2 5 7 17 11 18 4 27 1 7
58
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.