Advertisement
Golden_Rus

Untitled

May 16th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2. $str = "00000000000000000000000000000000000000000000000000000000000000000000000000000000";
  3. $test = trim(fgets(STDIN));
  4. if(strlen($test) == 80)
  5. {
  6.     if($test[0]==1 and $test[1]==1 and $test[2]==1 and $test[3]==1)
  7.     {
  8.     $str=$test;
  9.     }
  10.     else if($test[76]==1 and $test[77]==1 and $test[78]==1 and $test[79]==1)
  11.     {
  12.     $str=strrev($test);
  13.     }
  14. }
  15. echo $str;
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement