일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 자바스크립트
- 메소드
- IF문
- sql injection
- 객체
- property
- window
- 백준 알고리즘
- python
- element 조회
- 사칙연산
- 함수
- xss game 풀이
- xss game
- blind sql injection
- jQuery
- 배열
- 백준 파이썬
- 포인터
- document
- github
- object
- 김성엽 대표님
- 조건문
- suninatas 풀이
- burp suite
- Pwndbg
- lord of sql injection
- htmlspecialchars
- 파이썬
Archives
- Today
- Total
power-girl0-0
[ 8958 ] OX퀴즈 본문
728x90
num = int(input())
for i in range(num):
ox = list(str(input()))
score = 0
cnt = 1
for j in ox:
if(j == 'O'):
score += cnt
cnt += 1
else:
cnt = 1
print(score)
728x90
'백준 알고리즘 > python' 카테고리의 다른 글
[ 1546 ] 평균 (0) | 2021.03.02 |
---|---|
[ 3052 ] 나머지 (0) | 2021.03.02 |
[ 2577 ] 숫자의 개수 (0) | 2021.03.02 |
[ 2562 ] 최댓값 (0) | 2021.03.02 |
[ 10818 ] 최소, 최대 (0) | 2021.03.02 |
Comments