SHARE
TWEET

Untitled

a guest Sep 21st, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int n,m,w[25];
  6.  
  7. struct pr
  8. {
  9.  
  10.     char x;
  11.     int y;
  12.  
  13. }
  14. v[105];
  15.  
  16. int main()
  17. {
  18.  
  19.     cin>>n>>m;
  20.  
  21.     for(int i=1; i<=m; i++)
  22.         cin>>v[i].x>>v[i].y;
  23.  
  24.     for(int i=1; i<=m; i++)
  25.         w[v[i].y]++;
  26.  
  27.  
  28.  
  29.     return 0;
  30.  
  31. }
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