Submission #945032

#TimeUsernameProblemLanguageResultExecution timeMemory
945032dsyzPalindromic FizzBuzz (NOI19_palindrome)C++17
100 / 100
10 ms1884 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false);cin.tie(0); long long int S; long long int E; string s; string s2; cin>>S; cin>>E; for(long long int i = S;i <= E;i++){ s = to_string(i); s2 = s; reverse(s.begin(),s.end()); if(s2 != s){ cout<<s2<<'\n'; }else{ cout<<"Palindrome!"<<'\n'; } } }
#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...