C. Industrial Nim time limit per test 2 seconds memory limit per test 64 megabytes input standard input output standard output There are n stone quarries in Petrograd. Each quarr
C Wet Shark and Flowers 计算 si s_i为 p p的倍数的概率,当sis_i是 p p的倍数时,贡献是4000。然后减去相邻两个数同时为pp的倍数的情况。 #include <bits/stdc++.h> using namespace std; #define ll long long int l[100010];int r[100010];i