Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $str = "00000000000000000000000000000000000000000000000000000000000000000000000000000000";
- $test = trim(fgets(STDIN));
- if(strlen($test) == 80)
- {
- if($test[0]==1 and $test[1]==1 and $test[2]==1 and $test[3]==1)
- {
- $str=$test;
- }
- else if($test[76]==1 and $test[77]==1 and $test[78]==1 and $test[79]==1)
- {
- $str=strrev($test);
- }
- }
- echo $str;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement