且未

博客园 首页 新随笔 联系 订阅 管理

2020年5月21日 #

摘要: 题目 一、Java基础类型题 1. public static void main(String[] args) { Scanner cin = new Scanner(System.in); int a = cin.nextInt(); while (a>0) { System.out.print 阅读全文
posted @ 2020-05-21 20:30 阿聊 阅读(263) 评论(0) 推荐(0) 编辑

2019年5月15日 #

摘要: 一、进制转换 1.考虑为0的情况,2.考虑负数的情况。最大子阵机器人表达式求值:回车,ASCII码13换行,ASCII码10空格,ASCII码32显示屏输出:幼儿园买玩具:islands打炉石传说:二、堆积木:... 阅读全文
posted @ 2019-05-15 12:41 阿聊 阅读(209) 评论(0) 推荐(0) 编辑

2019年4月29日 #

摘要: 在引入别人的一个项目之后乱码原因:java source file 编译格式不一致 解决方法:Window-->preference---->general----->content type----------... 阅读全文
posted @ 2019-04-29 15:45 阿聊 阅读(1131) 评论(0) 推荐(0) 编辑

2019年4月11日 #

摘要: pair使用.first,.second map使用->first,->second; map初始化数据可以用mp[a]=b,or mp.insert(make_pair(a,b)); 阅读全文
posted @ 2019-04-11 17:08 阿聊 阅读(625) 评论(0) 推荐(0) 编辑

2019年4月10日 #

摘要: #include #include #include using namespace std;map > mp;int main(){ mp[0][0]=1; mp[0][1]=2; mp[1][0]... 阅读全文
posted @ 2019-04-10 22:33 阿聊 阅读(470) 评论(0) 推荐(0) 编辑

2019年4月4日 #

摘要: #include #include using namespace std;int main(){ int n,m;cin>>n>>m; int a[30]; memset(a,0,sizeof(... 阅读全文
posted @ 2019-04-04 13:10 阿聊 阅读(228) 评论(0) 推荐(0) 编辑

摘要: #include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #include <set> using namespace std; int main() { int ans = 0; for (int i 阅读全文
posted @ 2019-04-04 11:17 阿聊 阅读(147) 评论(0) 推荐(0) 编辑

摘要: 蒜头君有一块数码管显示屏,只能显示数字。每个数字的显示如下。每 给这道题跪了,注意数据的存储,和访问。具体解释 看代码注释#include #include #include #include #include ... 阅读全文
posted @ 2019-04-04 10:01 阿聊 阅读(161) 评论(0) 推荐(0) 编辑

2019年4月3日 #

摘要: 这道题,想了一早上。只可意会不可言传。需要注意的点:1.输入的时候ch==10为回车。while(scanf("%c",&ch)&&ch!=10){}2. #include #include using n... 阅读全文
posted @ 2019-04-03 13:50 阿聊 阅读(144) 评论(0) 推荐(0) 编辑

2019年4月2日 #

摘要: vector本来就是可以用来代替一维数组的,vector提供了operator[]函数,可以像数组一样的操作,而且还有边界检查,动态改变大小。 这里只介绍用它来代替二维的数组,二维以上的可以依此类推。 1、定义二维vector 2、访问二维vector的元素的三种方式 如果指定外层和内层向量的大小, 阅读全文
posted @ 2019-04-02 21:53 阿聊 阅读(6373) 评论(0) 推荐(0) 编辑