alphacademy-cpp/ora/1016/1.cpp

20 lines
370 B
C++
Raw Normal View History

2022-10-23 12:37:04 +00:00
#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]<< " ";
}
}