Submission #1417967


Source Code Expand

n = int(input())
M = 10**9 + 7

import functools

result = 1
for i in range(1, n + 1):
   result *= i
   if result >= M:
       result %= M
print(result)

Submission Info

Submission Time
Task B - Training Camp
User tarepan0622
Language Python (3.4.3)
Score 200
Code Size 163 Byte
Status AC
Exec Time 52 ms
Memory 3700 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 7
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 43 ms 3700 KB
00_example_02.txt AC 22 ms 3572 KB
00_example_03.txt AC 52 ms 3572 KB
01.txt AC 23 ms 3572 KB
02.txt AC 22 ms 3572 KB
03.txt AC 50 ms 3572 KB
04.txt AC 46 ms 3572 KB