Submission #28280869


Source Code Expand

N = int(input())
A = [int(i) for i in input().split()]
B = [int(i) for i in input().split()]
ids = list(range(1, N + 1))
scores = list(zip(A, B, ids))
sorted_scores = sorted(
    scores,
    reverse=True,
    key=lambda x: [x[0] + x[1], x[0], -1 * x[2]],
)

print(" ".join([str(i[2]) for i in sorted_scores]))

Submission Info

Submission Time
Task D - Examination
User seri_k
Language Python (3.8.2)
Score 7
Code Size 322 Byte
Status AC
Exec Time 778 ms
Memory 85012 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 7 / 7
Status
AC × 2
AC × 29
Set Name Test Cases
Sample example_00.txt, example_01.txt
All example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, random_20.txt
Case Name Status Exec Time Memory
example_00.txt AC 24 ms 9016 KiB
example_01.txt AC 24 ms 9120 KiB
hand_00.txt AC 321 ms 82216 KiB
hand_01.txt AC 21 ms 8896 KiB
hand_02.txt AC 622 ms 83896 KiB
hand_03.txt AC 639 ms 84644 KiB
hand_04.txt AC 700 ms 83360 KiB
hand_05.txt AC 691 ms 83736 KiB
random_00.txt AC 516 ms 64632 KiB
random_01.txt AC 492 ms 64660 KiB
random_02.txt AC 514 ms 64708 KiB
random_03.txt AC 668 ms 84016 KiB
random_04.txt AC 572 ms 84412 KiB
random_05.txt AC 591 ms 84388 KiB
random_06.txt AC 556 ms 83708 KiB
random_07.txt AC 648 ms 83448 KiB
random_08.txt AC 626 ms 83468 KiB
random_09.txt AC 676 ms 84604 KiB
random_10.txt AC 657 ms 83636 KiB
random_11.txt AC 562 ms 83712 KiB
random_12.txt AC 576 ms 84604 KiB
random_13.txt AC 568 ms 83548 KiB
random_14.txt AC 660 ms 83568 KiB
random_15.txt AC 609 ms 83668 KiB
random_16.txt AC 778 ms 83472 KiB
random_17.txt AC 724 ms 83932 KiB
random_18.txt AC 577 ms 83512 KiB
random_19.txt AC 561 ms 85012 KiB
random_20.txt AC 574 ms 83712 KiB