✔️ Accepted 100
/*****羊驼战神 * ┏┓ ┏┓+ + * ┏┛┻━━━┛┻┓ + + * ┃ ┃ * ┃ ━ ┃ ++ + + + * ████━████+ * ◥██◤ ◥██◤ + * ┃ ┻ ┃ * ┃ ┃ + + + + +https://excalidraw.com/ * ┗━┓ ┏━┛ + + +版权不可盗用 * ┃ ┃ + + + +Code is far away from * ┃ ┃ + bug with the animal protecting * ┃ ┗━━━┓ 神兽保佑,代码无bug * ┃ ┣┓一定要100分 * ┃ ┏┛保佑我文件读写不要出问题 * ┗┓┓┏━┳┓┏┛ + + + +保佑我头文件不要有问题 * ┃┫┫ ┃┫┫ + + + + * ┗┻┛ ┗┻┛+ + + + @2024-j-x32 */// Accepted附体
#include<bits/stdc++.h> using namespace std; int main(){ int n; bool isPrime=true; cout<<"请输入一个正整数"; cin>>n; for(int i=2;i<n;i++){ if(n%i==0){ isPrime=false; break; } } if(isPrime&&n!=1){ cout<<n<<"是素数"<<endl; }else{ cout<<n<<"不是素数"<<endl; } return 0; } //慢慢玩 //判断素数小游戏
#include<bits/stdc++.h> using namespace std; int main(){ int n; bool isPrime=true; cout<<"请输入一个正整数"; cin>>n; for(int i=2;i<n;i++){ if(n%i==0){ isPrime=false; break; } } if(isPrime&&n!=1){ cout<<n<<"是gay"<<endl; }else{ cout<<n<<"是拉拉"<<endl; } return 0; } //慢慢玩 //判断gay小游戏
本人洛谷 https://www.luogu.com.cn/user/1399171
_ooOoo_ o8888888o 88" . "88 (| -_- |) O\ = /O ____/`---'\____ .' \\| |// `. / \\||| : |||// \ / _||||| -:- |||||- \ | | \\\ - /// | | | \_| ''\---/'' | | \ .-\__ `-` ___/-. / ___`. .' /--.--\ `. . __
https://weavatar.com/avatar/2948713770806b2942e1d7981aeeb0a2?s=1000&d=mm https://weavatar.com/avatar/8ca28b5f60b886538748877f210e1d35?s=1000&d=mm 中国nb
随机图片