上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页
摘要: 阅读全文
posted @ 2023-10-29 08:59 王ys 阅读(13) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; int main(){ //指针:指向内存地址 int *p;//定义一个指针类型变量 int a=1; p=&a;//指向a的内存地址 cout<<p<<endl;//内存地址 cout<<*p<<endl;//内存地 阅读全文
posted @ 2023-10-28 09:50 王ys 阅读(10) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int m[5],n,num=0; void p1_2(int tf){ for(int j=0;j<5;j++){ for(int i=0;i<5;i++){ if(tf==1){ if(m[j]<m[i]){ nu 阅读全文
posted @ 2023-10-28 09:30 王ys 阅读(18) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(){ string str; char t; bool jinwei=true; bool tf; cin>>str>>t; if(str[0]=='0'&&t=='f'){ cout<<str; } 阅读全文
posted @ 2023-10-21 09:10 王ys 阅读(18) 评论(0) 推荐(0)
摘要: #include <iostream> #include "minecraft.h" using namespace std; TxMinecraft mc; int x=-73,y=143,z=-254; int main(int argc, char** argv) { bool con=mc. 阅读全文
posted @ 2023-10-20 19:59 王ys 阅读(41) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-05 09:33 王ys 阅读(26) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-04 09:31 王ys 阅读(13) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int max(int a[],int n){ int t; if(n==1){ t=a[1]; }else{ if(max(a,n-1)>a[n]){ t=max(a,n-1); }else{ t=n[a] 阅读全文
posted @ 2023-09-24 09:55 王ys 阅读(62) 评论(0) 推荐(0)
摘要: 1136:密码翻译 时间限制: 1000 ms 内存限制: 65536 KB提交数: 68202 通过数: 29094 【题目描述】 在情报传递过程中,为了防止情报被截获,往往需要对情报用一定的方式加密,简单的加密算法虽然不足以完全避免情报被破译,但仍然能防止情报被轻易的识别。我们给出一种最简的的加 阅读全文
posted @ 2023-09-15 20:30 王ys 阅读(418) 评论(0) 推荐(0)
摘要: 2039:【例5.6】冒泡排序 时间限制: 1000 ms 内存限制: 65536 KB提交数: 51543 通过数: 28200 【题目描述】 编程输入n(1≤n≤20)(1≤n≤20)个小于10001000非负整数,然后自动按从大到小的顺序输出。(冒泡排序) 【输入】 第一行,数的个数n; 第二 阅读全文
posted @ 2023-09-08 20:35 王ys 阅读(342) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页