Submission #1083101

#TimeUsernameProblemLanguageResultExecution timeMemory
1083101toast12Palindromic FizzBuzz (NOI19_palindrome)C++14
100 / 100
12 ms1880 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll s, e; cin >> s >> e; for (ll i = s; i <= e; i++) { string x = to_string(i); string y = x; reverse(x.begin(), x.end()); if (x == y) cout << "Palindrome!\n"; else cout << i << '\n'; } return 0; }
#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...