We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
PHP is also missing, i wrote my own, then doesn't accept my answer...
Compiler Message
Wrong Answer
Input (stdin) 01010 10101 Your Output 11111Expected Output 11111
<?php/* Enter your code here. Read input from STDIN. Print output to STDOUT */$string="";$s=readline();$t=readline();for($i=0;$i<strlen($s);$i++){if($s[$i]===$t[$i]){$string.='0';}else{$string.='1';}}print($string);?>
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
XOR Strings
You are viewing a single comment's thread. Return to all comments →
PHP is also missing, i wrote my own, then doesn't accept my answer... Compiler Message Wrong Answer Input (stdin) 01010 10101 Your Output 11111Expected Output 11111