結果
問題 |
No.1257 変わった平均値
|
ユーザー |
![]() |
提出日時 | 2020-10-16 22:19:43 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 454 bytes |
コンパイル時間 | 275 ms |
コンパイル使用メモリ | 81,956 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-07-20 22:09:55 |
合計ジャッジ時間 | 2,197 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 WA * 2 |
ソースコード
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")