Submission #24113907
Source Code Expand
II=lambda:int(input()) MI=lambda:map(int,input().split()) OI=lambda:map(int,open(0).read().split()) N=II() *C,=MI() C.sort() ans=1 i=0 m=10**9+7 for c in C: ans*=c-i ans%=m i+=1 print(ans)
Submission Info
| Submission Time | |
|---|---|
| Task | C - Not Equal |
| User | Pandruant |
| Language | Python (3.8.2) |
| Score | 300 |
| Code Size | 197 Byte |
| Status | AC |
| Exec Time | 169 ms |
| Memory | 31592 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 300 / 300 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_00.txt, sample_01.txt, sample_02.txt, sample_03.txt |
| All | case_00.txt, case_01.txt, case_02.txt, case_03.txt, case_04.txt, case_05.txt, case_06.txt, case_07.txt, case_08.txt, case_09.txt, case_10.txt, case_11.txt, case_12.txt, case_13.txt, case_14.txt, sample_00.txt, sample_01.txt, sample_02.txt, sample_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| case_00.txt | AC | 169 ms | 31416 KiB |
| case_01.txt | AC | 123 ms | 31592 KiB |
| case_02.txt | AC | 18 ms | 8868 KiB |
| case_03.txt | AC | 18 ms | 9164 KiB |
| case_04.txt | AC | 149 ms | 30636 KiB |
| case_05.txt | AC | 146 ms | 27644 KiB |
| case_06.txt | AC | 162 ms | 30528 KiB |
| case_07.txt | AC | 141 ms | 27640 KiB |
| case_08.txt | AC | 38 ms | 10940 KiB |
| case_09.txt | AC | 139 ms | 28336 KiB |
| case_10.txt | AC | 42 ms | 11760 KiB |
| case_11.txt | AC | 80 ms | 17756 KiB |
| case_12.txt | AC | 98 ms | 21096 KiB |
| case_13.txt | AC | 39 ms | 11336 KiB |
| case_14.txt | AC | 116 ms | 22800 KiB |
| sample_00.txt | AC | 19 ms | 8860 KiB |
| sample_01.txt | AC | 17 ms | 8964 KiB |
| sample_02.txt | AC | 19 ms | 9012 KiB |
| sample_03.txt | AC | 19 ms | 8860 KiB |