Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <cmath>
  4. #include <cstdio>
  5.  
  6.  
  7. using namespace std;
  8. #define MAXN 27
  9.  
  10. int niz1[MAXN];
  11. int niz2[MAXN];
  12. char slov[MAXN] ;
  13. int max1=-1,max2=-1;
  14. int main ( void ) {
  15.     for ( int i = 0 ; i < 26 ; ++ i ){
  16.     scanf ("%d",& niz1[i]);
  17.     niz1[i]=niz2[i];
  18.    
  19.     }
  20.     sort (niz1, niz1 + 26 ) ;
  21.    
  22.     for ( int j = 0 ; j < 26 ; ++ j ) {
  23.         if ( niz2[j] == niz1[24] || niz2[j]== niz1[25] ){
  24.         cout<<(char)( j + 65) ;
  25.         niz2[j] = -1;
  26.                      }
  27.         else continue;
  28.         }
  29.    
  30.    
  31.    
  32.    
  33.    
  34.     system("PAUSE");
  35.     return 0 ;
  36.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement