用户输出
440
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#47530 | #1077. 1-11B. JM的招摇撞骗 | Time Limit Exceeded | 0 | 1256 ms | 80900 K | Python 3 / 240 B | 2n8asm | 2021-05-06 23:53:10 |
b,v,n=0,*map(int,input().split())
for i,j in sorted([list(map(int,input().split()))for _ in range(n)],reverse=True,key=__import__('operator').itemgetter(1)):
if not v:
break
b,v=(lambda x:(b+x*j,v-x))(min(i,v))
print(b)
用户输出
19855
系统信息
Exited with return code 0
用户输出
3137868819
系统信息
Exited with return code 0
54384 185
16682 13
6704 94
47468 31
41638 49
45976 78
50246 98
46821 8
29575 37
32872 59
4
<1703 bytes omitted>
用户输出
5397784
系统信息
Exited with return code 0
48528 220
22435 100
46510 4
38481 76
6885 33
23060 98
203 80
31345 32
3960 45
1993 91
126
<2035 bytes omitted>
用户输出
4852800
系统信息
Exited with return code 0
564806533 32
264919714 249
185025950 644
314145385 923
81359116 817
211013913 150
412944644 59
<384 bytes omitted>
用户输出
535113257084
系统信息
Exited with return code 0
258777268 164
235904101 892
129678858 913
44744214 208
229676221 29
180309315 792
66858600 847
<2292 bytes omitted>
用户输出
257895184811
系统信息
Exited with return code 0
7380479 229
2457156 704
3436581 217
2669603 646
1585198 464
1319096 510
1286616 674
5231346 3
<2820 bytes omitted>
用户输出
7331304028
系统信息
Exited with return code 0
625032840 200000
182015774 849211785
231735416 539710484
14113857 207125115
150955979 14895576
<4105947 bytes omitted>