HackerRank || Sock Merchant || Python 3 Solution
Problem link n = int ( input ()) dict = {} pair = [] final_pair = [] arr = list ( map ( int , input () . split ()[: n ])) ...
Problem link n = int ( input ()) dict = {} pair = [] final_pair = [] arr = list ( map ( int , input () . split ()[: n ])) ...
Problem Link import textwrap def merge_the_tools ( s , k ): li = textwrap . wrap ( s , k ) for item in li : ...
Problem link test = int ( input ()) result = 0 for i in range ( test ): a , b = input () . split () try : a ...
a = int ( input ()) b = int ( input ()) X = a * b print ( "PROD = %d " % X )
a = int ( input ()) b = int ( input ()) X = a + b print ( "SOMA = %d " % X )
r = float ( input ()) n = 3.14159 area = n * r * r print ( "A= %.4f " % area )
a = int ( input ()) b = int ( input ()) X = a + b #this is another way of formatting # p...
1 1547 - Automatic Answer: test_case = int ( input ()) for k in range (test_case): number = int ( input ()) answer...
11332 - Summing Digits: try : while True : n = int ( input ()) if n == 0 : break if n< 10 : print (n) if n...
11185 - Ternary try : while True : li=[] number = int ( input ()) if number< 0 : break ...
11172 - Relational Operator: test_case = int ( input ()) for i in range (test_case): a,b = map ( int , input ().split()) ...
10783 - Odd Sum: test_case = int ( input ()) c = 1 for i in range (test_case): a = int ( input ()) b = int ( input (...
10079 - Pizza Cutting: try : while True : lines = int ( input ()) if lines< 0 : break ...
10071 - Back to High School Physics: try : while True : v,t = map ( int , input ().split()) print ( 2 *v...
10055 - Hashmat the Brave Warrior: try : while True : hasmat,opponant = map ( int , input ().split()) if (hasmat>...
10018 - Reverse and Add: test_case = int ( input ()) for i in range (test_case): n = input () for j in range ( 1 , 100 ): ...
113 - Power of Cryptography : try : while True : n = int ( input ()) k = int ( input ()) m = 1 /...
11332 - Summing Digits : try : while True : n = int ( input ()) if n == 0 : break ...
Difficult roads lead to beautiful destinations.