struct

AtCoder::ModInt754974721

Inherits Struct / Value / Object

Implements atcoder::modint754974721_i64.

alias Mint = AtCoder::ModInt754974721
Mint.new(30_i64) // Mint.new(7_i64)

Constants

MOD = 754974721_i64

Constructors

new(value : Int64 = 0_i64)
Source
new(value)
Source

Class methods

combination(n, k)
Source
factorial(n)
Source
permutation(n, k)
Source
repeated_combination(n, k)
Source
zero
Source

Instance methods

*(value : self)
Source
*(value)
Source
**(value)
Source
+(value : self)
Source
+(value)
Source
-(value : self)
Source
-(value)
Source
/(value : self)
Source
/(value)
Source
//(value)
Source
<(value)
Source
<<(value)
Source
<=(value)
Source
==(other : self)
Source
==(other)

Returns true if this struct is equal to other.

Both structs' instance vars are compared to each other. Thus, two structs are considered equal if each of their instance variables are equal. Subclasses should override this method to provide specific equality semantics.

struct Point
  def initialize(@x : Int32, @y : Int32)
  end
end

p1 = Point.new 1, 2
p2 = Point.new 1, 2
p3 = Point.new 3, 4

p1 == p2 # => true
p1 == p3 # => false
Source
>(value)
Source
>=(value)
Source
clone
Source
inspect(*args, **options)
inspect(*args, **options, &)
pow(value)
Source
pred
Source
sqrt
Source
succ
Source
to_i64
Source
to_s(*args, **options)
to_s(*args, **options, &)
value
zero?
Source