//????CCF 10?9A #pragma GCC optimize(2) #include #define ll long long #define FOR(i,a,b) for(int i = a;i < b;++i) #define FORD(i,a,b) for(int i = a;i <= b;++i) #define FastIO std::ios::sync_with_stdio(0),std::cin.tie(0),std::cout.tie(0); #define endl "\n" #define De cout << "De" << endl using namespace std; int n,m; int a[200005]; int main() { FastIO; //freopen("","r",stdin); //freopen("","w",stdout); cin >> n >> m; vector a(n); FOR(i,0,n) { cin >> a[i]; } vector prefix_sum(n + 1, 0); FORD(i,1,n) { prefix_sum[i] = (prefix_sum[i - 1] + a[i - 1]) % m; } vector prefix_prefix_sum(n + 1,0); FORD(i,1,n){ prefix_prefix_sum[i] = prefix_prefix_sum[i - 1] + prefix_sum[i]; } long long ans = 0; FORD(i,1,n) { } cout << ans << endl; return 0; }