#include <iostream>
using namespace std;
const int N = 3e4 + 10;
int a[N], b[N];
int main() {
int k, m, n;
cin >> k >> m >> n;
bool f = false;
for (int i = 1; i <= m; i++) {
cin >> a[i] >> b[i];
if (a[i] != 0) {
int c = k / a[i];
int s = c * b[i];
if (s >= n) {
f = true;
cout << i << ' ';
}
} else {
f = true;
cout << i << ' ';
}
}
if (!f) cout << -1 << endl;
return 0;
}
uu们,用例2里真的有a[i]是0的数据吗,我咋没看到