Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (TRUE)
- {
- $target=0;
- $index=0;
- for ($i = 0; $i < 8; $i++)
- {
- fscanf(STDIN, "%d",
- $mountainH // represents the height of one mountain.
- );
- if($mountainH > $index){
- $index=$mountainH;
- $target=$i;
- }
- }
- echo $target."\n";
Add Comment
Please, Sign In to add comment