Advertisement
MonsterScripter

CodinGame_2024_20_10__11_26__exercice.php

Oct 20th, 2024 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.68 KB | None | 0 0
  1. <?php
  2. /*
  3. Le mode de jeu est REVERSE : Vous n'avez pas accès à l'énoncé.
  4. Vous devez trouver quoi faire en observant les jeux de tests suivants :
  5.  
  6. 01 Test 1
  7. Entrée:
  8. WHO AM I
  9. Sortie attendue:
  10. I AM WHO
  11.  
  12. 02 Test 2
  13. Entrée:
  14. My.0name0is0Beedle0The0Bard
  15. 0
  16. Sortie attendue:
  17. Bard The Beedle is name My.
  18.  
  19. 03 Test 3
  20. Entrée:
  21. need.#in#friend#a#got#you#bet#I#indeed.#friend#a#got#you#need,#in#friend#a#got#You
  22. #
  23. Sortie attendue:
  24. You got a friend in need, you got a friend indeed. I bet you got a friend in need.
  25.  
  26. 04 Test 4
  27. Entrée:
  28. demi-guy@ordinary@an@just@I'm@welcome@You're@okay@it's@okay,@it's@Hey,@sky@the@sun,@the@tides,@the@For@welcome''@''You're@except,@say@I@can@What@demi-god.@a@at@staring@you're@When@bod@the@hair,@The@lot@a@it's@know@I@in@it@Breathe@Maui@it's@me,@really@it's@Yes,@begin@let's@eyes,@your@Open@change@never@humans@that@see@to@nice@it's@Well,@adorable@It's@feel@you@how@know@even@don't@You@strange@it's@and@greatness,@with@face@to@face@You're@here@happening@what's@see@I@ok,@Ok,
  29. @
  30. Sortie attendue:
  31. Ok, ok, I see what's happening here You're face to face with greatness, and it's strange You don't even know how you feel It's adorable Well, it's nice to see that humans never change Open your eyes, let's begin Yes, it's really me, it's Maui Breathe it in I know it's a lot The hair, the bod When you're staring at a demi-god. What can I say except, ''You're welcome'' For the tides, the sun, the sky Hey, it's okay, it's okay You're welcome I'm just an ordinary demi-guy
  32. */
  33.  
  34. $s1 = stream_get_line(STDIN, 1000 + 1, "\n");
  35. $s2 = stream_get_line(STDIN, 1 + 1, "\n");
  36. $r = str_replace($s2, " ", $s1);
  37. $r = implode(' ', array_reverse(explode(' ', $r)));
  38. echo $r;
  39. ?>
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement