Advertisement
vlatkovski

Lisja

Oct 2nd, 2017
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int dmax, lmax=-1;
  6.     for (int i = 0; i < 30; ++i) {
  7.         int d, l; cin >> d >> l;
  8.         if (l > lmax) {
  9.             dmax = d;
  10.             lmax = l;
  11.         }
  12.     }
  13.     cout << dmax << " noemvri" << endl;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement