alphacademy-cpp/hf/hf3/1.cpp

25 lines
402 B
C++
Raw Normal View History

2022-10-08 11:05:44 +00:00
#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]<<" ";
}
}