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追加了内容
这是个问题!