結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,100 KB
testcase_01 AC 70 ms
71,248 KB
testcase_02 AC 69 ms
71,088 KB
testcase_03 AC 68 ms
71,384 KB
testcase_04 AC 68 ms
71,244 KB
testcase_05 AC 69 ms
71,300 KB
testcase_06 AC 69 ms
71,288 KB
testcase_07 AC 68 ms
71,436 KB
testcase_08 AC 71 ms
71,592 KB
testcase_09 AC 72 ms
71,364 KB
testcase_10 AC 71 ms
71,420 KB
testcase_11 AC 70 ms
71,080 KB
testcase_12 AC 70 ms
71,300 KB
testcase_13 AC 70 ms
71,296 KB
testcase_14 AC 69 ms
71,404 KB
testcase_15 AC 68 ms
71,400 KB
testcase_16 AC 69 ms
71,088 KB
testcase_17 AC 69 ms
71,280 KB
testcase_18 AC 71 ms
71,444 KB
testcase_19 AC 70 ms
71,088 KB
testcase_20 AC 68 ms
71,356 KB
testcase_21 AC 69 ms
71,436 KB
testcase_22 AC 70 ms
71,380 KB
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
A,B,C = map(int,input().split())
D,E,F = map(int,input().split())
P = (A,B,C); PS = set(P)
Q = (D,E,F); QS = set(Q)
seq = [0,1,2]
One = [[1,0,2],[2,1,0],[0,2,1]]
Two = [[1,2,0],[2,0,1]]
for x in One:
  if P[0] == Q[x[0]] and P[1] == Q[x[1]] and P[2] == Q[x[2]]:
    print("Yes")
    print(2);exit()
for x in Two:
  if P[0] == Q[x[0]] and P[1] == Q[x[1]] and P[2] == Q[x[2]]:
    print("Yes")
    print(2);print(2);exit()
print("No")
 
  
0