Submission #2214633


Source Code Expand

import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

n = ni()
if n == 1:
    print(1)
else:
    f = 1
    for i in range(1,n+1):
        f *= i
        f = f%1000000007
    print(f)

Submission Info

Submission Time
Task B - Training Camp
User pybot114514
Language Python (3.4.3)
Score 200
Code Size 285 Byte
Status AC
Exec Time 40 ms
Memory 3060 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 17 ms 2940 KB
00_example_02.txt AC 17 ms 2940 KB
00_example_03.txt AC 39 ms 2940 KB
01.txt AC 17 ms 2940 KB
02.txt AC 17 ms 2940 KB
03.txt AC 40 ms 3060 KB
04.txt AC 36 ms 2940 KB