Submission #518272

#TimeUsernameProblemLanguageResultExecution timeMemory
518272brayden04Palindromic FizzBuzz (NOI19_palindrome)C++14
100 / 100
18 ms1888 KiB
#include <bits/stdc++.h> #define endl '\n' #define int long long using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int S, E = 0; cin >> S >> E; for (int i = S; i <= E; i++){ string cur = to_string(i); cur.begin(); string reversed = cur; reverse(reversed.begin(), reversed.end()); if (reversed == cur){ cout << "Palindrome!" << endl; } else{ cout << i << endl; } } }
#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...