Submission #60507840
Source Code Expand
Copy
#ABC383_20241207_AN=int(input())T,V=map(int,input().split())for i in range(1,N):t,v=map(int,input().split())V=max(0,V-(t-T))V+=vT=tprint(V)
#ABC383_20241207_A N=int(input()) T,V=map(int,input().split()) for i in range(1,N): t,v=map(int,input().split()) V=max(0,V-(t-T)) V+=v T=t print(V)
Submission Info
Submission Time | |
---|---|
Task | A - Humidifier 1 |
User | Konini |
Language | Python (PyPy 3.10-v7.3.12) |
Score | 150 |
Code Size | 173 Byte |
Status | AC |
Exec Time | 59 ms |
Memory | 76724 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 150 / 150 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_test_00.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt, 01_test_15.txt, 01_test_16.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 55 ms | 76448 KB |
00_sample_01.txt | AC | 55 ms | 76572 KB |
00_sample_02.txt | AC | 55 ms | 76572 KB |
01_test_00.txt | AC | 59 ms | 76556 KB |
01_test_01.txt | AC | 55 ms | 76564 KB |
01_test_02.txt | AC | 56 ms | 76608 KB |
01_test_03.txt | AC | 55 ms | 76320 KB |
01_test_04.txt | AC | 55 ms | 76300 KB |
01_test_05.txt | AC | 55 ms | 76468 KB |
01_test_06.txt | AC | 55 ms | 76296 KB |
01_test_07.txt | AC | 55 ms | 76156 KB |
01_test_08.txt | AC | 55 ms | 76444 KB |
01_test_09.txt | AC | 55 ms | 76264 KB |
01_test_10.txt | AC | 55 ms | 76272 KB |
01_test_11.txt | AC | 56 ms | 76724 KB |
01_test_12.txt | AC | 56 ms | 76320 KB |
01_test_13.txt | AC | 56 ms | 76424 KB |
01_test_14.txt | AC | 56 ms | 76268 KB |
01_test_15.txt | AC | 56 ms | 76584 KB |
01_test_16.txt | AC | 55 ms | 76408 KB |