28382023-01-29 19:17:16VMGoJoNomekoppython3Time limit exceeded 0/10017ms6180 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 exceeded14ms4008 KiB
3Time limit exceeded14ms4160 KiB
subtask30/30
4Time limit exceeded16ms4308 KiB
5Time limit exceeded14ms4540 KiB
6Time limit exceeded14ms4552 KiB
7Time limit exceeded14ms4428 KiB
8Time limit exceeded14ms4424 KiB
9Time limit exceeded14ms4540 KiB
subtask40/20
10Time limit exceeded14ms4560 KiB
11Time limit exceeded14ms4856 KiB
12Time limit exceeded14ms5144 KiB
13Time limit exceeded14ms5044 KiB
subtask50/40
14Time limit exceeded17ms5352 KiB
15Time limit exceeded17ms5432 KiB
16Time limit exceeded17ms5428 KiB
17Time limit exceeded17ms5560 KiB
18Time limit exceeded17ms5628 KiB
19Time limit exceeded17ms5800 KiB
20Time limit exceeded17ms6024 KiB
21Time limit exceeded17ms6180 KiB