P1111 small Fat Fruit Accepted Tags: chubby series [show label]Describe
Xuzhenyi to the Datong fruit shop to buy fruit, but the boss Huyichen told him to buy one at a time, but Xuzhenyi want to eat two, so in the bargain, Huyichen said as long as Xuzhenyi can make the two fruits he wants to merge into one, can succeed. Can you help him?
Format input Format
The input file contains two fruit names to be combined. All names have a maximum of 100 letters. (with several lines)
Output format
For each set of test data, print out a minimum combined length.
Example 1 sample input 1[copy]
Apple Peachananas bananapear Peach
Sample output 1[Copy] 8 7 6-------------------------------------------------------------------------------------------------- ----------------------------------a small problem, but still a great lesson 2333. Either write while (scanf ("%s%s", A, b)!=eof), or write while (~ ...); The principle is to take a bitwise inverse and then if reading a set of data will return 2, but if not write! EOF will return-1, so it's broken. All right, I'm messed up. Just remember ... ~-1=0.
vijos1111: Chubby Apple