結果

問題 No.1257 変わった平均値
ユーザー wolgnikwolgnik
提出日時 2020-10-16 22:01:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 366 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 87,044 KB
実行使用メモリ 71,620 KB
最終ジャッジ日時 2023-09-28 03:05:54
合計ジャッジ時間 3,020 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,552 KB
testcase_01 AC 68 ms
71,252 KB
testcase_02 AC 66 ms
71,364 KB
testcase_03 AC 66 ms
71,360 KB
testcase_04 AC 63 ms
71,412 KB
testcase_05 AC 64 ms
71,368 KB
testcase_06 AC 63 ms
71,412 KB
testcase_07 AC 64 ms
71,360 KB
testcase_08 AC 66 ms
71,436 KB
testcase_09 AC 63 ms
71,580 KB
testcase_10 AC 63 ms
71,324 KB
testcase_11 AC 66 ms
71,408 KB
testcase_12 AC 67 ms
71,108 KB
testcase_13 AC 68 ms
71,408 KB
testcase_14 AC 65 ms
71,360 KB
testcase_15 AC 65 ms
71,412 KB
testcase_16 AC 63 ms
71,324 KB
testcase_17 AC 64 ms
71,448 KB
testcase_18 AC 65 ms
71,264 KB
testcase_19 AC 65 ms
71,256 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
A, B, C = map(int, input().split())
D, E, F = map(int, input().split())
if sorted((A, B, C)) == sorted((D, E, F)):
  print("Yes")
  if A != D:
    if A != E and B != E:
      A, B = B, A
      print(2, "C")
    elif A != F and C != F:
      A, C = C, A
      print(2, "B")
  if B != E and C != F: print(2, "A")
else: print("No")
0