Submission #1117532


Source Code Expand

n = gets.chomp.to_i

pw = 1

1.upto(n) do |i|
  pw *= i
end

puts pw % (10**9 + 7)

Submission Info

Submission Time
Task B - Training Camp
User wtnk0812
Language Ruby (2.3.3)
Score 0
Code Size 92 Byte
Status TLE
Exec Time 2106 ms
Memory 85020 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 2
TLE × 1
AC × 4
TLE × 3
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 7 ms 1788 KB
00_example_02.txt AC 7 ms 1788 KB
00_example_03.txt TLE 2106 ms 84732 KB
01.txt AC 8 ms 2556 KB
02.txt AC 7 ms 1788 KB
03.txt TLE 2106 ms 82308 KB
04.txt TLE 2106 ms 85020 KB