Submission #18756467
Source Code Expand
Copy
let l = Int(readLine()!)!var answer: Int64 = 1for i in 1...11 {answer *= Int64(l - i)answer /= Int64(i)}print(answer)
let l = Int(readLine()!)! var answer: Int64 = 1 for i in 1...11 { answer *= Int64(l - i) answer /= Int64(i) } print(answer)
Submission Info
Submission Time | |
---|---|
Task | C - Duodecim Ferra |
User | takechan3 |
Language | Swift (5.2.1) |
Score | 300 |
Code Size | 133 Byte |
Status | AC |
Exec Time | 44 ms |
Memory | 7768 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt, sample_03.txt |
All | handmade_00.txt, handmade_01.txt, handmade_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, sample_01.txt, sample_02.txt, sample_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
handmade_00.txt | AC | 44 ms | 7696 KB |
handmade_01.txt | AC | 5 ms | 7740 KB |
handmade_02.txt | AC | 6 ms | 7632 KB |
random_00.txt | AC | 6 ms | 7688 KB |
random_01.txt | AC | 6 ms | 7532 KB |
random_02.txt | AC | 5 ms | 7332 KB |
random_03.txt | AC | 5 ms | 7732 KB |
random_04.txt | AC | 5 ms | 7412 KB |
random_05.txt | AC | 5 ms | 7360 KB |
random_06.txt | AC | 10 ms | 7628 KB |
random_07.txt | AC | 7 ms | 7768 KB |
random_08.txt | AC | 6 ms | 7628 KB |
random_09.txt | AC | 6 ms | 7628 KB |
sample_01.txt | AC | 4 ms | 7416 KB |
sample_02.txt | AC | 8 ms | 7628 KB |
sample_03.txt | AC | 11 ms | 7412 KB |