Kattis Problem Solutions

Open Kattis Problems' Solutions

Open Kattis Problems’ Solutions in Python

Problem: ABC Problem Link: https://open.kattis.com/problems/abc Sample Solution: array=list(map(int,input().split())) ar_sorted = sorted(array, key=int) string = input() if string == ‘ABC’: print(ar_sorted)   Problem: Apaxiaaaaaaaaaaaans Problem Link: https://open.kattis.com/problems/apaxiaaans Sample Solution: oldstring = input() newstring = oldstring[0] for char in oldstring[1:]: if char != newstring[-1]: newstring += char print(newstring)   Problem: Modulo Problem Link: https://open.kattis.com/problems/modulo Sampe Solution: a = [] b …

Open Kattis Problems’ Solutions in Python Read More »