摘要: 亲和数 #include <iostream> using namespace std; int yinzizhihe(int a){ int b = 0; for(int i = 1;i<a;i++){ if(a%i==0){ b = b+i; } } return b; } int main(){ in 阅读全文
posted @ 2023-01-31 20:41 fushuxuan1 阅读(122) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(int argc, char** argv) { int x; cin>>x; if(x>=95 && x<=100){ cout<<"你获得了王者称号"; }else if(x>=90 && x<= 阅读全文
posted @ 2023-01-31 16:49 fushuxuan1 阅读(25) 评论(0) 推荐(0)