被这道题笑哭……我还想了一会儿有没有数论上的问题呢,tag还是数论呢……一看数据范围,笑哭……模拟暴力……
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int p1,p2,p3,p4,a,b;
cin>>p1>>p2>>p3>>p4>>a>>b;
int cnt;
for(int i=a;i<=b;i++)
{
if(i%p1%p2%p3%p4==i)cnt++;
}
cout<<cnt;
return 0;
}

本文介绍了一个有趣的数论问题,通过给定的四个不同整数,寻找在特定区间内能使特定函数成立的整数数量。使用模拟暴力的方法进行解答,并提供了示例输入输出。
(here
represents
the operation of taking the remainder). His task is to count the number of integers
with
property that probability that

被折叠的 条评论
为什么被折叠?



