2020-03-06

I ask how to write c language

Reads from the standard input two characters (no spaces, tabs, carriage returns, line feed blank characters), the font character disorder, and may have repeating characters. When the two character sets of characters (same character, if the character is repeated, the number of repetition is the same, the order is not necessarily the same), the same two characters. Preparation of a two-input program determines character set is the same: the same is represented by 1, with 0 representing different.
[] Input forms
are input in two rows on both characters (the number of characters in each character set is not more than 20, and the second character after the input set have carriage returns).
[Output] form
if the same two characters, the output 1, otherwise outputs 0, then (with a space) in ascending order of the output of the first branch of a set of characters and the number of repeats.
[1] Sample input
helloworld9
worldhello9
[1] Sample Output
1
. 9 1
D 1
E 1
H 1
L. 3
O 2
R & lt 1
W 1
[2] Sample input
HelloWorld
heloworld
[Sample 2] outputs
0
D 1
E 1
. 1 H
L. 3
O 2
R & lt. 1
W. 1

发布了1 篇原创文章 · 获赞 0 · 访问量 3

Guess you like

Origin blog.csdn.net/qq_46470208/article/details/104696237