20 lines
370 B
C++
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]<< " ";
|
|
}
|
|
}
|