Skip to content

Commit

Permalink
Fix mod z
Browse files Browse the repository at this point in the history
  • Loading branch information
kzrnm authored Jan 24, 2023
1 parent c9a9e3a commit 834b7bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static partial class MathLib
/// </remarks>
/// <returns>答えは(存在するならば) y,z(0≤y&lt;z=lcm(<paramref name="m"/>[i])) を用いて x≡y(mod z) の形で書ける。答えがない場合は(0,0)、n=0 の時は(0,1)、それ以外の場合は(y,z)。</returns>
[MethodImpl(256)]
public static (long y, long m) Crt(long[] r, long[] m)
public static (long y, long z) Crt(long[] r, long[] m)
{
Contract.Assert(r.Length == m.Length, reason: $"Length of {nameof(r)} and {nameof(m)} must be same.");

Expand Down

0 comments on commit 834b7bb

Please sign in to comment.