荒れ果てたオフィス [MISSION LEVEL: D]
1 #include <bits/stdc++.h> 2 #define _for(i,a,b) for(int i = (a);i < (b);i ++) 3 #define pb push_back 4 using namespace std; 5 6 int main() 7 { 8 int n; 9 while(~scanf("%d",&n)) 10 { 11 string s; 12 int t; 13 _for(i,0,n) 14 { 15 cin >> s >> t; 16 if(t==3) 17 cout << s << endl; 18 } 19 } 20 return 0; 21 }