Advertisement
MonsterScripter

CodinGame_2023_09_01__19_01_30__concat.cpp

Sep 1st, 2023
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <algorithm>
  5. #include <cstdlib>
  6.  
  7. using namespace std;
  8.  
  9. /**
  10.     01 Test 1
  11.     Entrée
  12.     Sortie attendue
  13.     APP
  14.     TITLE
  15.     APPLE
  16.  
  17.     02 Test 2
  18.     Entrée
  19.     Sortie attendue
  20.     DUR
  21.     CORTLEX
  22.     DURTLEX
  23.  
  24.     03 Test 3
  25.     Entrée
  26.     Sortie attendue
  27.     TEST
  28.     CASE
  29.     TEST
  30.  
  31.     04 Test 4
  32.     Entrée
  33.     Sortie attendue
  34.     GOO
  35.     FOOD
  36.     GOOD
  37.  */
  38.  
  39. int main(void)
  40. {
  41.     string first;
  42.     getline(cin, first);
  43.     string second;
  44.     getline(cin, second);
  45.     cout << first + second.substr(first.length(), second.length()-1) << endl;
  46.     return EXIT_SUCCESS;
  47. }
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement