8-16 Tibetan poems and 8-16 Tibetan Poems

Source: Internet
Author: User

8-16 Tibetan poems and 8-16 Tibetan Poems

5-24 Tibetan Poems (20 points)

This question requires the compilation of a program to decrypt the Tibetan tail poems.

Input Format:

The input is a Chinese ending poem with four sentences in total. Each sentence is a line, but the sentence is not necessarily a long sentence. The sentence can contain at least one Chinese Character and at most nine Chinese characters. Note: a Chinese character occupies two bytes.

Output Format:

Extract the last Chinese character of each sentence and connect them to form a string and output it. At the same time, enter a line break at the end.

Input example:
Leisurely rural style, however, the heart is difficult to flat, and the orchid fragrance is more and more quiet
Output example:
Calm and calm

  1. # Include <stdio. h>
  2. # Include <stdlib. h>
  3. # Include "math. h"
  4. # Include "string. h"
  5. Int main ()
  6. {
  7. Char * p [4], str [20];
  8. Int I;
  9. For (I = 0; I <= 3; I ++ ){
  10. Gets (str );
  11. P [I] = (char *) malloc (sizeof (str) + 1 );
  12. Strcpy (p [I], str );
  13. }
  14. Int n;
  15. For (I = 0; I <= 3; I ++ ){
  16. N = strlen (p [I]);
  17. Printf ("% s", p [I] + N-2 );
  18. }
  19. Return 0;
  20. }

Related Article

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.