• [1117] Kotiya's Incantation

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • Kotiya Sanae(こちや·さなえ) is a human who owns occult sciences incantation.
    The incantation is passed on from generation to generation singly.
    There're two version of incantation. One is original, and another one is a copy.
    Your task is to recognize whether they are same, similar or different.

    'Same' means every characters are same, including the order.
    'Similar' means every visible characters are same, including the order. The visible characters are not space(' '), line break('\r' and '\n') and tab('\t').
    And all of the left situations are 'Different'.


  • 输入
  • This problem has several cases.
    Each case is two strings, including 'a' - 'z', 'A' - 'Z', '\n', '\r', ' ' and '\t'.
    Each string is breaked by character '-'.
  • 输出
  • For each case, you just output 'SAME', 'SIMILAR' or 'DIFFERENT'.
  • 样例输入
  • Chin ka
    	ra hoi
    -
    Chinkarahoi-
    
  • 样例输出
  • SIMILAR
    
  • 提示
  • 来源
  • XadillaX
  • 操作

显示春菜