alphacademy-cpp/hf2/hf3/1.cpp
2022-10-08 13:05:44 +02: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]<<" ";
}
}