Submission #537517

#TimeUsernameProblemLanguageResultExecution timeMemory
537517kabikaPalindromic FizzBuzz (NOI19_palindrome)C++17
0 / 100
0 ms212 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); ll s, e; cin >> s >> e; while(s <= e) { string str = to_string(s); int l = str.size(); int i = 0; while(str[i] == str[l-i-1] && i < ceil((double)l/2)) ++i; if(i == ceil((double)l/2)) cout << "Palindrome !\n"; else cout << s << '\n'; ++s; } 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...