結果
問題 | No.2443 特殊線形群の標準表現 |
ユーザー | 👑 p-adic |
提出日時 | 2023-08-06 02:56:05 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 571 ms / 3,000 ms |
コード長 | 395 bytes |
コンパイル時間 | 458 ms |
コンパイル使用メモリ | 82,284 KB |
実行使用メモリ | 93,488 KB |
最終ジャッジ日時 | 2024-04-26 14:36:52 |
合計ジャッジ時間 | 7,794 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 39 ms
52,464 KB |
testcase_01 | AC | 38 ms
52,136 KB |
testcase_02 | AC | 37 ms
53,028 KB |
testcase_03 | AC | 36 ms
53,540 KB |
testcase_04 | AC | 37 ms
52,132 KB |
testcase_05 | AC | 37 ms
53,292 KB |
testcase_06 | AC | 37 ms
53,216 KB |
testcase_07 | AC | 38 ms
52,984 KB |
testcase_08 | AC | 37 ms
52,072 KB |
testcase_09 | AC | 36 ms
53,452 KB |
testcase_10 | AC | 37 ms
52,736 KB |
testcase_11 | AC | 37 ms
52,564 KB |
testcase_12 | AC | 42 ms
54,508 KB |
testcase_13 | AC | 94 ms
76,212 KB |
testcase_14 | AC | 165 ms
79,832 KB |
testcase_15 | AC | 566 ms
93,148 KB |
testcase_16 | AC | 559 ms
93,332 KB |
testcase_17 | AC | 564 ms
91,080 KB |
testcase_18 | AC | 571 ms
93,292 KB |
testcase_19 | AC | 553 ms
93,304 KB |
testcase_20 | AC | 507 ms
93,488 KB |
ソースコード
I,R=input,range def J(): return map(int,I().split()) N,B,Q=J() T=[1,0,0,1] P=T[:] for n in R(N): a,b=J() c,d=J() T=[(a*T[0]+b*T[2])%B,(a*T[1]+b*T[3])%B,(c*T[0]+d*T[2])%B,(c*T[1]+d*T[3])%B] P+=T; for q in R(Q): L,R,x,y=J() print(((P[R*4]*P[L*4+3]-P[R*4+1]*P[L*4+2])*x+(P[R*4+1]*P[L*4]-P[R*4]*P[L*4+1])*y)%B,((P[R*4+2]*P[L*4+3]-P[R*4+3]*P[L*4+2])*x+(P[R*4+3]*P[L*4]-P[R*4+2]*P[L*4+1])*y)%B)