提出 #4213794


ソースコード 拡げる

n1=0
n2=0
n3=0
n4=0

for i in range(3):
 nData = []
 nData  = input().rstrip().split(' ')

 nN1 = int(nData[0])
 nN2 = int(nData[1])

 if nN1==1:
  n1+=1
 elif nN1==2:
  n2+=1
 elif nN1==3:
  n3+=1
 elif nN1==4:
  n4+=1

 if nN2==1:
  n1+=1
 elif nN2==2:
  n2+=1
 elif nN2==3:
  n3+=1
 elif nN2==4:
  n4+=1

if n1==3:
 print('NO')
elif n2==3:
 print('NO')
elif n3==3:
 print('NO')
elif n4==3:
 print('NO')
else:
 print('YES')




提出情報

提出日時
問題 B - Path
ユーザ jbird
言語 Python (3.4.3)
得点 200
コード長 474 Byte
結果 AC
実行時間 17 ms
メモリ 3064 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 13
セット名 テストケース
Sample s1.txt, s2.txt, s3.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, s1.txt, s2.txt, s3.txt
ケース名 結果 実行時間 メモリ
01.txt AC 17 ms 3064 KiB
02.txt AC 17 ms 3064 KiB
03.txt AC 17 ms 3064 KiB
04.txt AC 17 ms 3064 KiB
05.txt AC 17 ms 3064 KiB
06.txt AC 17 ms 3064 KiB
07.txt AC 17 ms 3064 KiB
08.txt AC 17 ms 3064 KiB
09.txt AC 17 ms 3064 KiB
10.txt AC 17 ms 3064 KiB
s1.txt AC 17 ms 3064 KiB
s2.txt AC 17 ms 3064 KiB
s3.txt AC 17 ms 3064 KiB