摘要: #include <iostream> using namespace std; int main(int argc, char** argv) { int m,n,a; cin>>m>>n; int x=0; for(int i=0;i<n;i++){ cin>>a; if(a<=m){ m-=a 阅读全文
posted @ 2023-02-01 17:28 fushuxuan1 阅读(24) 评论(0) 推荐(0)
摘要: 亲和数 #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)
摘要: #include <iostream> using namespace std; int main(int argc, char** argv) { for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ cout<<j<<"*"<<i<<"="<<j*i<<" 阅读全文
posted @ 2022-11-25 18:43 fushuxuan1 阅读(18) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-10-02 15:03 fushuxuan1 阅读(13) 评论(0) 推荐(0)
摘要: #include <iostream>#include <string>#include <windows.h>#include "minecraft.h"using namespace std;TxMinecraft mc;int main(int argc, char** argv) { //连 阅读全文
posted @ 2022-10-02 14:34 fushuxuan1 阅读(60) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-10-02 13:34 fushuxuan1 阅读(8) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-10-02 13:33 fushuxuan1 阅读(40) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-10-02 13:32 fushuxuan1 阅读(18) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-10-02 13:31 fushuxuan1 阅读(38) 评论(0) 推荐(0)