SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = list(map(int, input()))
  2. k = 1
  3. for i in range(len(a) - 1):
  4.     for j in range(len(a) - i - 1):
  5.         if a[j] > a[j + 1]:
  6.             a[j], a[j + 1] = a[j + 1], a[j]
  7. while a[k] == a[k - 1]:
  8.     k += 1
  9. print(k)
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