結果

問題 No.3225 2×2行列相似判定 〜easy〜
コンテスト
ユーザー titia
提出日時 2025-08-11 22:21:10
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 573 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 81 ms
コンパイル使用メモリ 64,516 KB
実行使用メモリ 59,096 KB
最終ジャッジ日時 2026-10-21 10:20:44
合計ジャッジ時間 7,166 ms
ジャッジサーバーID
(参考情報)
judge6_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = sys.stdin.readline

mod=67

A,B=map(int,input().split())
C,D=map(int,input().split())

A2,B2=map(int,input().split())
C2,D2=map(int,input().split())

flag=0
for a in range(67):
    for b in range(67):
        for c in range(67):
            for d in range(67):
                if a*d-b*c==0:
                    continue

                if (A*a+C*b)%mod==(A2*a+B2*c)%mod and (A*c+C*d)%mod==(C2*a+D2*c)%mod and (B*a+D*b)%mod==(A2*b+B2*d)%mod and (B*c+D*d)%mod==(C2*b+D2*d)%mod:
                    flag=1

if flag:
    print("Yes")
else:
    print("No")
0