結果
問題 |
No.3225 2×2行列相似判定 〜easy〜
|
ユーザー |
![]() |
提出日時 | 2025-08-11 22:21:10 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 388 ms / 2,000 ms |
コード長 | 573 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 82,848 KB |
実行使用メモリ | 76,488 KB |
最終ジャッジ日時 | 2025-08-11 22:21:21 |
合計ジャッジ時間 | 10,694 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
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")