From a87a43c20a4bc2f75f85d4d7cef6d0da3e532815 Mon Sep 17 00:00:00 2001 From: kzrnm Date: Wed, 25 Jan 2023 12:51:11 +0900 Subject: [PATCH] Fix IDynamicModIntId --- .../DataStructure/Wrappers/DynamicModIntFenwickTree.cs | 2 +- .../DataStructure/FenwickTreeTest.GenericMath.cs | 6 +++--- .../ac-library-csharp.Test/DataStructure/FenwickTreeTest.cs | 6 +++--- Test/ac-library-csharp.Test/Math/DynamicModIDTest.cs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/ac-library-csharp/DataStructure/Wrappers/DynamicModIntFenwickTree.cs b/Source/ac-library-csharp/DataStructure/Wrappers/DynamicModIntFenwickTree.cs index 797ce801..ffe1641a 100644 --- a/Source/ac-library-csharp/DataStructure/Wrappers/DynamicModIntFenwickTree.cs +++ b/Source/ac-library-csharp/DataStructure/Wrappers/DynamicModIntFenwickTree.cs @@ -15,5 +15,5 @@ #if GENERIC_MATH [System.Obsolete("Use generic math")] #endif - public class DynamicModIntFenwickTree : FenwickTree, DynamicModIntOperator> where T : struct, IDynamicModID { public DynamicModIntFenwickTree(int n) : base(n) { } } + public class DynamicModIntFenwickTree : FenwickTree, DynamicModIntOperator> where T : struct { public DynamicModIntFenwickTree(int n) : base(n) { } } } diff --git a/Test/ac-library-csharp.Test/DataStructure/FenwickTreeTest.GenericMath.cs b/Test/ac-library-csharp.Test/DataStructure/FenwickTreeTest.GenericMath.cs index 5c5dd23d..efb9acbb 100644 --- a/Test/ac-library-csharp.Test/DataStructure/FenwickTreeTest.GenericMath.cs +++ b/Test/ac-library-csharp.Test/DataStructure/FenwickTreeTest.GenericMath.cs @@ -7,9 +7,9 @@ namespace AtCoder { public class FenwickTreeGenericMathTest { - private readonly struct ModID0 : IDynamicModID { } - private readonly struct ModID1 : IDynamicModID { } - private readonly struct ModID2 : IDynamicModID { } + private readonly struct ModID0 : IDynamicModIntId { } + private readonly struct ModID1 : IDynamicModIntId { } + private readonly struct ModID2 : IDynamicModIntId { } private struct Mod11 : IStaticMod { public uint Mod => 11; diff --git a/Test/ac-library-csharp.Test/DataStructure/FenwickTreeTest.cs b/Test/ac-library-csharp.Test/DataStructure/FenwickTreeTest.cs index 1c23a7fc..6c0a00d0 100644 --- a/Test/ac-library-csharp.Test/DataStructure/FenwickTreeTest.cs +++ b/Test/ac-library-csharp.Test/DataStructure/FenwickTreeTest.cs @@ -10,9 +10,9 @@ namespace AtCoder #endif public class FenwickTreeTest { - private readonly struct ModID0 : IDynamicModID { } - private readonly struct ModID1 : IDynamicModID { } - private readonly struct ModID2 : IDynamicModID { } + private readonly struct ModID0 : IDynamicModIntId { } + private readonly struct ModID1 : IDynamicModIntId { } + private readonly struct ModID2 : IDynamicModIntId { } private struct Mod11 : IStaticMod { public uint Mod => 11; diff --git a/Test/ac-library-csharp.Test/Math/DynamicModIDTest.cs b/Test/ac-library-csharp.Test/Math/DynamicModIDTest.cs index 883c1a0a..a9b4916f 100644 --- a/Test/ac-library-csharp.Test/Math/DynamicModIDTest.cs +++ b/Test/ac-library-csharp.Test/Math/DynamicModIDTest.cs @@ -2,6 +2,6 @@ { public class DynamicModIDTest { - internal struct DynamicModID : IDynamicModID { } + internal struct DynamicModID : IDynamicModIntId { } } }