1. Problem
2. My Solution
import sys
word = sys.stdin.readline().strip()
croatia = ['c=', 'c-', 'dz=', 'd-', 'lj', 'nj', 's=', 'z=']
count = len(word)
for i in croatia:
if i in word:
count -= word.count(i) * len(i)
count += word.count(i)
word = word.replace(i,' ')
print(count)
3. Others' Solutions
import sys
word = sys.stdin.readline().strip()
croatia = ['c=', 'c-', 'dz=', 'd-', 'lj', 'nj', 's=', 'z=']
for i in croatia:
if i in word:
word = word.replace(i,'*')
print(len(word))
4. Learned
1. Problem
2. My Solution
import sys
n = int(sys.stdin.readline().strip())
level = 1
count = 1
if n == 1:
print(count)
else:
while(True):
level += (6*count)
count += 1
if n <= level:
print(count)
break
3. Others' Solutions
N = int(input())
room = 1
while N > 1:
N -= (6 * room)
room += 1
print(room)
4. Learned
1. Problem
2. My Solution
import sys
a,b,c = map(int,sys.stdin.readline().strip().split())
if b >= c:
print(-1)
else:
print((a // (c - b)) + 1)
3. Learned