# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1192123 | SmuggingSpun | Sifra (COCI21_sifra) | Pypy 3 | 138 ms | 48804 KiB |
cnt = [0] * 1000
s = input() + '#'
num = 0
for i in range(len(s)):
if 47 < ord(s[i]) < 58:
num = num * 10 + int(s[i])
elif i > 0 and 47 < ord(s[i]) < 58:
cnt[num] = 1
num = 0
print(sum(cnt))
Compilation message (stdout)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |