【Ozon Tech Challenge 2020】 C. Kuroni and Impossible Calculation 模數

題意: 給出一個數列 a [ ] a[] a[],以及一個模數 m m m,計算 ∏ 1 < = i < j < = n ∣ a [ i ] − a [ j ] ∣ \prod_{1 <= i < j <= n} \left|a[i] - a[j]\right| ∏1<=i<j<=n​∣a[i]−a[j]∣. 數據範圍: 1 < = n < = 2 ∗ 1 0 5 , 1 < = m < = 10
相關文章
相關標籤/搜索