##### 希望更丰富的展现?使用Markdown
by LinAPro @ 2018-11-03 23:52:15
include<bits/stdc++.h>
using namespace std;
long long n,a,b,c,d,x;
long long j=0,o=0;
int main() {
cin>>n>>a>>b>>c>>d>>x;
n%=d;
a%=d;
b%=d;
c%=d;
x%=d;
for(int i=1; i<=n; i++) {
x=((ax%d+b%d)x%d+c%d)%d;
if(__builtin_parity(x)) j++;
else o++;
}
printf("%lld",o*j);
}
by LinAPro @ 2018-11-03 23:53:23
@[silenceabu](/space/show?uid=68163)
谢谢大佬,还不太会用
by BambSun @ 2018-11-03 23:56:29
```
代码
```
by LinAPro @ 2018-11-03 23:57:58