/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 2.969 MiB
#2 Time Exceeded ≥2091ms ≥17.207 MiB
#3 Time Exceeded ≥2091ms ≥17.219 MiB
#4 Time Exceeded ≥2092ms ≥17.203 MiB
#5 Time Exceeded ≥2090ms ≥17.219 MiB
#6 Time Exceeded ≥2082ms ≥17.215 MiB
#7 Time Exceeded ≥2088ms ≥17.156 MiB
#8 Time Exceeded ≥2088ms ≥15.426 MiB
#9 Time Exceeded ≥2079ms ≥9.738 MiB
#10 Time Exceeded ≥2079ms ≥7.613 MiB
#11 Time Exceeded ≥2080ms ≥12.227 MiB
#12 Time Exceeded ≥2095ms ≥5.781 MiB

Code

n=int(input())
liN=list(map(int,input().split()))
m=int(input())
liM=list(map(int,input().split()))
res=[]
res=liN+liM
res.sort(reverse=True)
b=0
for i in liM:
    if liM.count(i)==1:
        idx=res.index(i)+1+liN.count(i)
        print(idx,end=" ")
    else:
        idx=res.index(i)+1+liN.count(i)+b
        print(idx,end=" ")
        b+=1








Information

Submit By
Type
Submission
Problem
P1049 Combined scoreboard
Contest
Brain Booster #3
Language
Python 3 (Python 3.12.3)
Submit At
2024-05-06 16:28:44
Judged At
2024-10-03 13:50:04
Judged By
Score
5
Total Time
≥2095ms
Peak Memory
≥17.219 MiB