Submission #14950370
Source Code Expand
Copy
N,M=map(int,input().split())A=list(map(int,input().split()))A.sort()for i in range(M):B,C=map(int,input().split())for j in range (B):if A[j]<C:A[j]=Celse:breakA.sort()print(sum(A))
N,M=map(int,input().split()) A=list(map(int,input().split())) A.sort() for i in range(M): B,C=map(int,input().split()) for j in range (B): if A[j]<C: A[j]=C else: break A.sort() print(sum(A))
Submission Info
Submission Time | |
---|---|
Task | D - Integer Cards |
User | negibose2020 |
Language | Python (3.8.2) |
Score | 0 |
Code Size | 256 Byte |
Status | TLE |
Exec Time | 2206 ms |
Memory | 20692 KB |
Judge Result
Set Name | All | Sample | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 400 | 0 / 0 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
All | sample_01, sample_02, sample_03, sample_04, testcase_01, testcase_02, testcase_03, testcase_04, testcase_05, testcase_06, testcase_07, testcase_08, testcase_09, testcase_10, testcase_11, testcase_12, testcase_13, testcase_14, testcase_15, testcase_16, testcase_17, testcase_18, testcase_19, testcase_20 |
Sample | sample_01, sample_02, sample_03, sample_04 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01 | AC | 19 ms | 8696 KB |
sample_02 | AC | 25 ms | 8720 KB |
sample_03 | AC | 18 ms | 8684 KB |
sample_04 | AC | 21 ms | 8660 KB |
testcase_01 | TLE | 2206 ms | 15244 KB |
testcase_02 | TLE | 2206 ms | 19528 KB |
testcase_03 | TLE | 2206 ms | 10620 KB |
testcase_04 | AC | 203 ms | 8620 KB |
testcase_05 | AC | 20 ms | 8676 KB |
testcase_06 | TLE | 2206 ms | 19252 KB |
testcase_07 | TLE | 2206 ms | 19552 KB |
testcase_08 | TLE | 2206 ms | 11952 KB |
testcase_09 | TLE | 2206 ms | 15772 KB |
testcase_10 | TLE | 2206 ms | 13800 KB |
testcase_11 | TLE | 2206 ms | 19496 KB |
testcase_12 | TLE | 2206 ms | 19256 KB |
testcase_13 | TLE | 2206 ms | 19576 KB |
testcase_14 | TLE | 2206 ms | 17844 KB |
testcase_15 | TLE | 2206 ms | 19556 KB |
testcase_16 | TLE | 2206 ms | 14392 KB |
testcase_17 | TLE | 2206 ms | 19548 KB |
testcase_18 | TLE | 2206 ms | 19528 KB |
testcase_19 | TLE | 2206 ms | 20692 KB |
testcase_20 | TLE | 2206 ms | 20676 KB |