七里笑
七里笑
全部文章
分类
C语言基础(1)
UVa(4)
WOJ(144)
笔试(11)
归档
标签
去牛客网
登录
/
注册
七里笑的博客
全部文章
(共160篇)
WOJ1315-高级机密
在很多情况下,我们需要对信息进行加密 。特别是随着Internet的飞速发展,加密计算数就显得尤为重要。 很早以前,罗马人为了在战争中传递信息,频繁地使用替换算法进行信息加密,然而在计算机技术高速发展的今天,这种替换算法显得不堪一击。因此密码研究人员正在试图寻找一种易于编码、但不易于解码的编码规则...
2017-09-09
0
494
WOJ1314-3n+1数链问题
在计算机科学上,有很多问题是无法解决的,我们称之为不可解问题。然而,在很多情况下我们并不知道哪一类问题可以解决哪一类问题不可解决。现在我们就有这样一个问题,问题如下: (1)输入一个正整数n (2)把n显示出来 (3)如果n=1则结束 (4)如果n是奇数则n变为3×n+1, 否则变为n/2 ...
2017-09-09
0
584
WOJ1313-K尾相等数
从键盘输入一个自然数K(K>1),若存在自然数M和N(M>N),使得K^M和K^N均大于或等于1000、且它们的末尾三位数相等,则称M和N是一对?K尾相等数?。请编写程序,输出M+N值最小的K尾相等数。 输入格式 输入数据有多组,以0结束。 输出格式 对于每个输入,输出一行...
2017-09-09
0
557
WOJ1303-Assemble
Recently your team noticed that the computer you use to practice for programming contests is not good enough anymore. Therefore, you decide to buy a ...
2017-09-09
0
569
WOJ1301-Subsequence
A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are g...
2017-09-09
0
520
WOJ1300-Stone
Dzs and Sproblvem love mathmatics, so when they play games they also want to find out the inner rules of the game. The game they played is very class...
2017-09-09
0
542
WOJ1293-数字三角形
输入两个数M、N,(0<=M<=20,1<=N<=10),你需要编一个程序将以M起始的整数排成边长为N的三角形,形式如下: ... M+3 ... M+1 M+4 ... M M+2 M+5 ... 输入格式 输入有多组数据,每组数据一行,包含两个...
2017-09-09
0
466
WOJ1299-Merge Apple
In front of Sandy lays a big table, on which there're piles of apples formed a line. That looks good, but his mother doesn't like it, so Sandy has to ...
2017-09-09
0
563
WOJ1296-Coins
Snoopy has three coins. One day he tossed them on a table then and tried to flip some of them so that they had either all faces or all backsides faci...
2017-09-09
0
623
WOJ1294-数老鼠
斯坦迪博士在研究一种新的老鼠,它们寿命很长,可以活20年以上,繁殖能力强。一对成年老鼠每6个月可以生2对小鼠(假定每对小鼠雌雄各一),小鼠1年后可以成长为成年老鼠,并生下2对小鼠(假定每对小鼠雌雄各一)。现在博士想要知道,在理想的环境下,一对小鼠经过n整年后,一共可以繁殖出多少对老鼠?(包括它本身)...
2017-09-09
0
740
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页