Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 9th, 2020 148 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int N, tams[10005] = {0}, iguais;
  7.     char pes[10005];
  8.  
  9.     cin >> N;
  10.  
  11.     for (int i = 0; i < N; ++i)
  12.     {
  13.         cin >> tams[i] >> pes[i];
  14.         for (int j = 0; j < i; ++j)
  15.         {
  16.             if (tams[j] == tams[i] && pes[i] != pes[j])
  17.             {
  18.                     iguais++;
  19.                     tams[i] = 323232 + iguais;
  20.                     tams[j] = 4747 + iguais;
  21.             }
  22.         }
  23.     }
  24.  
  25.     cout << iguais;
  26.  
  27.     return 0;
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top