Submission #1359118
Source Code Expand
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); long ans = 1; for(int i = 1; i < n+1; i++){ ans = ans * i; } System.out.println(ans % 1000000007); } }
Submission Info
Submission Time | |
---|---|
Task | B - Training Camp |
User | unirita152 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 338 Byte |
Status | WA |
Exec Time | 111 ms |
Memory | 21844 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 | 91 ms | 21332 KB |
00_example_02.txt | AC | 98 ms | 21076 KB |
00_example_03.txt | WA | 93 ms | 19796 KB |
01.txt | WA | 105 ms | 19796 KB |
02.txt | AC | 102 ms | 20052 KB |
03.txt | WA | 111 ms | 21844 KB |
04.txt | WA | 100 ms | 21844 KB |