Title: * There is a saying in China called "Santian two Days". Suppose someone from one day, start "Santian two days", ask this person in the next nth days is "fishing" or "Sun Net"?

Source: Internet
Author: User
 title: * There is a saying in China called "Santian two Days".

	Suppose someone from one day, start "Santian two days", ask this person in the next nth day is "fishing" or "Sun Net".
	
	Input format: Enter 1 positive integer n that is not more than 1000 in one row.
	
	Output format: Output in a row this person is "fishing" (ie "fishing") or "drying" (ie "net") in the nth Day, and outputs "in days N". Input Sample Example 1:103 output sample 1:fishing in Day 103 input sample 2:34 output sample 2:drying in 
Import Java.io.BufferedReader;
Import java.io.IOException;
Import Java.io.InputStreamReader;
Import Java.util.Scanner;

public class Fishinganddrying {public
	
	static void Main (string[] args) {
		/*long starttime = system.currenttimemil Lis ();
		Scanner scan = new Scanner (system.in);
		System.out.println ("Please enter a positive integer:");
		int number = Scan.nextint ();
		System.out.println ("Enter a positive integer as:" + number);
		int flag = number% 5;
		
		Switch (flag) {case
		1: Case
		2:
		box 3:
			System.out.println ("Fishing in Day" + number);
			break;
		Case 0:
		box 4:
			 System.out.println ("drying in Day" + number);
			 break;
		Long endtime = System.currenttimemillis ();
		System.out.println ((endtime-starttime) + "millisecond");
		
		*
		
		//*bufferedreader br = new BufferedReader (new InputStreamReader (system.in))//keyboard input
		try {
			String str = Br.readline ();
			System.out.println (str);
		catch (IOException e) {
			e.printstacktrace ();
		} */
		
	}
	
}


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.