diff --git a/Uri_Online_Judge/comp_q4.py b/Uri_Online_Judge/comp_q4.py new file mode 100644 index 0000000..e6e50df --- /dev/null +++ b/Uri_Online_Judge/comp_q4.py @@ -0,0 +1,12 @@ +casos = int(input()) +marc= 0 +todos = {} +for i in range(casos): + num = int(input()) + if num in todos: + todos[num] += 1 + else: + todos[num] = 1 + +for key in sorted(todos): + print(str(key) + " aparece " +str(todos[key])+" vez(es)")