Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# Modulo 10^9+7 (1000000007)

static long factorial(int n)
{
    long M = 1000000007;
 
    long f = 1;
    for (int i = 1; i <= n; i++)
        f = (f*i) % M;  // Now f never can
                        // exceed 10^9+7
    return f;
}
 
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# Intersectcase insensitive 
Csharp :: C# one line method 
Csharp :: sucess messages in c# 
Csharp :: moving camera with touch screen unity 
Csharp :: monogame delta 
Csharp :: how to query items with any id in a list of ids linq c# 
Csharp :: program.cs entity framework 
Csharp :: c# retry delay request 
Csharp :: how set format persian data picker to en 
Csharp :: persian datapicker 
Csharp :: C# top down view player movement script 
Csharp :: c# Case insensitive Contains(string) 
Csharp :: c# remove xml invalid characters 
Csharp :: game maker transparent 
Csharp :: Advertisement code for unity 
Csharp :: c# dictionary check if value exists 
Csharp :: c# xunit theory classdata model 
Csharp :: c# press ctrl and alt 
Csharp :: how to edit .csproj file 
Csharp :: How to change ListBox selection background color 
Csharp :: input.getbutton unity 
Csharp :: check if list contains any empty element in c# 
Csharp :: Severity Code Description Project File Line Suppression State Error MSB3021 
Csharp :: unity get velocity at point 
Csharp :: how to convert int to string c# 
Csharp :: hashtable in c# 
Csharp :: How can I use Hex color Unity? , give hex color in unity 
Csharp :: ado stands for 
Csharp :: linq where condition c# 
Csharp :: C# date type no time 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =