Skip to content

Commit

Permalink
Tree root
Browse files Browse the repository at this point in the history
  • Loading branch information
harrypotter0 committed Jan 18, 2018
1 parent d7e2b2b commit bcfb4c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file modified CP/CodeWhizz 1.0/a.out
Binary file not shown.
9 changes: 9 additions & 0 deletions CP/Practice/medium/treeroot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
for _ in range(int(input())):
n = int(input())
sum1 = 0
sum2 = 0
for z in range(n):
p,q = map(int,raw_input().split())
sum1+=p
sum2+=q
print(sum1-sum2)

0 comments on commit bcfb4c7

Please sign in to comment.