Help for this page

Select Code to Download


  1. or download this
    for ('00'..'89'){
      if (index($str,$_)<0) {
        if (index($str.substr($_,0,1),$_)<0) {
    ...
      }
    }
    print $str.'90';
    
  2. or download this
    $s = (<>);
    for('00'..'99'){print $_." missing\n" if $s!~/$_/}
    for('00'..'99'){print $_." duplicated\n" if index($s,$_) >= 0 and inde
    +x($s,$_,index($s,$_)+1) >= 0}