Submission #1697417


Source Code Expand

import java.util.Scanner;
import java.util.Stack;

class Main {

    public static void main(String[] args) {
        new Main().compute();
    }

    void compute() {
        Scanner sc = new Scanner(System.in);
        int denom = (int) Math.pow(10, 9) + 7;
        int N = sc.nextInt();
        long ans = 1;
        for (int i = 1; i <= N; i++) {
            ans = ans * i % denom;
        }
        System.out.println(ans);
    }
}

Submission Info

Submission Time
Task B - Training Camp
User packer_jp
Language Java8 (OpenJDK 1.8.0)
Score 200
Code Size 457 Byte
Status AC
Exec Time 97 ms
Memory 22100 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 97 ms 18900 KB
00_example_02.txt AC 90 ms 21844 KB
00_example_03.txt AC 97 ms 21588 KB
01.txt AC 92 ms 20816 KB
02.txt AC 90 ms 19796 KB
03.txt AC 93 ms 22100 KB
04.txt AC 93 ms 19924 KB