The length difference between two sentences


Submit solution

Points: 10
Time limit: 2.0s
Memory limit: 64M

Authors:
Problem types
Allowed languages
Java 19, Java 8

題目說明

請用鍵盤輸入兩段文字,計算第一段文字比第二段文字多幾個字。

輸入

由鍵盤輸入第一段文字s1、第二段文字s2 (s1比s2長,不須考慮例外狀況)

輸出

s1比s2多幾個字

sample input & output

輸入 輸出
DataSet1 goodday sam 4
DataSet2 scuimgood agree 4
DataSet3 programming fun! 7

Comments

There are no comments at the moment.