08 2023 档案
冒泡排序
摘要:#include <iostream> using namespace std; int main(){ int t,a[4]; for(int i=1;i<=3;i++){ cin>>a[i]; } for(int i=1;i<=2;i++){ for(int j=1;j<=3-i;j++){ i 阅读全文
posted @ 2023-08-12 10:29 爱吃泡面的皮卡 阅读(9) 评论(0) 推荐(0) 编辑
五子棋
摘要:#include <iostream> #include <iomanip> using namespace std; int row=16; int col=16; bool black=true; int all[17][17]; void F5(){ for(int ii=0;ii<=col; 阅读全文
posted @ 2023-08-10 20:32 爱吃泡面的皮卡 阅读(25) 评论(0) 推荐(0) 编辑
足球比赛
摘要:#include <bits/stdc++.h>#include <windows.h>#define huang return#define da 0#define shan ;#define Min 10 using namespace std;int a[11][11], a2[11], a3 阅读全文
posted @ 2023-08-10 09:52 爱吃泡面的皮卡 阅读(49) 评论(0) 推荐(0) 编辑
推箱子
摘要:#include <iostream> #include <iomanip> using namespace std; int main(){ int c,d,h,s,u,t; char f; cout<<"请输入棋盘的大小"<<endl; cin>>c>>d; cout<<"请输入棋子的坐标"<< 阅读全文
posted @ 2023-08-08 20:29 爱吃泡面的皮卡 阅读(15) 评论(0) 推荐(0) 编辑
统计字母
摘要:#include <iostream> #include <cstdio> using namespace std; int main(){ char chl[1000],ch2; int num[26],i,k; for(i=0;i<26;i++){ num[i]=0; } gets(chl); 阅读全文
posted @ 2023-08-07 09:39 爱吃泡面的皮卡 阅读(7) 评论(0) 推荐(0) 编辑
最大质因数
摘要:#include<iostream> using namespace std; int main(){ int n,a[100]={},x=0,Max=0; cin>>n; for(int i=1;i<=n;i++){ if(n%i==0){ a[x]=i; cout<<a[x] ; x++; } 阅读全文
posted @ 2023-08-07 08:27 爱吃泡面的皮卡 阅读(28) 评论(0) 推荐(0) 编辑
昆虫繁殖
摘要:#include<iostream> #include<cstdio> #include<cstring> using namespace std; int x,y,z; int a(int z){ if(z<x+2){ return 1; } return a(z-1)+a(z-x-2)*y;// 阅读全文
posted @ 2023-08-03 20:07 爱吃泡面的皮卡 阅读(60) 评论(0) 推荐(0) 编辑
少年带土
摘要:#include <iostream> #include <string> #include "minecraft.h" #include <Windows.h> using namespace std; TxMinecraft mc; int main(int argc, char** argv) 阅读全文
posted @ 2023-08-03 09:54 爱吃泡面的皮卡 阅读(41) 评论(0) 推荐(0) 编辑
金币
摘要:#include<iostream> using namespace std; int main(){ int n,j=1,sum=0,data=1; cin>>n; for(int i=1;i<=n;i++){ sum+=data; if(i==j){ data++; j+=data; } } c 阅读全文
posted @ 2023-08-02 09:30 爱吃泡面的皮卡 阅读(29) 评论(0) 推荐(0) 编辑
石头剪子布
摘要:#include<iostream> using namespace std; //使用string字符串解决。 int main(){ string s1,s2; int n; cin>>n; for(int i=0;i<n;i++){ cin>>s1>>s2; if(s1==s2){ cout< 阅读全文
posted @ 2023-08-01 19:18 爱吃泡面的皮卡 阅读(15) 评论(0) 推荐(0) 编辑
出现次数超过一半的数
摘要:#include <bits/stdc++.h> using namespace std; int main(){ int a[105]={},n,b; cin>>n; for(int i=1;i<=n;i++){ cin>>b; a[b+50]++; } for(int i=-50;i<=50;i 阅读全文
posted @ 2023-08-01 19:17 爱吃泡面的皮卡 阅读(4) 评论(0) 推荐(0) 编辑
再求f(x,n)
摘要:#include<iostream> #include<cmath> #include <bits/stdc++.h> using namespace std; double a(double n,double x){ if(n==0){ return 1;//结尾条件 }else{ return 阅读全文
posted @ 2023-08-01 19:17 爱吃泡面的皮卡 阅读(24) 评论(0) 推荐(0) 编辑
求f(x,n)
摘要:#include<iostream> #include<cmath> #include <bits/stdc++.h> using namespace std; double a(double n,double x){ if(n==0){ return x; }else{ return sqrt(n 阅读全文
posted @ 2023-08-01 19:15 爱吃泡面的皮卡 阅读(48) 评论(0) 推荐(0) 编辑
最简分数
摘要:#include <iostream> #include <cmath> using namespace std; int main(int argc, char** argv) { system("pause"); double x,y; int c[1][10]; int w; int k; d 阅读全文
posted @ 2023-08-01 09:29 爱吃泡面的皮卡 阅读(17) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示