結果

問題 No.483 マッチ並べ
ユーザー kitayan
提出日時 2017-02-20 20:12:41
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 428 bytes
コンパイル時間 511 ms
コンパイル使用メモリ 7,076 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-30 10:50:23
合計ジャッジ時間 2,691 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 50 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env/ python
# -*- coding:utf-8 -*-

N = raw_input()
N = int(N)
rc = []

for i in range(N):
    ra,ca,rb,cb = raw_input().split()
    ra = int(ra)
    ca = int(ca)
    rb = int(rb)
    cb = int(cb)
    rc.append([ra,ca])
    rc.append([rb,cb])

#print rc

rc_uniq = []
for x in rc:
    if x not in rc_uniq:
        rc_uniq.append(x)

#print rc_uniq
        
if N <= len(rc_uniq):
    print 'YES'
else:
    print 'NO'

0