-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
need to find solution
- Loading branch information
Showing
3 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print("hello world") |