文件名称:打鱼还是晒网
介绍说明--下载内容来自于网络,使用问题请自行百度
中国有句俗语叫“三天打鱼两天晒网”。某人从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"
(系统自动生成,下载前可以参看下载内容)
下载文件列表
打鱼还是晒网.txt
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.