Submission #1654761


Source Code Expand

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long power = 1L;
		for(int i = 1; i <= N; i++) {
			power = (long)(power * i) % 1000000007;
		}
		System.out.println(power);
	}
}

Submission Info

Submission Time
Task B - Training Camp
User ktguy
Language Java8 (OpenJDK 1.8.0)
Score 200
Code Size 294 Byte
Status AC
Exec Time 99 ms
Memory 23124 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 92 ms 21716 KB
00_example_02.txt AC 96 ms 20692 KB
00_example_03.txt AC 98 ms 23124 KB
01.txt AC 93 ms 20820 KB
02.txt AC 93 ms 21972 KB
03.txt AC 99 ms 18772 KB
04.txt AC 97 ms 21332 KB