七里笑
七里笑
全部文章
分类
C语言基础(1)
UVa(4)
WOJ(144)
笔试(11)
归档
标签
去牛客网
登录
/
注册
七里笑的博客
全部文章
(共160篇)
WOJ1167-Oil Detecting
石油公司在某地开采石油,他们把地面(长方形)分成一个个的小正方形,然后逐个勘探,有的正方形探到了石油,而有的没有,如果有两个石油地是相连的(上下、左右、对角),则说明它们是同个石油点。 现在,公司已经把所有的勘探点都勘探好了,他们请你写个程序计算一下到底有多少个不同的石油点。 输入格式 第一...
2017-09-04
0
546
WOJ1166-Is There Any Prefix?
给定一组二进制串,判断是否其中有一串是另外某一串的前缀。对于两个相同的串,我们规定两串相互不为前缀。 例如:10, 010, 0100, 0010, 1010 其中,10是1010的前缀 输入格式 输入有多组数据,每一组数据的第一行为一个整数N,接下来为N个二进制串,每一个串一行。每个二进...
2017-09-04
0
452
WOJ1165-Smith Number
1982年,Lehigh大学的数学家Albert Wilansky在查看电话簿的时候,突然发现他的姐夫H.Smith的电话号码有一个很特别的性质:该数字的所有位数之和,等于该数所有质因子的位数之和 4937775 = 3 * 5 * 5* 65837 4937775的位数和为: 4+9+3+7...
2017-09-04
0
549
WOJ1143-Part-time Job
Snoopy lost his wallet, but he is afraid to tell his family, so he decided to do a part-time job to earn money in weekends. He is selling washing mac...
2017-09-04
0
526
WOJ1157-Easy to Count
There are N boxes on one straight line which is long enough. They move at the same speed, but their directions may be different. That is, some boxes ...
2017-09-04
0
440
WOJ1152-Feli的糖果
Ader给Felicia寄来了很多很多的好吃的糖果,Felicia给每一个糖果标记了一个可口度,每天从中选出第K好吃的糖果来吃,但是,Ader寄来的糖果实在是太多太多了,编号后也只能一股脑的放在一个盒子里,Felicia每天都要花巨量的时间来找糖果,这显然是一件折磨人的事,他想写个程序来解决这个问题...
2017-09-04
0
829
WOJ1142-Half of and a Half
Gardon bought many many chocolates from the A Chocolate Market (ACM). When he was on the way to meet Angel, he met Speakless by accident. "Ah, s...
2017-09-04
0
429
WOJ1141-Encoded Love-letter
After Gardon had got Angel's letter, he found it was encoded...Oh my god, why did she encode a love-letter?? But don't worry, she wrote the algorithm...
2017-09-04
0
484
WOJ1134-Card Game
Adam and Eve play a card game using a regular deck of 52 cards. The rules are simple. The players sit on opposite sides of a table, facing each other...
2017-09-04
0
706
WOJ1107-DNA
It is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted by four letters, A, C, G...
2017-09-04
0
456
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页