본문 바로가기
python-algorithm

[백준] 15820

by 무적김두칠 2021. 1. 4.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys
s1,s2=map(int,sys.stdin.readline().split())
score1=0
score2=0
for i in range(s1):
    a,b=sys.stdin.readline().split()
    if a==b : score1+=1
for i in range(s2):
    a, b = sys.stdin.readline().split()
    if a == b: score2 += 1
 
if score1==s1 and score2==s2:print("Accepted")
elif score1!=s1 :print("Wrong Answer")
elif score1==s1 and (score2!=s2) : print("Why Wrong!!!")
cs

문제 이름이 맞았는데 왜 틀리죠? 라는데
상당히 공감합니다 :D

반응형

'python-algorithm' 카테고리의 다른 글

[백준] 15923  (0) 2021.01.04
[백준] 15917  (0) 2021.01.04
[백준] 15818  (0) 2021.01.04
[백준] 15784  (0) 2021.01.04
[백준] 15781  (0) 2021.01.04

댓글