Skip to content

Commit 437c24a

Browse files
Merge pull request #544 from gmlrude/main
[박희경] 68차 라이브 코테 제출
2 parents ddc57aa + cc53e84 commit 437c24a

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

live6/test68/문제1/박희경.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import sys
2+
3+
input = sys.stdin.readline
4+
5+
E, S, M = map(int, input().split())
6+
e, s, m = 1, 1, 1
7+
year = 1
8+
9+
while True:
10+
if e == E and s == S and m == M:
11+
print(year)
12+
break
13+
e += 1
14+
s += 1
15+
m += 1
16+
year += 1
17+
18+
if e > 15:
19+
e = 1
20+
if s > 28:
21+
s = 1
22+
if m > 19:
23+
m = 1

live6/test68/문제2/박희경.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import sys
2+
3+
input = sys.stdin.readline
4+
5+
n, jimin, hansu = map(int, input().split())
6+
7+
round = 1
8+
9+
while True:
10+
jimin = (jimin + 1) // 2
11+
hansu = (hansu + 1) // 2
12+
13+
if jimin == hansu:
14+
print(round)
15+
break
16+
17+
round += 1
18+

live6/test68/문제3/박희경.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
def solution(s):
2+
answer = []
3+
4+
s = list(s.split(' '))
5+
6+
for word in s:
7+
if word:
8+
first = word[0].upper()
9+
remain = word[1:].lower()
10+
answer.append(first + remain)
11+
else:
12+
answer.append('')
13+
14+
return " ".join(answer)

0 commit comments

Comments
 (0)