Submission #1092798

# Submission time Handle Problem Language Result Execution time Memory
1092798 2024-09-25T07:11:57 Z vibeslayer Esej (COCI15_esej) Python 3
40 / 80
107 ms 11816 KB
a, b = map(int, input().split())


def f(x):
    return chr(x + ord('a'))


ans = []
cntr = 0
for c1 in range(0, 26):
    for c2 in range(0, 26):
        for c3 in range(0, 26):
            for c4 in range(0, 26):
                for c5 in range(0, 26):
                    s = f(c1) + f(c2) + f(c3) + f(c4) + f(c5)
                    ans.append(s)
                    cntr += 1
                    if cntr >= a:
                        break
                if cntr >= a:
                    break
            if cntr >= a:
                break
        if cntr >= a:
            break
    if cntr >= a:
        break

print(' '.join(ans))
# Verdict Execution time Memory Grader output
1 Correct 10 ms 2908 KB Output is correct
2 Correct 14 ms 3004 KB Output is correct
3 Incorrect 10 ms 2812 KB Output isn't correct
4 Incorrect 11 ms 2892 KB Output isn't correct
5 Correct 14 ms 3284 KB Output is correct
6 Incorrect 21 ms 3668 KB Output isn't correct
7 Incorrect 20 ms 3676 KB Output isn't correct
8 Correct 82 ms 10068 KB Output is correct
9 Correct 107 ms 11816 KB Output is correct
10 Incorrect 10 ms 2908 KB Output isn't correct