/
Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 9 点
注意
この問題に対する言及は、2020/6/6 18:00 JST まで禁止されています。言及がなされた場合、賠償が請求される可能性があります。 試験後に総合得点や認定級を公表するのは構いませんが、どの問題が解けたかなどの情報は発信しないようにお願いします。
問題文
長さ 3 の英大文字・英小文字のみからなる文字列 s,t が与えられます。
s,t が大文字と小文字の違いを含めて一致するなら same を、そうではないが大文字と小文字の違いを区別しない場合に一致するなら case-insensitive を、以上に該当しないなら different を出力してください。
制約
- s,t は長さ 3 の英大文字・英小文字のみからなる文字列
入力
入力は以下の形式で標準入力から与えられる。
s t
出力
問題文で指示された通りに文字列を出力せよ。
入力例 1
AbC ABc
出力例 1
case-insensitive
AbCとABcは、大文字と小文字の違いを区別しない場合に一致するのでcase-insensitiveを出力してください。
入力例 2
xyz xyz
出力例 2
same
- s と t はどちらも
xyzで完全に一致するのでsameを出力してください。
入力例 3
aDs kjH
出力例 3
different
Score : 9 points
Warning
Do not make any mention of this problem until June 6, 2020, 6:00 p.m. JST. In case of violation, compensation may be demanded. After the examination, you can reveal your total score and grade to others, but nothing more (for example, which problems you solved).
Problem Statement
You are given two strings s and t of length 3 consisting of only lowercase and uppercase English letters.
If the strings s and t are completely equal despite we distinguish letter case (i.e. lowercase and uppercase), print same; if they can read the same if we remove the distinction of letter case, print case-insensitive; otherwise, print different.
Constraints
- The strings s and t have length 3 and contain only lowercase and uppercase English letters.
Input
Input is given from Standard Input in the following format:
s t
Output
Print the answer, as specified in the problem statement.
Sample Input 1
AbC ABc
Sample Output 1
case-insensitive
- Since
AbCandABccan read the same if we treat the uppercase and lowercase letters as equivalent, printcase-insensitive.
Sample Input 2
xyz xyz
Sample Output 2
same
- Since s and t are completely the same strings as
xyz, printsame.
Sample Input 3
aDs kjH
Sample Output 3
different