From f8ec65087302579cf607ea563491af3955a24a8c Mon Sep 17 00:00:00 2001 From: hacksh4w <91671136+hacksh4w@users.noreply.github.com> Date: Tue, 12 Oct 2021 13:35:29 +0530 Subject: [PATCH] Created solution for A+B problem - 1351A --- codeforces/A+B problem - 1351A.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 codeforces/A+B problem - 1351A.py diff --git a/codeforces/A+B problem - 1351A.py b/codeforces/A+B problem - 1351A.py new file mode 100644 index 0000000..8cb3d75 --- /dev/null +++ b/codeforces/A+B problem - 1351A.py @@ -0,0 +1,5 @@ +#To print sum of 2 no's whose sum is b/w 1 and 1000 +for t in range(int(input())): + a, b = map(int,input().split()) + if a in range(-1001,1001) and b in range(-1001,1001): + print(a+b)