Advertisement
MonsterScripter

CodinGame_2023_09_01__18_35_35__cesar_key.cpp

Sep 1st, 2023
609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.08 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <string>
  4. #include <vector>
  5. #include <algorithm>
  6.  
  7. using namespace std;
  8.  
  9. /*
  10.     01 Test 1
  11.     Entrée
  12.     abc
  13.     fgh
  14.     5
  15.     Sortie attendue
  16.     5
  17.     02 Test 2
  18.     Entrée
  19.     a
  20.     b
  21.     1
  22.     Sortie attendue
  23.     1
  24.     03 Test 3
  25.     Entrée
  26.     This is a simple phrase
  27.     eyz?1z?1r1?z~?}v1?y?r?v
  28.     17
  29.     Sortie attendue
  30.     17
  31.     04 Test 4
  32.     Entrée
  33.     A day that is void of your voice is to mean an incomplete one. For with your voice comes the soul melting laughter which is all I need to have a great and happy day. I hope mine makes you feel the same way.
  34.     C"fc{"vjcv"ku"xqkf"qh"{qwt"xqkeg"ku"vq"ogcp"cp"kpeqorngvg"qpg0"Hqt"ykvj"{qwt"xqkeg"eqogu"vjg"uqwn"ognvkpi"ncwijvgt"yjkej"ku"cnn"K"pggf"vq"jcxg"c"itgcv"cpf"jcrr{"fc{0"K"jqrg"okpg"ocmgu"{qw"hggn"vjg"ucog"yc{0
  35.     2
  36.     Sortie attendue
  37.     2
  38. */
  39.  
  40. int main()
  41. {
  42.     string decrypted;
  43.     getline(cin, decrypted);
  44.     string encrypted;
  45.     getline(cin, encrypted);
  46.     cout << encrypted[0] - decrypted[0] << endl;
  47.     return EXIT_SUCCESS;
  48. }
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement