python-algorithm
백준 24510 시간복잡도를 배운 도도
무적김두칠
2022. 4. 21. 16:52
1
2
3
4
5
6
|
mymax=0
for i in range(int(input())):
s=input()
cnt=s.count('for')+s.count('while')
mymax=max(cnt,mymax)
print(mymax)
|
cs |
반응형