文件名称:打鱼还是晒网
介绍说明--下载内容均来自于网络,请自行研究使用
中国有句俗语叫“三天打鱼两天晒网”。某人从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"
*问题分析与算法设计
根据题意可以将解题过程分为三步:
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"
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 7941972打鱼还是晒网.rar 列表 打鱼还是晒网.txt