Submission #1117507
Source Code Expand
file = $stdin line = file.readlines file.close n = line[0].to_i pow = 1 pow_10000 = 1 for i in 1..10000 pow_10000 *= i end if n <= 10000 for j in 1..n pow *= j end elsif n >= 10000 && n != 100000 for k in 1..n-(n/10000.to_i)*10000 pow *= k end pow *= pow_10000*(n/10000.to_i) else pow = 10 * pow_10000 end p pow%(10**9 + 7)
Submission Info
Submission Time | |
---|---|
Task | B - Training Camp |
User | ULTM52 |
Language | Ruby (2.3.3) |
Score | 0 |
Code Size | 372 Byte |
Status | WA |
Exec Time | 99 ms |
Memory | 31868 KB |
Compile Error
./Main.rb:15: warning: mismatched indentations at 'end' with 'for' at 13 ./Main.rb:19: warning: mismatched indentations at 'end' with 'for' at 17
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 | 54 ms | 31868 KB |
00_example_02.txt | AC | 53 ms | 31868 KB |
00_example_03.txt | WA | 54 ms | 31868 KB |
01.txt | AC | 55 ms | 31868 KB |
02.txt | AC | 54 ms | 31868 KB |
03.txt | WA | 99 ms | 31868 KB |
04.txt | WA | 87 ms | 31868 KB |