Submission #874305

#TimeUsernameProblemLanguageResultExecution timeMemory
874305sleepntsheepPalindromic FizzBuzz (NOI19_palindrome)C++17
69 / 100
1056 ms155208 KiB
#include <iostream> #include <cassert> #include <cstring> #include <vector> #include <algorithm> #include <deque> #include <set> #include <utility> #include <array> using i64 = long long; using u64 = unsigned long long; using f64 = double; using f80 = long double; using namespace std; #define ALL(x) x.begin(), x.end() #define ShinLena cin.tie(nullptr)->sync_with_stdio(false); #define N 200005 i64 s, e; i64 rev(i64 x) { i64 z{0}; for (; x; z = (z * 10 + x % 10), x /= 10); return z; } int main() { ShinLena; cin >> s >> e; for (int i = s; i <= e; ++i) { if (rev(i) == i) 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...