alphacademy-cpp/ora/1016/1.cpp
2022-10-23 14:37:04 +02:00

20 lines
370 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
vector < int > megoldas;
int n, k, m, f;
cin >> n >> k;
for (int i = 0; i < n; i++) {
cin >> m >> f;
if (m < k) {
megoldas.push_back(i+1);
}
}
sort(megoldas.begin(), megoldas.end());
cout << megoldas.size() << ' ';
for (int i = 0; i < megoldas.size(); i++) {
cout << megoldas[i]<< " ";
}
}