/// UH Top
#include <bits/stdc++.h>
#define db(x) cerr << #x << ':' << (x) << '\n';
#define all(v) (v).begin(), (v).end()
#define allr(v) (v).rbegin(), (v).rend()
// #define int ll
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
// typedef __int128_t int128;
typedef pair<ll, ll> pii;
typedef pair<ld, ll> pdi;
typedef pair<ld, ld> pdd;
typedef pair<ld, pdd> pdp;
typedef pair<string, ll> psi;
typedef pair<ll, string> pls;
typedef pair<string, string> pss;
typedef pair<ll, pii> pip;
typedef pair<pii, pii> ppp;
typedef complex<ld> point;
typedef vector<point> polygon;
typedef vector<ll> vi;
typedef pair<point, int> ppi;
#define prec(n) \
cout.precision(n); \
cout << fixed
const ll mod = (1e9 + 7);
const ld eps = (1e-9);
const ll oo = (ll)(1e9 + 5);
#define pi acos(-1)
#define MAXN (ll)(1e6 + 5)
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
vector<int> ans;
for (int i = 0; i < n; i++) {
string s;
int t;
cin >> s >> t;
if (s == "NIE")
continue;
if (ans.size() < 10) {
ans.push_back(i + 1);
} else if (ans.size() < 20 && t < 2)
ans.push_back(i + 1);
}
for (int i = 0; i < ans.size(); i++) {
cout << ans[i] << " \n"[i == ans.size() - 1];
}
return 0;
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | /// UH Top #include <bits/stdc++.h> #define db(x) cerr << #x << ':' << (x) << '\n'; #define all(v) (v).begin(), (v).end() #define allr(v) (v).rbegin(), (v).rend() // #define int ll using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; // typedef __int128_t int128; typedef pair<ll, ll> pii; typedef pair<ld, ll> pdi; typedef pair<ld, ld> pdd; typedef pair<ld, pdd> pdp; typedef pair<string, ll> psi; typedef pair<ll, string> pls; typedef pair<string, string> pss; typedef pair<ll, pii> pip; typedef pair<pii, pii> ppp; typedef complex<ld> point; typedef vector<point> polygon; typedef vector<ll> vi; typedef pair<point, int> ppi; #define prec(n) \ cout.precision(n); \ cout << fixed const ll mod = (1e9 + 7); const ld eps = (1e-9); const ll oo = (ll)(1e9 + 5); #define pi acos(-1) #define MAXN (ll)(1e6 + 5) int32_t main() { ios_base::sync_with_stdio(0); cin.tie(0); int n; cin >> n; vector<int> ans; for (int i = 0; i < n; i++) { string s; int t; cin >> s >> t; if (s == "NIE") continue; if (ans.size() < 10) { ans.push_back(i + 1); } else if (ans.size() < 20 && t < 2) ans.push_back(i + 1); } for (int i = 0; i < ans.size(); i++) { cout << ans[i] << " \n"[i == ans.size() - 1]; } return 0; } |
English