Submission #522042

#TimeUsernameProblemLanguageResultExecution timeMemory
522042bluePalindromic FizzBuzz (NOI19_palindrome)C++17
100 / 100
25 ms1860 KiB
#include <iostream> #include <algorithm> #include <string> using namespace std; using ll = long long; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll S, E; cin >> S >> E; for(ll i = S; i <= E; i++) { string si = to_string(i); string ri = si; reverse(ri.begin(), ri.end()); if(si == ri) cout << "Palindrome!\n"; else cout << i << '\n'; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...