답안 #161460

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
161460 2019-11-02T16:11:19 Z ToniB Magnus (COCI18_magnus) Python 3
50 / 50
61 ms 3692 KB
rijec = input()
slova = ["H", "O", "N", "I"]
output = 0

slovo = slova[output]

for i in range(len(rijec)):
    if rijec[i] == slovo:
        output += 1
        slovo = slova[output % 4]
        
print(output // 4)
# 결과 실행 시간 메모리 Grader output
1 Correct 26 ms 3300 KB Output is correct
2 Correct 25 ms 3300 KB Output is correct
3 Correct 26 ms 3300 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 25 ms 3300 KB Output is correct
2 Correct 26 ms 3300 KB Output is correct
3 Correct 26 ms 3300 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 26 ms 3300 KB Output is correct
2 Correct 26 ms 3300 KB Output is correct
3 Correct 25 ms 3300 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 26 ms 3376 KB Output is correct
2 Correct 26 ms 3268 KB Output is correct
3 Correct 26 ms 3300 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 24 ms 3300 KB Output is correct
2 Correct 25 ms 3300 KB Output is correct
3 Correct 25 ms 3300 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 51 ms 3620 KB Output is correct
2 Correct 61 ms 3660 KB Output is correct
3 Correct 50 ms 3532 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 51 ms 3692 KB Output is correct
2 Correct 51 ms 3616 KB Output is correct
3 Correct 51 ms 3660 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 52 ms 3676 KB Output is correct
2 Correct 51 ms 3532 KB Output is correct
3 Correct 50 ms 3532 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 52 ms 3612 KB Output is correct
2 Correct 53 ms 3616 KB Output is correct
3 Correct 52 ms 3624 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 52 ms 3532 KB Output is correct
2 Correct 54 ms 3624 KB Output is correct
3 Correct 51 ms 3632 KB Output is correct