Advertisement
nq1s788

8 (номер слова)

Jan 10th, 2024
1,134
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. x = 'АПРСУ'
  2. cnt = 0 #текущий номер
  3. for a in x:
  4.     for b in x:
  5.         for c in x:
  6.             for d in x:
  7.                 cnt += 1
  8.                 if a + b + c + d == 'УРПА':
  9.                     print(cnt)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement