会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wangys
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
16
下一页
2023年10月29日
函数的参数传递
摘要:
阅读全文
posted @ 2023-10-29 08:59 王ys
阅读(13)
评论(0)
推荐(0)
2023年10月28日
指针介绍(简)
摘要: #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)
2023年10月21日
原码转反补码
摘要: #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)
2023年10月20日
MC咸蛋超人代码
摘要: #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)
2023年10月5日
信息学奥赛理论知识
摘要:
阅读全文
posted @ 2023-10-05 09:33 王ys
阅读(26)
评论(0)
推荐(0)
2023年10月4日
scanf&printf
摘要:
阅读全文
posted @ 2023-10-04 09:31 王ys
阅读(13)
评论(0)
推荐(0)
2023年9月24日
递归 (比较5个数的大小)
摘要: #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)
2023年9月15日
1136:密码翻译
摘要: 1136:密码翻译 时间限制: 1000 ms 内存限制: 65536 KB提交数: 68202 通过数: 29094 【题目描述】 在情报传递过程中,为了防止情报被截获,往往需要对情报用一定的方式加密,简单的加密算法虽然不足以完全避免情报被破译,但仍然能防止情报被轻易的识别。我们给出一种最简的的加
阅读全文
posted @ 2023-09-15 20:30 王ys
阅读(418)
评论(0)
推荐(0)
2023年9月8日
2039:【例5.6】冒泡排序
摘要: 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
下一页
公告