Skip to content

Commit

Permalink
📝 got runtime error :(
Browse files Browse the repository at this point in the history
need to find solution
  • Loading branch information
Steve-YJ committed Apr 12, 2022
1 parent da38639 commit 34225cd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .replit
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
n = input()

num_star = 1
num_empty = n - num_star

n = int(input())
scores = input().split()
scores = [int(score) for score in scores]
result = [0] * n
for i in range(n):
print(("" * num_empty) + ("*" * num_start))
result[i] = scores[i] / max(scores) * 100

print(sum(result) / n)
16 changes: 16 additions & 0 deletions 05. BOJ(beakjoon_online_judge)/step_by_step/1157.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""got runtime error!! -2022.04.12"""

from collections import Counter

# convert input to lower case
string = str(input()).lower()

# using Counter() class
counter = Counter(string)
# you can find most freqeunt words
most_common = counter.most_common()

if most_common[0][1] == most_common[1][1]:
print("?")
else:
print(most_common[0][0].upper()) # print output as upper case
1 change: 1 addition & 0 deletions 05. BOJ(beakjoon_online_judge)/step_by_step/1712.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("hello world")

0 comments on commit 34225cd

Please sign in to comment.