设为首页收藏本站

八达网

 找回密码
 注册
查看: 111|回复: 3
打印 上一主题 下一主题

给大家推荐一个编程网站:ProjectEuler.net

[复制链接]

2

主题

1

好友

3万

积分

大和

跳转到指定楼层
1
发表于 2008-11-26 12:03 |只看该作者 |倒序浏览
上面有218道经典的试题

EX:

Problem 19
14 June 2002


You are given the following information, but you may prefer to do some research for yourself.

1 Jan 1900 was a Monday.
Thirty days has September,
April, June and November.
All the rest have thirty-one,
Saving February alone,
Which has twenty-eight, rain or shine.
And on leap years, twenty-nine.
A leap year occurs on any year evenly divisible by 4, but not on a century unless it is divisible by 400.
How many Sundays fell on the first of the month during the twentieth century (1 Jan 1901 to 31 Dec 2000)?



Answer:   
   


可以用任意语言编程,填入正确答案就可以完成了

[ 本帖最后由 hkkhhk 于 2008-11-26 12:31 编辑 ]

1

主题

0

好友

9082

积分

大象

我本善良

2
发表于 2008-11-26 12:04 |只看该作者
欠钱不还者,烂JJ
回复

使用道具 举报

头像被屏蔽

0

主题

0

好友

2700

积分

禁止访问

3
发表于 2008-11-26 12:07 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

0

主题

0

好友

2万

积分

大和

4
发表于 2008-11-26 12:45 |只看该作者
好的,友情帮顶
Lust,Greed,Sloth Glut7tony Pride,Envy,Wrath
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

手机版|Archiver|八达网    

GMT+8, 2026-2-6 17:15

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部