ans

DOZIE 2022-06-25 14:50:07 7 返回题目

#include <bits/stdc++.h> using namespace std; int main(){ int n , x; cin >> n >> x; int count = 0; for (int i = 1 ; i <= n ; i++){ int y; cin >> y; if (y % x == 0){ cout << y << " "; count = count + 1; } } cout << endl << count; return 0; }

{{ vote && vote.total.up }}