190532025-11-19 15:22:46birozsDíjazás több helyezettnekpython3Wrong answer 0/80600ms3320 KiB
H,E = map(int,input().split())
T = [E-((H-1)*H//2)]
for i in range(H-1,0,-1):
    T.append(i)
for k in T:
    print(k,end=" ")
print()
while T[0] - T[1] > 1:
    T[0] -= 1
    for i in range(1,H):
        if T[i-1] > T[i]+1:
            sor = T[:]
            sor[i]+=1
            for k in sor:
                print(k,end=" ")
            print()
    T = sor[:]




SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted16ms3124 KiB
2Wrong answer17ms3124 KiB
subtask20/5
3Accepted17ms3120 KiB
4Time limit exceeded580ms2868 KiB
5Time limit exceeded580ms2864 KiB
6Time limit exceeded582ms2888 KiB
7Time limit exceeded600ms2952 KiB
subtask30/5
8Accepted16ms3116 KiB
9Time limit exceeded592ms2856 KiB
10Wrong answer16ms3088 KiB
11Wrong answer17ms3124 KiB
12Time limit exceeded583ms2868 KiB
subtask40/15
13Accepted16ms3124 KiB
14Wrong answer16ms3124 KiB
15Wrong answer16ms3320 KiB
16Wrong answer16ms3128 KiB
17Wrong answer14ms3032 KiB
subtask50/15
18Accepted16ms3124 KiB
19Wrong answer16ms3124 KiB
20Wrong answer16ms3120 KiB
21Time limit exceeded600ms3004 KiB
22Wrong answer16ms3124 KiB
subtask60/15
23Accepted16ms3304 KiB
24Wrong answer16ms3124 KiB
25Accepted16ms3124 KiB
26Wrong answer16ms3124 KiB
27Wrong answer16ms3120 KiB
28Time limit exceeded600ms3004 KiB
29Wrong answer16ms3124 KiB
30Wrong answer17ms3124 KiB
31Wrong answer16ms3140 KiB
32Accepted16ms2988 KiB
33Time limit exceeded600ms3032 KiB
34Wrong answer17ms3024 KiB
35Accepted16ms2948 KiB
36Wrong answer16ms3128 KiB
37Wrong answer16ms3120 KiB
38Wrong answer16ms3116 KiB
39Wrong answer16ms3004 KiB
subtask70/25
40Accepted16ms3304 KiB
41Wrong answer16ms3124 KiB
42Accepted17ms3120 KiB
43Time limit exceeded580ms2868 KiB
44Time limit exceeded580ms2864 KiB
45Time limit exceeded582ms2888 KiB
46Time limit exceeded600ms2952 KiB
47Accepted16ms3116 KiB
48Time limit exceeded592ms2856 KiB
49Wrong answer16ms3088 KiB
50Wrong answer17ms3124 KiB
51Time limit exceeded583ms2868 KiB
52Accepted16ms3124 KiB
53Wrong answer16ms3124 KiB
54Wrong answer16ms3320 KiB
55Wrong answer16ms3128 KiB
56Wrong answer14ms3032 KiB
57Accepted16ms3124 KiB
58Wrong answer16ms3124 KiB
59Wrong answer16ms3120 KiB
60Time limit exceeded600ms3004 KiB
61Wrong answer16ms3124 KiB
62Wrong answer17ms3124 KiB
63Wrong answer16ms3140 KiB
64Accepted16ms2988 KiB
65Time limit exceeded600ms3032 KiB
66Wrong answer17ms3024 KiB
67Accepted16ms2948 KiB
68Wrong answer16ms3128 KiB
69Wrong answer16ms3120 KiB
70Wrong answer16ms3116 KiB
71Wrong answer16ms3004 KiB
72Wrong answer16ms3124 KiB
73Wrong answer17ms3140 KiB
74Wrong answer17ms3124 KiB
75Runtime error16ms3124 KiB
76Accepted16ms3028 KiB
77Wrong answer17ms3152 KiB
78Accepted14ms3108 KiB
79Wrong answer16ms3132 KiB
80Wrong answer16ms3140 KiB
81Wrong answer17ms3036 KiB