Chanukah Challenge
This commit is contained in:
1 parent
5ad4fc2383
commit
37fd5d0905
1 file changed
+4
@@ -0,0 +1,4 @@
|
|||||||
|
p = int(input())
|
||||||
|
for _ in range(1, p + 1):
|
||||||
|
k, n = map(int, input().split())
|
||||||
|
print(f"{k} {( n * (n + 1) ) // 2 + n}")
|
||||||
Reference in new issue
Block a user