|
|
back to boardvery short, but MLE/TLE python solution Posted by yyll 28 May 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) |
|
|