| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 635893 | karolb2011 | Dango Maker (JOI18_dango_maker) | Pypy 3 | 44 ms | 18360 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
n,m=list(map(int,input().split()))
s=[]
for i in range(n):
s.append(list(input()))
c=0
for i in range(n):
for j in range(m-2):
if s[i][j]=="R" and s[i][j+1]=="G" and s[i][j+2]=="W":
c+=1
s[i][j]=""
s[i][j+1]=""
s[i][j+2]=""
for i in range(n-2):
for j in range(m):
if s[i][j]=="R" and s[i+1][j]=="G" and s[i+2][j]=="W":
c+=1
s[i][j]=""
s[i+1][j]=""
s[i+2][j]=""
print(c)| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
