結果
| 問題 |
No.3225 2×2行列相似判定 〜easy〜
|
| ユーザー |
👑 |
| 提出日時 | 2025-08-09 12:45:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 357 ms / 2,000 ms |
| コード長 | 268 bytes |
| コンパイル時間 | 337 ms |
| コンパイル使用メモリ | 82,784 KB |
| 実行使用メモリ | 76,264 KB |
| 最終ジャッジ日時 | 2025-08-09 12:46:04 |
| 合計ジャッジ時間 | 10,420 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
J=lambda:map(int,input().split())
a,b=J()
c,d=J()
e,f=J()
g,h=J()
B=67
L=range(B)
n=1
for p in L:
for q in L:
for r in L:
for s in L:n&=((p*s-q*r)%B<1 or(p*a+q*c-e*p-f*r)%B or(p*b+q*d-e*q-f*s)%B or(r*a+s*c-g*p-h*r)%B or(r*b+s*d-g*q-h*s)%B)>0
print("YNeos"[n::2])