Submission #874306

#TimeUsernameProblemLanguageResultExecution timeMemory
874306sleepntsheepPalindromic FizzBuzz (NOI19_palindrome)C++17
69 / 100
1061 ms156712 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 (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...