6 
 
        
      
      助けて!電卓が誤動作します!
      
  前書き 電卓の動作がおかしい。入力するときにが8表示されることがあり2ます。そして時々私がタイプするとき6それは表示する+。いくつかのボタンが混同されています! 誰が私がどちらを決定するのを手伝ってもらえますか? チャレンジ: 入力:間違った方程式のリスト、正しい結果。 出力:交換される2つのボタン。 例: 入力は次のとおりです。 123 = 3 8423 = 252 4+4 = 8 4*7-10 = 417 9/3 = 3 42-9 = -36 そのために期待される出力は、次のとおり2と*。 どうして?2と*を入れ替えると、すべての方程式が正しいからです。 1*3 = 3 84*3 = 252 4+4 = 8 427-10 = 417 9/3 = 3 4*-9 = -36 チャレンジルール: 入力は任意の合理的な形式にすることができます。スペースで区切られた単一の文字列にすることができます。文字列リストまたは-array。方程式のリストと正しい結果の別のリスト。あなたの電話。使用した入力形式を明記してください! 注:これは-5--15、-5- -15またはとしてテストケースを入力できることも意味します-5 …
      
        
          
                   28
                
        
        
          
                  
                    code-golf 
                  
                    number 
                  
                    arithmetic 
                  
                    integer 
                  
                    code-golf 
                  
                    math 
                  
                    number 
                  
                    geometry 
                  
                    code-golf 
                  
                    grid 
                  
                    code-golf 
                  
                    math 
                  
                    number 
                  
                    sequence 
                  
                    primes 
                  
                    code-golf 
                  
                    sequence 
                  
                    kolmogorov-complexity 
                  
                    code-golf 
                  
                    string 
                  
                    ascii-art 
                  
                    alphabet 
                  
                    code-golf 
                  
                    math 
                  
                    sequence 
                  
                    integer 
                  
                    code-golf 
                  
                    number-theory 
                  
                    integer 
                  
                    natural-language 
                  
                    code-golf 
                  
                    date 
                  
                    code-golf 
                  
                    function 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    code-golf 
                  
                    math 
                  
                    number-theory 
                  
                    primes 
                  
                    classification 
                  
                    code-golf 
                  
                    array-manipulation 
                  
                    decision-problem 
                  
                    matrix 
                  
                    code-golf 
                  
                    number 
                  
                    code-golf 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    matrix 
                  
                    code-golf 
                  
                    string 
                  
                    code-golf 
                  
                    sequence 
                  
                    base-conversion 
                  
                    code-golf 
                  
                    code-golf 
                  
                    math 
                  
                    number-theory 
                  
                    combinatorics 
                  
                    integer-partitions 
                  
                    code-golf 
                  
                    integer 
                  
                    binary 
                  
                    base-conversion 
                  
                    code-golf 
                  
                    integer 
                  
                    base-conversion 
                  
                    palindrome 
                  
                    code-golf 
                  
                    code-golf 
                  
                    integer-partitions 
                  
                    code-golf 
                  
                    math 
                  
                    ascii-art 
                  
                    matrix 
                  
                    code-golf 
                  
                    number 
                  
                    sequence 
                  
                    number-theory 
                  
                    matrix 
                  
                    code-golf 
                  
                    interpreter 
                  
                    code-golf 
                  
                    graph-theory 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    decision-problem 
                  
                    code-golf 
                  
                    division 
                  
                    code-golf 
                  
                    array-manipulation 
                  
                    primes 
                  
                    code-golf 
                  
                    string 
                  
                    ascii-art 
                  
                    code-golf 
                  
                    primes 
                  
                    counting 
                  
                    code-golf 
                  
                    matrix 
                  
                    unicode 
                  
                    code-golf 
                  
                    source-layout 
                  
                    code-golf 
                  
                    grammars 
                  
                    code-golf 
                  
                    string 
                  
                    cops-and-robbers 
                  
                    regular-expression 
                  
                    obfuscation 
                  
                    string 
                  
                    code-challenge 
                  
                    cops-and-robbers 
                  
                    regular-expression 
                  
                    code-golf 
                  
                    kolmogorov-complexity 
                  
                    game 
                  
                    card-games 
                  
                    code-golf 
                  
                    kolmogorov-complexity 
                  
                    code-golf 
                  
                    array-manipulation 
                  
                    matrix 
                  
                    code-challenge 
                  
                    cops-and-robbers 
                  
                    code-challenge 
                  
                    decision-problem 
                  
                    cops-and-robbers 
                  
                    code-golf 
                  
                    permutations