打鱼还是晒网

所属分类:数值算法/人工智能
开发工具:C/C++
文件大小:1KB
下载次数:6
上传日期:2005-12-05 14:52:04
上 传 者沧海遗梦
说明:  中国有句俗语叫“三天打鱼两天晒网”。某人从1990年1月1日起开始“三天打鱼两天晒网”,问这个人在以后的某一天中是“打鱼”还是“晒网”。 *问题分析与算法设计 根据题意可以将解题过程分为三步: 1)计算从1990年1月1日开始至指定日期共有多少天; 2)由于“打鱼”和“晒网”的周期为5天,所以将计算出的天数用5去除; 3)根据余数判断他是在“打鱼”还是在“晒网”; 若 余数为1,2,3,则他是在“打鱼” 否则 是在“晒网”
(There is a Chinese saying called "three-day fishing nets drying day." A person from January 1, 1990 starting "three-day fishing nets two days of drying," and asked the person in a day after it is "string" or "drying network."* Analysis and design of algorithms that under Italian solving process can be divided into three steps : 1) calculation from January 1, 1990 until the date specified number of days; 2) The "string" and "drying net" for the five-day cycle, will calculate the number of days spent five Removal ; 3) According to the remainder of the judgment he is "string" or "drying net"; if the remainder of 1,2,3, he is the "string" or the "drying Network")

文件列表:
打鱼还是晒网.txt (2410, 2005-12-05)

近期下载者

相关文件


收藏者