結果

問題 No.1366 交換門松列・梅
ユーザー marroncastlemarroncastle
提出日時 2021-01-29 21:24:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 71,656 KB
最終ジャッジ日時 2023-09-09 14:37:13
合計ジャッジ時間 2,016 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,264 KB
testcase_01 AC 70 ms
71,120 KB
testcase_02 AC 69 ms
71,192 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 70 ms
71,212 KB
testcase_07 AC 71 ms
71,188 KB
testcase_08 WA -
testcase_09 AC 71 ms
71,180 KB
testcase_10 AC 71 ms
71,092 KB
testcase_11 WA -
testcase_12 AC 71 ms
70,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def check(A):
  if (A[1]-A[0])*(A[2]-A[1])>0: return True
  return False

def solve():
  A = list(map(int, input().split()))
  B = list(map(int, input().split()))
  for i in range(3):
    for j in range(3):
      C = A[:]; D = B[:]
      C[i], D[j] = D[j], C[i]
      if check(C) and check(D):
        return 'Yes'
  return 'No'
print(solve())

0