Submission #537520

# Submission time Handle Problem Language Result Execution time Memory
537520 2022-03-15T07:37:33 Z kabika Palindromic FizzBuzz (NOI19_palindrome) C++17
0 / 100
0 ms 212 KB
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <math.h>
#include <numeric>
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 time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -