結果
| 問題 |
No.1366 交換門松列・梅
|
| コンテスト | |
| ユーザー |
GER_chen
|
| 提出日時 | 2021-01-29 21:28:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 1,000 ms |
| コード長 | 1,106 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 82,596 KB |
| 実行使用メモリ | 53,580 KB |
| 最終ジャッジ日時 | 2025-06-20 10:56:19 |
| 合計ジャッジ時間 | 1,288 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#import sys;input = lambda: sys.stdin.readline().rstrip()
#import heapq
#from collections import deque
#import numpy as np
#from collections import Counter as cnt
#from collections import defaultdict as ddc
#from math import factorial as fct
#from math import gcd
#from bisect import bisect_left as bsl
#from bisect import bisect_right as bsr
#from itertools import accumulate as acc
#from itertools import combinations as cmb
#from itertools import permutations as pmt
#from itertools import product as prd
#from functools import reduce as red
#import sys
#sys.setrecursionlimit(10**9) #再帰を多く使う(デフォルトは1000)
# = input()
# = int(input())
# = map(int,input().split())
AA = list(map(int,input().split()))
BB = list(map(int,input().split()))
b = 1
for i in range(3):
for j in range(3):
A = [aa for aa in AA]
B = [bb for bb in BB]
A[i], B[j] = B[j], A[i]
if len(set(A)) == len(set(B)) == 3:
if A[1] in {min(A), max(A)} and B[1] in {min(B), max(B)}:
b = 0
break
print('YNeos'[b::2])
#print('YNEOS'[b::2])
GER_chen