fork download
  1. t = int(input().strip())
  2. for i in range(t):
  3. pesel = input().strip()
  4. liczba = 1
  5. for j in pesel:
  6. if j == '?':
  7. liczba *= 10
  8. print(liczba//10)
Success #stdin #stdout 0.1s 14120KB
stdin
2
192214?0?27
1922140?587
stdout
10
1