| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1285935 | Joon_Yorigami | Art Exhibition (JOI18_art) | Pypy 3 | 146 ms | 48604 KiB |
n,*r,=map(int,open(0).read().split());f=[0];*j,=sorted(range(n),key=lambda x:r[x*2]);z=d=0
for _ in j:b=r[_*2+1];f.append(d:=d+b)
m=r[(j[0]<<1)]
for i in range(n):
a=r[j[i]<<1]
z=max(z,f[i+1]-a+m)
m=max(m,a-f[i])
print(z)
Compilation message (stdout)
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
