03-1. Fishing for two days (15)

Source: Internet
Author: User

There is a saying in China that "three days of fishing for two days ". Assume that someone has "caught fish for two days" since one day and asked if this person is "caught fish" or "caught fish" in the next n days "?

Input Format:

Enter a positive integer n that cannot exceed 1000 in a row.

Output Format:

Output in a row whether the person is "fishing" or "drying" in the nth day, and "in day N ".

Input Example 1:

103

Output Example 1:

Fishing in day 103

Input Example 2:

34

Output Example 2:

Drying in day 34



1 # include <stdio. h> 2 3 int main () 4 {5 Int N; 6 scanf ("% d", & N); 7 8 If (n % 5) = 1 | (N % 5) = 2 | (N % 5) = 3) {9 printf ("fishing in day % d", N ); 10} 11 else {12 printf ("drying in day % d", n); 13} 14 15 return 0; 16}

 

03-1. Fishing for two days (15)

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.