SHARE
TWEET

Untitled

a guest Jun 12th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = [0]*13
  2. n = int(input())    #количество пришедших запросов
  3.  
  4. k = n + 1
  5.  
  6. for i in range(n):
  7.     x = int(input())
  8.     a[x] += 1
  9.  
  10. while k > 0:    
  11.     for j in range(1,13):
  12.         if a[j] == k:
  13.             print(j , a[j])
  14.     k -= 1
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