Submission #2211052


Source Code Expand

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner s=new Scanner(System.in);
		int n;
		long  power=1;
		n=s.nextInt();
		for(int i=1;i<=n;i++) {
			power=(power*i)%(1000000007);
		}
		System.out.println(power);

	}

}

Submission Info

Submission Time
Task B - Training Camp
User ne290149
Language Java7 (OpenJDK 1.7.0)
Score 200
Code Size 281 Byte
Status AC
Exec Time 110 ms
Memory 20820 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 103 ms 20820 KB
00_example_02.txt AC 94 ms 20436 KB
00_example_03.txt AC 99 ms 19156 KB
01.txt AC 94 ms 19028 KB
02.txt AC 94 ms 18900 KB
03.txt AC 108 ms 19028 KB
04.txt AC 110 ms 19028 KB