上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: It's easy to tell if two words are identical - just check the letters. But how do you tell if two words are almost identical? And how close is "almost 阅读全文
posted @ 2020-04-16 21:20 Hazelxcf 阅读(178) 评论(0) 推荐(0)
摘要: 汉字的字形存在于字库中,即便在今天,16点阵的字库也仍然使用广泛。16点阵的字库把每个汉字看成是16x16个像素信息。并把这些信息记录在字节中。一个字节可以存储8位信息,用32个字节就可以存一个汉字的字形了。把每个字节转为2进制表示,1表示墨迹,0表示底色。每行2个字节,一共16行,布局是: 第1字 阅读全文
posted @ 2020-04-16 17:50 Hazelxcf 阅读(149) 评论(0) 推荐(0)
摘要: 题目描述小明买了块高端大气上档次的电子手表,他正准备调时间呢。在 M78 星云,时间的计量单位和地球上不同,M78 星云的一个小时有 n 分钟。大家都知道,手表只有一个按钮可以把当前的数加一。在调分钟的时候,如果当前显示的数是 0 ,那么按一下按钮就会变成 1,再按一次变成 2 。如果当前的数是 n 阅读全文
posted @ 2020-04-16 15:56 Hazelxcf 阅读(123) 评论(0) 推荐(0)
摘要: 题目描述x星球的盛大节日为增加气氛,用30台机光器一字排开,向太空中打出光柱。安装调试的时候才发现,不知什么原因,相邻的两台激光器不能同时打开!国王很想知道,在目前这种bug存在的情况下,一共能打出多少种激光效果?显然,如果只有3台机器,一共可以成5种样式,即:全都关上(sorry, 此时无声胜有声 阅读全文
posted @ 2020-04-16 15:55 Hazelxcf 阅读(169) 评论(0) 推荐(0)
摘要: 有N个瓶子,编号 1 ~ N,放在架子上。比如有5个瓶子:2 1 3 5 4,要求每次拿起2个瓶子,交换它们的位置。经过若干次后,使得瓶子的序号为:1 2 3 4 5对于这么简单的情况,显然,至少需要交换2次就可以复位。如果瓶子更多呢?你可以通过编程来解决。 输入 输入存在多组测试数据,对于每组测试 阅读全文
posted @ 2020-04-16 15:43 Hazelxcf 阅读(143) 评论(0) 推荐(0)
摘要: http://oj.ecustacm.cn/problem.php?id=1328 #include <bits/stdc++.h> using namespace std; struct node{ int y,m,d; }s[10]; int cnt; int a,b,c; void check 阅读全文
posted @ 2020-04-16 09:46 Hazelxcf 阅读(181) 评论(0) 推荐(0)
摘要: http://oj.ecustacm.cn/problem.php?id=1320 #include <cstdio> #include <cstring> using namespace std; int dir[4][2] = {0,1, 0,-1, 1,0, -1,0}; int vis[10 阅读全文
posted @ 2020-04-15 21:17 Hazelxcf 阅读(139) 评论(0) 推荐(0)
摘要: http://oj.ecustacm.cn/problem.php?id=1326 等差素数列 不一定是相邻的素数 答案是210 以j为起点,i为公差,向后找9个数字 每个数字比最大的小,并且是质数 #include <bits/stdc++.h> using namespace std; cons 阅读全文
posted @ 2020-04-15 16:54 Hazelxcf 阅读(159) 评论(0) 推荐(0)
摘要: https://ac.nowcoder.com/acm/problem/collection/160 https://ac.nowcoder.com/acm/problem/collection/382 阅读全文
posted @ 2020-04-15 09:46 Hazelxcf 阅读(83) 评论(0) 推荐(0)
摘要: https://ac.nowcoder.com/acm/contest/5203/C #include<bits/stdc++.h> using namespace std; int n; int l,r; int ans; int main() { //freopen("in","r",stdin 阅读全文
posted @ 2020-04-15 08:59 Hazelxcf 阅读(152) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页