问题标题: 结帖啦!!

0
0
已解决
赵泰来
赵泰来
高级光能
高级光能
#include<iostream>
#include<cmath>
using namespace std;
bool zhishu(int x){
	if(x==1){
		return false;
	}
	for(int i=2;i<sqrt(x);i++){
		if(x%i==0){
			return false;
		}
	}
	return true;
}
int main(){
	int a,b,cnt=0;
	cin>>a>>b;
	for(int i=a;i<=b;i++){
		if(zhishu(i)){
			cout<<i<<endl;
			cnt++;
			if(cnt==3){
				break;
			}
		}
	}
	if(cnt==0){
		cout<<"NO";
	}
	return 0;
}

80分代码

赵泰来在2021-01-27 14:28:58追加了内容

dd

赵泰来在2021-01-28 18:50:22追加了内容

谁先输chara在那个AU是审判者我就猜那谁/////回答

都不行我就那小号了(好久没登了)

赵泰来在2021-01-28 19:17:18追加了内容

dd

赵泰来在2021-01-29 17:57:46追加了内容

这是个问题!


0
已采纳
汪恺恒
汪恺恒
中级启示者
中级启示者

chara在那个AU中是审判者

0
李显晨
李显晨
中级启示者
中级启示者

chara在那个AU是审判者

0
0
我要回答