結果

問題 No.1366 交換門松列・梅
ユーザー marroncastlemarroncastle
提出日時 2021-01-29 21:25:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 343 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 86,752 KB
実行使用メモリ 71,268 KB
最終ジャッジ日時 2023-09-09 14:38:34
合計ジャッジ時間 2,000 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,080 KB
testcase_01 AC 72 ms
70,932 KB
testcase_02 AC 71 ms
71,076 KB
testcase_03 WA -
testcase_04 AC 72 ms
71,048 KB
testcase_05 AC 72 ms
70,744 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 72 ms
70,796 KB
testcase_11 AC 71 ms
71,264 KB
testcase_12 AC 70 ms
70,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def check(A):
  if (A[1]-A[0])*(A[1]-A[2])>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