alphacademy-cpp/hf/hf3/1.cpp
2022-11-24 20:44:22 +01:00

25 lines
402 B
C++

#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int n, k, temp;
cin >> n >> k;
vector<int> gyorsabb;
for (int i = 0; i < n; i++) {
cin >> temp;
if (temp < k) {
gyorsabb.push_back(i+1);
}
}
cout<<gyorsabb.size()<<" ";
for (int i = 0; i < gyorsabb.size(); i++) {
cout<<gyorsabb[i]<<" ";
}
}