結果

問題 No.483 マッチ並べ
ユーザー maspymaspy
提出日時 2020-03-24 14:08:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 8,696 KB
最終ジャッジ日時 2023-08-30 05:25:57
合計ジャッジ時間 4,066 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,536 KB
testcase_01 AC 19 ms
8,572 KB
testcase_02 AC 18 ms
8,496 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 19 ms
8,476 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 19 ms
8,540 KB
testcase_12 AC 18 ms
8,580 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 18 ms
8,512 KB
testcase_17 AC 18 ms
8,528 KB
testcase_18 AC 19 ms
8,436 KB
testcase_19 WA -
testcase_20 AC 18 ms
8,596 KB
testcase_21 AC 19 ms
8,544 KB
testcase_22 AC 19 ms
8,480 KB
testcase_23 AC 18 ms
8,472 KB
testcase_24 AC 20 ms
8,684 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 19 ms
8,540 KB
testcase_28 AC 18 ms
8,556 KB
testcase_29 AC 18 ms
8,528 KB
testcase_30 WA -
testcase_31 AC 19 ms
8,528 KB
testcase_32 AC 18 ms
8,620 KB
testcase_33 AC 18 ms
8,624 KB
testcase_34 AC 18 ms
8,528 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 18 ms
8,444 KB
testcase_41 AC 18 ms
8,668 KB
testcase_42 AC 18 ms
8,600 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 AC 19 ms
8,480 KB
testcase_54 AC 18 ms
8,572 KB
testcase_55 AC 19 ms
8,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# !/usr/bin/ python3.8
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
from collections import Counter

N = int(readline())
m = map(int, read().split())

degree = Counter(zip(m, m)).values()
print('YES' if max(degree) <= 2 else 'NO')
0