Guest User

Untitled

a guest
Jan 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. while (TRUE)
  2. {
  3. $target=0;
  4. $index=0;
  5. for ($i = 0; $i < 8; $i++)
  6. {
  7. fscanf(STDIN, "%d",
  8. $mountainH // represents the height of one mountain.
  9. );
  10. if($mountainH > $index){
  11. $index=$mountainH;
  12. $target=$i;
  13. }
  14. }
  15. echo $target."\n";
Add Comment
Please, Sign In to add comment