28392023-01-29 19:18:20VMGoJoNomekoppython3Time limit exceeded 0/10017ms6432 KiB
from sys import stdin, stdout
def main():
    n:int=int(stdin.readline())
    powers=stdin.readline().split()
    powers = [int(i) for i in powers]

    def test_setup(p_in:list[int]) ->int:
        stdout.write("? "+" ".join(map(str, p_in)))
        stdout.flush()
        return int(stdin.readline())
    test_setup(powers)
    test_setup(powers)
    stdout.write("! "+" ".join(map(str, powers)))
    stdout.flush()
main()
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Time limit exceeded17ms3784 KiB
subtask20/10
2Time limit exceeded16ms3996 KiB
3Time limit exceeded16ms4208 KiB
subtask30/30
4Time limit exceeded16ms4224 KiB
5Time limit exceeded14ms4524 KiB
6Time limit exceeded14ms4732 KiB
7Time limit exceeded16ms4944 KiB
8Time limit exceeded16ms5284 KiB
9Time limit exceeded16ms5076 KiB
subtask40/20
10Time limit exceeded16ms5232 KiB
11Time limit exceeded16ms5404 KiB
12Time limit exceeded16ms5336 KiB
13Time limit exceeded14ms5740 KiB
subtask50/40
14Time limit exceeded17ms6136 KiB
15Time limit exceeded17ms6188 KiB
16Time limit exceeded17ms6168 KiB
17Time limit exceeded17ms6052 KiB
18Time limit exceeded17ms6176 KiB
19Time limit exceeded17ms6432 KiB
20Time limit exceeded17ms6376 KiB
21Time limit exceeded17ms6392 KiB