Submission #874307

#TimeUsernameProblemLanguageResultExecution timeMemory
874307sleepntsheepPalindromic FizzBuzz (NOI19_palindrome)C++17
100 / 100
9 ms1884 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); i64 s, e; inline __attribute__((always_inline)) i64 rev(i64 x) { i64 z{0}; for (; x; z = ((z<<3) + (z<<1) + x % 10), x /= 10); return z; } int main() { ShinLena; cin >> s >> e; for (i64 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...