tuki2501

PROB1.cpp

Apr 4th, 2021
640
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.   freopen("SN.DAT" , "r", stdin );
  6.   freopen("MAX.OUT", "w", stdout);
  7.   int x, kq = -1000000000;
  8.   while (cin >> x) if (kq < x) kq = x;
  9.   cout << kq;
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment