You are viewing a single comment's thread. Return to all comments →
Short C++ solution
#include <iostream> using namespace std; int main() { int e; string input; cin >> input >> e; for (int i=0; i < input.length(); ++i) cout << to_string((input[i] - '0' + e) % 10); return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Security Key Spaces
You are viewing a single comment's thread. Return to all comments →
Short C++ solution