Submission #1869241
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; public class Program { public static void Main() { //int[] num = Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); //string s = Console.ReadLine(); //int num = int.Parse(Console.ReadLine()); ulong u = ulong.Parse(Console.ReadLine()); ulong ans = 1; for (ulong i = 1; i <= u; i++) { ans = (ans * i)% 1000000007; } Console.WriteLine(ans); } }
Submission Info
Submission Time | |
---|---|
Task | B - Training Camp |
User | chika_haru |
Language | C# (Mono 4.6.2.0) |
Score | 200 |
Code Size | 564 Byte |
Status | AC |
Exec Time | 22 ms |
Memory | 11220 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt, 00_example_03.txt |
All | 00_example_01.txt, 00_example_02.txt, 00_example_03.txt, 01.txt, 02.txt, 03.txt, 04.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 22 ms | 11220 KB |
00_example_02.txt | AC | 20 ms | 11092 KB |
00_example_03.txt | AC | 21 ms | 9044 KB |
01.txt | AC | 20 ms | 9044 KB |
02.txt | AC | 20 ms | 11092 KB |
03.txt | AC | 21 ms | 11092 KB |
04.txt | AC | 21 ms | 9044 KB |