Submission #1904546
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 ans = 1; for(int i = 1 ; i <= n ; i++) { ans = ans * i % 1000000007; } System.out.println(ans); } }
Submission Info
Submission Time | |
---|---|
Task | B - Training Camp |
User | kouta1612 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 200 |
Code Size | 282 Byte |
Status | AC |
Exec Time | 98 ms |
Memory | 21716 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
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 | 94 ms | 19156 KB |
00_example_02.txt | AC | 93 ms | 21716 KB |
00_example_03.txt | AC | 97 ms | 19156 KB |
01.txt | AC | 94 ms | 20692 KB |
02.txt | AC | 95 ms | 19924 KB |
03.txt | AC | 97 ms | 21588 KB |
04.txt | AC | 98 ms | 21716 KB |