A=B
Not enough ratings
k-9 Lexicographic Order
   
Award
Favorite
Favorited
Unfavorite
Tags: level
File Size
Posted
Updated
361.783 KB
11 Nov, 2024 @ 7:09pm
13 Apr @ 3:18pm
5 Change Notes ( view )

Subscribe to download
k-9 Lexicographic Order

In 1 collection by カズエイ
kazuei's problems
12 items
Description
Input: Two strings of "a", "b", "c" and "x", separated by a ",".
Output: The string that comes before the other in the lexicographic order.
Constraint: 1 <= String length <= 4
First string ≠ Second string
Of the 115260 total test cases, only 10000 are input.

<日本語訳>
k-9 辞書順
入力: ","で区切られた、a,b,c,xからなる2つの文字列
出力: 2つの文字列のうち、辞書順で早い方を出力する。
制約: 1 <= 文字列の長さ <= 4
1つ目の文字列 ≠ 2つ目の文字列
全115260のテストケースのうち10000だけ入力される。