const string ALGORITHM = "Algorithm";
const string ALCOHOL = "Alcohol";
cout << ALGORITHM.substr(0, 4) + ALCOHOL.substr(4) << '\n';
=== O U T P U T ===
Algohol
const string ALCOHOL = "Alcohol";
cout << ALGORITHM.substr(0, 4) + ALCOHOL.substr(4) << '\n';
=== O U T P U T ===
Algohol
Welcome to </Algohol>! This website is about Data Structure and Algorithm, including the algorithmic puzzles (and its solutions) created by me and my solutions to some problems on SPOJ. You can view the solution archive on Algohol or directly on my Github repository, but I don't encourage you to copy and paste my solutions. Check out my SPOJ profile!
I am a problem setter on SPOJ. If you want to solve my problems, you need a SPOJ account first. Note that cheating is not allowed (either copying my solutions or others' solutions, or just changing variable name and indentation), any cheating solutions will be disqualified. If you feel stuck, you can have a look on the anaylsis, but please don't copy it. Besides, I am quite happy to see a different approach from solvers than my intended approach, which is more elegant. Looking forward to receiving your solution!
Extra:
- I am pleased to announce that my problem "LNTILING - Long Tiling" was selected as one of the ten problems in Round 2, Bubble Cup 13 (2020).