2024年8月9日
摘要: #include <iostream> #include "minecraft.h" #include "Windows.h" TxMinecraft mc; using namespace std; int X,Y,Z,id=0,data=0; int a=0; void chu_shi_hua( 阅读全文
posted @ 2024-08-09 09:54 爱吃泡面的皮卡 阅读(6) 评论(0) 推荐(0) 编辑
  2024年6月29日
摘要: #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 @ 2024-06-29 09:20 爱吃泡面的皮卡 阅读(5) 评论(0) 推荐(0) 编辑
  2024年6月22日
摘要: #include <iostream> using namespace std; int n(int a){ if(a==1){ return 1; } return a*n(a-1); } int main(){ int a; cin>>a; cout<<n(a); return 0; } 阅读全文
posted @ 2024-06-22 08:45 爱吃泡面的皮卡 阅读(8) 评论(0) 推荐(0) 编辑
  2024年6月21日
摘要: #include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int a[n]; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n-1;i++){ for(int 阅读全文
posted @ 2024-06-21 19:44 爱吃泡面的皮卡 阅读(5) 评论(0) 推荐(0) 编辑
  2024年6月15日
摘要: #include<bits/stdc++.h> using namespace std; void happy(int a[1000],int n,int m){ int i=m,j=n,t=a[m]; if(i>j)return ; while(i!=j){ while(a[j]>=t&&i<j) 阅读全文
posted @ 2024-06-15 10:00 爱吃泡面的皮卡 阅读(2) 评论(0) 推荐(0) 编辑
  2024年6月8日
摘要: #include<bits/stdc++.h> using namespace std; long long a(int b){ int sum=1; if(b==1){ return 1; }else{ for(int j=1;j<=b;j++){ sum*=j; } } return sum+a 阅读全文
posted @ 2024-06-08 09:32 爱吃泡面的皮卡 阅读(1) 评论(0) 推荐(0) 编辑
  2024年6月2日
摘要: #include<bits/stdc++.h> using namespace std; int main(){ int n,s[100],z; cin>>n; for(int i=0;i!=0;i++){ s[i]=n%2; z++; n/=2; } for(int i=z-1;i>=0;i--) 阅读全文
posted @ 2024-06-02 08:56 爱吃泡面的皮卡 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> using namespace std; int main() { cout<<"input a number:"<<endl; int d; vector<int> vec; cin>>d; while (d) { vec 阅读全文
posted @ 2024-06-02 08:55 爱吃泡面的皮卡 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main() { long n; int p,c,m=0,s[100]; cout<<"输入要转换的数字:"<<endl; cin>>n; cout<<"输入要转换的进制:"<<endl; cin>>p; co 阅读全文
posted @ 2024-06-02 08:54 爱吃泡面的皮卡 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int main(){ int n,s=1; cin>>n; while(n>0){ cout<<n%2; s++; n/=2; } return 0; } 阅读全文
posted @ 2024-06-02 08:52 爱吃泡面的皮卡 阅读(7) 评论(0) 推荐(0) 编辑