type setting


Submit solution

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

Authors:
Problem types
Allowed languages
Java 19, Java 8

題目說明

出版社小編每天需要幫忙排版文章。

今天小編收到了兩段文字,請幫忙排版。

小編可以決定每行排入多少個字(含空白和符號),
請告訴小編需要幾行才能將將兩段文字列印完成,以及最後一行有多少個字。

輸入

第一段文字 第二段文字 每行字數

輸出

共需幾行 最後一行幾個字

sample input & output

輸入 輸出
DataSet1 Hello World!
I love programming.
10
4 1
DataSet2 Soochow 
University  
5
4 5
DataSet3  _ _ _ _ _
_ _ _ _ _ _
30
1 21

Comments

There are no comments at the moment.