Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create 002.py
  • Loading branch information
Rituraj-M50 authored Jan 4, 2022
commit de34d2e1c7a51058a43f7f12982b895e3779c14a
13 changes: 13 additions & 0 deletions Rituraj-M50/002/002.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
n = int(input())
c = 0
d = 0
x = 0
for i in range(n):
e = input()
a,b = e.split()
c += int(a)
d += int(b)
x = d//1000
c += x
print(c, "(in liters)")
print(d-x*1000, "(in ml)")