|
|
вернуться в форумvery short, but MLE/TLE python solution Послано yyll 28 май 2022 09:37 n, s, k = map(int, input().split()) a = 1 << s for u in map(int, input().split()): a = a >> u | (a & (1 << n+1-u) - 1) << u print((a & -a).bit_length() - 1, a.bit_length() - 1) |
|
|