上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: 三角 #include<iostream> using namespace std; int main(){ int i,j,k; char ch; for(i=1;i<=10;i++){ ch='A'; for(j=1;j<=10-i;++j){ cout<<" "; } for(k=1;k<=2 阅读全文
posted @ 2024-03-15 20:11 王ys 阅读(12) 评论(0) 推荐(0)
摘要: #include <iostream> #include "minecraft.h" using namespace std; TxMinecraft mc; int main(int argc, char** argv) { bool con=mc.ConnectMinecraft("zk.mak 阅读全文
posted @ 2024-03-08 19:51 王ys 阅读(35) 评论(0) 推荐(0)
摘要: #include <iostream> #include "minecraft.h" using namespace std; TxMinecraft mc; int x=6,y=75,z=-50; void z1(int z){ mc.setBlock(x+1,y,z,143,11); mc.se 阅读全文
posted @ 2024-03-01 19:58 王ys 阅读(19) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stack> using namespace std; int main(){ string a; cin>>a; stack<char> m; for(int i=0;i<a.length();i++){ if(a[i]=='('||a[i] 阅读全文
posted @ 2024-02-19 11:31 王ys 阅读(11) 评论(0) 推荐(0)
摘要: #include <iostream> #include "minecraft.h" #include <string> using namespace std; TxMinecraft mc; int x=0,y=0,z=0; int main(int argc, char** argv) { b 阅读全文
posted @ 2024-02-18 11:46 王ys 阅读(20) 评论(0) 推荐(0)
摘要: #include<iostream> #include<queue> using namespace std; int main(){ int n,m; cin>>n>>m; queue<int> a; for(int i=1;i<=n;i++){ a.push(i); } while(!a.emp 阅读全文
posted @ 2024-01-31 11:28 王ys 阅读(69) 评论(0) 推荐(0)
摘要: #include<iostream> #include<queue> using namespace std; int main(){ int m,w,x; cin>>m>>w; queue<int> a; queue<int> b; cin>>x; for(int i=1;i<=m;i++){ a 阅读全文
posted @ 2024-01-31 10:41 王ys 阅读(11) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; int main(){ int n,m,a[n]; bool o=false; cin>>n; int l=n+1; for(int i=0;i<n;i++){ cin>>a[i]; } for(int j=0;j<n; 阅读全文
posted @ 2024-01-29 11:39 王ys 阅读(163) 评论(0) 推荐(0)
摘要: #include<iostream> #include<set> using namespace std; int main(){ int m,n,x=0,c[1000],p=-1; set<int> a; cin>>m>>n; int b; set<int>::iterator i; for(in 阅读全文
posted @ 2024-01-29 10:52 王ys 阅读(96) 评论(0) 推荐(0)
摘要: 桶排序 #include<iostream> using namespace std; int main(){ int value; int a,max=100000; int list[max]={0}; cin>>a; for(int i=0;i<a;i++){ cin>>value; list 阅读全文
posted @ 2024-01-28 11:15 王ys 阅读(18) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页