Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int n;
- cin >> n;
- string iminja[n];
- int visina[n];
- for(int i = 0; i < n; i++) {
- cin >> iminja[i];
- cin >> visina[i];
- }
- int barana_visina;
- cin >> barana_visina;
- for(int i = 0; i < n; i++) {
- if(barana_visina == visina[i]) {
- cout << iminja[i] << endl;
- }
- }
- return 0;
- }
- /*
- 3
- josif 185
- blagoja 193
- petar 165
- **/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement