TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()
if n[0] == n[2]:
    print("yes")
else:
    print("no")


n = input()
if n[0] == n[2]:
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
def resolve():
    l = input()
    print(l)
    print(l[::-1])
    if l == l[::-1]:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    resolve()

l = input()
if l == l[:-1]:
  print("Yes")
else:
  print("No")

def resolve():
    l = input()
    if l == l[::-1]:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    resolve()

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = input()
if N[0] == N[-1]:
  print("YES")
else:
  print("NO")

N = input()
if N[0] == N[-1]:
  print("YES")
else:
  print("NO")

N = input()
if N[0] == N[-1]:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = int(input())

a = 0
b = 0

for i in range(1,10):
    if N > 100:
        N = N - 100
        a = a + 1

for j in range(1,10):
    if N > 10:
        N = N - 10
        b = b + 1
c = N

if a == c:
    print("yes")
else:
    print("no")

A, B, C, D = map(int, input().split())

if B <= C:
    print(0)
else:
    print(min(B, D) - max(A,C))

N = int(input())

a = 0
b = 0

for i in range(1,10):
    if N > 100:
        N = N - 100
        a = a + 1

for j in range(1,10):
    if N > 10:
        N = N - 10
        b = b + 1
c = N

if a == c:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a,b,c,d=map(int,input().split())
print(-a+b-c+d+2)

print(("Yes","No")[len(set(input()[::2]))-1])

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a,b,c,d=map(int,input().split())
if b<=c or d<=a:
    print(0)
else:
    print(min(d,b)-max(a,c))

n=input()
if len(n)%2==0:
    m=int(len(n)/2)
else:
    m=int((len(n)-1)/2)

a=0

for i in range(m):
    if n[i]==n[-1*(i+1)]:
       continue
    else:
        a+=1

if a==0:
    print('Yes')
else:
    print('No')


Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n=input()
ck=0
for _ in range(n//2):
  if not n[_]==n[-1-_]:
    ck+=1
if ck==0:
  print('Yes')
else:
  print('No')

n=input()
ck=0
for i in range(n//2):
  if not n[i]==n[-1-i]:
    ck+=1
if ck==0:
  print('Yes')
else:
  print('No')


n=input()
ck=0
for i in range(len(n)//2):
  if not n[i]==n[-1-i]:
    ck+=1
if ck==0:
  print('Yes')
else:
  print('No')


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = int(input())

b = n // 100

c = n % 10

if b == c:
    print('YES')
else:
    print('NO')

a,b,c=input();print('YNeos'[a!=c::2])

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n=input()
print("Yes" n[0]==n[2] else"No")

a,b,c=input()
  print("Yes" if a==c else "No")

n=input()
    pirnt("Yes" n[0]==n[2] else "No")

n=input()
print("Yes" if n[0]==n[2] else "No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()
if n[2][1][0] == n:
    print("Yes")
else:
    print("No")

n = input()
if n[2]n[1]n[0] == n:
    print("Yes")
else:
    print("No")


n = input()
if n[2]+n[1]+n[0] == n:
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n=input()
if("Yes" if n[0]==n[2] else "No")

n=input()
print("Yes" if n[0]==n[2] else "No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):



a,b,c,d = map(int,input().split())

if(b<c):print (0)
elif(b==c):
    if(b == 0):print(0)
    else:print(1)
else:
    start = a if a>c else c
    end = b if b<d else d
    print(end - start)





def isPal(n):
    sum = 0
    while(n>0):
        rem = n % 10
        sum = (sum * 10) + rem
        n = n//10

    return sum

n = int(input().strip())

if(n == isPal(n)):print('Yes')
else:print('No')
    


Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a=int(input())

print("Yes" if a[0]==a[2] else "No")

a=(input())

if a[0]==a[2]:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
# -*- coding: utf-8 -*-

n = list(int(input()))

def digit_list(num):
    num = str(num)
    num = list(num)
    num = list(map(int,num))
    return num

n = digit_list(n)

if n[0] == n[-1]:
    print("Yes")
else:
    print("No")


# -*- coding: utf-8 -*-

n = int(input())

def digit_list(num):
    num = str(num)
    num = list(num)
    num = list(map(int,num))
    return num

n = digit_list(n)

if n[0] == n[-1]:
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
s=input()
print('Yes' if s[0]==s[1]==s[2] else 'No')

s=input()
print('Yes' if s[0]==s[2] else 'No')


Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
num=input()
if num%100==num:
    print("YES")
else:
    print("NO")

import math

num=int(input())

if num%10==math.floor(num/100):
    print("YES")
else:
    print("NO")

num=int(input())

if num%100==num:
    print("YES")
else:
    print("NO")

num=int(input())

if num%10==num/100:
    print("YES")
else:
    print("NO")

num=int(input())

if num%10==round(num/100):
    print("YES")
else:
    print("NO")

num=input()

if num[0]==num[2]:
    print("YES")
else:
    print("NO")

import math

num=int(input())

if num%10==math.floor(num/100):
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
from fractions import gcd

def lcm(a, b):
  return a*b/gcd(a, b)

N = int(input())
T = list(int(input()) for i in range(N))
T = list(set(T))
T.sort()
a = lcm(T[0], T[1])
for i in T[2:]:
    a = lcm(a, i)
print(int(a))

N = list(map(int, (input())))
if N == N[::-1]:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()
import sys
for i in range(len(n)-1):
    if n[i] != n[i+1]:
        print('No')
        sys.exit(0)

print('Yes')


n = input()
import sys
for i in range(len(n)//2):
    if n[i] != n[len(n)-1-i]:
        print('No')
        sys.exit(0)

print('Yes')


Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = int(input())
print (["No","Yes"][N[0] == N[2])

A,B, C, D = map(int,input().split())
if A <= C and min(D, B)-C >= 0:
    print(min(D, B)-C)
elif A > C and min(D, B)-A >= 0:
    print(min(D, B)-A)
else:
    print(0)

import fractions
t=1
for i in range(int(input())):
    s = int(input())
    t = t*s//fractions.gcd(s,t)
print(t)

N = input()
print (["No","Yes"][N[0] == N[2])

N = int(input())
print (["Yes", "No"][N[0]!=N[1])

N = input()
print (["No","Yes"][N[0] == N[2]])

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
print('Yes' if input()[0] == input()[2] else 'No')

N = input()
if N[0] == N[2]:
  print('Yes')
  exit()
print('No')

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = int(input())
if n[0] == n[2]:
  print("Yes")
else:
  print("No")

n = input()
if n[0] == n[2]:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
array = list(map(int, input().split()))
if array[0] == array[2]:
    print("Yes")
else:
    print("No")

array = list(map(str, input().split()))
if array[0] == array[2]:
    print("Yes")
else:
    print("No")

array = list(map(str, input()))
if array[0] == array[2]:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()

if n[0] == n[2]:
  print('YES')
else:
  print('NO')

n = input()

if n[0] == n[2]:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()
print('YES' if n[0]==n[2] else 'NO')

n = input()
print('YES' if n[0]==n[2] else 'NO')

n = input()
print('Yes' if n==n[::-1] else 'No')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = int(input())
print('Yes' if N[0] == N[-1] else 'No')

n = list(input())
print('Yes' if n[0] == n[-1] else 'No')

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a = input()
print("YES" if a[0] == a[2] else "NO")

a = input()
print("Yes" if a[0] == a[2] else "No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
x = int(input())
if x[0]==x[2]:
  print("Yes")
else:
  print("No")

x = input()
if x[0]==x[2]:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
import sys
sys.setrecursionlimit(100002)
input=sys.stdin.readline
n=int(input())
graph=[{} for i in range(n)]
visited=[False]*n
for i in range(n-1):
    a,b,c=map(int,input().split())
    a-=1;b-=1
    graph[a][b]=c
    graph[b][a]=c
q,k=map(int,input().split())
dist=[0]*n
def dfs(chi,par,cost):
    dist[chi]=cost
    for i in graph[chi].keys():
        if visited[i]:continue
        if i==par:continue
        visited[i]=True
        dfs(i,chi,cost+graph[i][chi])
    return
dfs(k-1,-1,0)
for i in range(q):
    x,y=map(int,input().split())
    x-=1;y-=1
    print(dist[x]+dist[y])


n=input()
if n[0]==n[2]:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N=list(int(input()))
N_=reversed(N)
if N==N_:
    print('Yes')
else:
    print('No')

N=list(input())
N_=list(reversed(N))
if N==N_:
    print('Yes')
else:
    print('No')


Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a=input()
print("YES" if a[::-1]==a else "NO")

a=input()
print("Yes" if a[::-1]==a else "No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = int(input())
if n / 100 == n % 10:
    print('Yes')
else:
    print('No')


n = int(input())
if n // 100 == n % 10:
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
#coding:utf-8
n=str(input())
if(n[0]==n[1]):
  print("Yes")
else:
  print("No")

#coding:utf-8
n=str(input())
if(n[0]==n[2]):
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a,b,c=input()
print("yes" if a==c else "No")

N=list(input())
print("Yes" if N[0]==N[2] else "No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
print("YNeos"[s:=input()==s[::-1]]::2)

print("YNeos"[(s:=input())!=s[::-1]::2])

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
def gcd(a,b):
    if b == 0:
        return a
    else:
        return gcd(b, a % b)
    
N = int(input())
 
a = int(input())
b = 0
for i in range(N-1):
    b = int(input())
    a = (a*b) // gcd(a,b)
    
print(a)

def gcd(a,b):
    if b == 0:
        return a
    else:
        return gcd(b, a % b)
    
N = int(input())
Ts = [None for i in range(N)]

a = int(input())
b = 0
for i in range(N-1):
    b = int(input())
    a = (a*b) // gcd(a,b)
    
print(a)

a = input()
b = []

for i in range(len(a)):
    b.insert(0, a[i])
    
if list(a) == b:
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a, b, c, d = map(int, input().split())

if b <= c or d <= a:
    print(0)
elif a <= c:
    if b <= d:
        print(b-c)
    else:
        print(d-c)
else:
    if b <= d:
        print(b-a)
    else:
        print(c-b)

s = input()

if s[0] == s[2]:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
# encoding:utf-8
import sys
 
def main():
	n = int(input())
	vers = [list(map(int, input().split())) for _ in range(n - 1)]
	q, k = list(map(int, input().split()))
	queries = [list(map(int, input().split())) for _ in range(q)]
 
	#n = 10 ** 5
	
 
	new_vers = mapping(n, vers)
	dist = calcMinDist(n, new_vers, k, queries)
	calcQueries(dist, queries, k)
	
def mapping(n, vers):
	new_vers = {i :[] for i in range(n)}
	for ver in vers:
		new_vers[ver[0] - 1].append((ver[1], ver[2]))
		new_vers[ver[1] - 1].append((ver[0], ver[2]))
	return new_vers
 
def calcMinDist(n, new_vers, k, queries):
	dist = [- 1 for _ in range(n)]
	flag = [False for _ in range(n)]
	dist[k - 1] = 0
	flag[k - 1] = True
	dfs(new_vers, dist, flag, k)
	return dist
 
def dfs(new_vers, dist, flag, frm):
	flag[frm - 1] = True
	vs = new_vers[frm - 1]
	for v in vs:
		if flag[v[0] - 1] == False:
			dist[v[0] - 1] = dist[frm - 1] + v[1]
			new_ver, dist, flag, _ = dfs(new_vers, dist, flag, v[0])
 
	return [new_vers, dist, flag, frm]
 
def calcQuery(dist, query, k):
	print(dist[query[0] - 1] + dist[query[1] - 1])
 
def calcQueries(dist, queries, k):
	for query in queries:
		calcQuery(dist, query, k)
 
if __name__ == '__main__':
	sys.setrecursionlimit(1000000)
	main()

def main():
	n = int(input())
	a = n // 100
	b = n - (n // 10) * 10
	if a == b:
		print("Yes")
	else:
		print("No")
 
if __name__ == '__main__':
	main()

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()
for i in range(len(n)//2){
  if n[i] != n[-(i+1)]:
  	print('No')
  	exit(0)
print('Yes')

import sys
n = input()
for i in range(len(n)//2):
  if n[i] != n[-(i+1)]:
  	print('No')
  	sys.exit(0)
print('Yes')

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a, b, c = input()
if a == c:
  print("yes")
else:
  print("no")

a, b, c = input()
if a == c:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()
if n(0) == n(2):
    print("Yes")
else:
    print("No")


n = input()
if n[0] == n[2]:
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a = input()
b = a[0]
c = a[2]
if b = c:
print("Yes")
else:
print("No")


a = input()
b = int(a[0])
c = int(a[2])
if b = c:
 print("Yes")
else:
 print("No")


a = input()
A = a[0]
B = a[2]
if A == B:
 print(Yes)
else:
 print(No)

a = (input())
b = a[0]
c = a[2]
if b = c:
print("Yes")
else:
print("No")


a = input()
b = int(a[0])
c = int(a[2])
if b = c:
print("Yes")
else:
print("No")


a = input().split()
A = int(a[0])
B = int(a[1])
C = int(a[2])
if A == C:
 print("Yes")
else:
 print("No")

a = input()
A = a[0]
B = a[2]
if A == B:
 print("Yes")
else:
 print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a,b,c,d=map(int,input().split())
s=min(a+b,c+d) - max(a,c)
if s>0:print(s)
else:print(0)


n=input()
if n ==  n[::-1]:print("Yes")
else:print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a,b,c=input();print('YNeos'[a!=b::2])

a,b,c=input();print('YNeos'[a!=c::2])

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
# coding: utf-8
# Your code here!

input_num = input()
input_len = len(input_num)
input_lis = list(input_num)
rvrsd_lis = list(reversed(input_lis))
flag = 0

print(input_lis)
print(rvrsd_lis)

for i in range(input_len):
    print(input_lis[i])
    print(rvrsd_lis[i])
    if input_lis[i] != rvrsd_lis[i]:
        flag = 1
        print("No")
        break

if flag == 0:
    print("Yes")


# coding: utf-8
# Your code here!

input_num = input()
input_len = len(input_num)
input_lis = list(input_num)
rvrsd_lis = list(reversed(input_lis))
flag = 0

for i in range(input_len):
    if input_lis[i] != rvrsd_lis[i]:
        flag = 1
        print("No")
        break

if flag == 0:
    print("yes")


# coding: utf-8
# Your code here!

input_num = input()
input_len = len(input_num)
input_lis = list(input_num)
rvrsd_lis = list(reversed(input_lis))
flag = 0

#print(input_lis)


for i in range(input_len):
    #print(input_lis[i])
    
    if input_lis[i] != rvrsd_lis[i]:
        flag = 1
        print("No")
        break

if flag == 0:
    print("Yes")


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()

if(n[0] == n[2]):
  print("YES")
else:
  print("NO")

n = input()

if(n[0] == n[2]):
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()
if n%100 == n/100:
  print("Yes")
else:
  print("No")

n = int(input())
if n%10 == (n-n%100)/100:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = int(input())
N_reverse = N[::-1]

if N = N_reverse:
  print('Yes')
else:
  print('No')

N = int(input())
N_reverse = N[::-1]

if N == N_reverse:
  print('Yes')
else:
  print('No')


N = input()
N_reverse = N[::-1]

if N == N_reverse:
  print('Yes')
else:
  print('No')


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a, b, c=input()
  print('Yes' if a==c else 'No')

  A=input()
  print('Yes' if A==sorted(A) else 'No')

N = str(input())
if N[0]==N[-1]:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
x = list(input())
print(x)
y = list(reversed(x))
print(y)
if x == y:
    print("Yes")
else:
    print("No")


x = list(input().split())
if x == reversed(x):
    print("Yes")
else:
    print("No")


x = list(input().split())
if x == x.reverse():
    print("Yes")
else:
    print("No")


x = list(input())
y = list(reversed(x))
if x == y:
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
l = list(input())
if l.reverse() == l:
    print("Yes")
else:
    print("No")



n=input()
print("Yes" if n==n[::-1] else "No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N=input()
print('YES' if N==N[::-1] else 'NO')

N=input()
print('Yes' if N[0]==N[2] else 'No')

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = input()
if (N = N[::-1]):
    print('Yes')
else:
    print('No')


N = input()
if (N == N[::-1]):
    print('Yes')
else:
    print('No')


Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = int(input())
print('Yes' if n[0] == n[2] else 'No')


n = int(input())
print('Yes' if s[0] == s[-1] else 'No')


n = int(input())
print('Yes' if n[::-1] == n else 'No')


n = input()
print('Yes' if n[0] == n[2] else 'No')


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = input()
f = True
L = len(N)
for i in range(N):
  if N[i] != N[L-1-i]:
    f = False
    break
if f:
  print("Yes")
else:
  print("No")

N = input()
f = True
L = len(N)
for i in range(L):
  if N[i] != N[L-1-i]:
    f = False
    break
if f:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
import functools
import fractions
n = int(input())
t = [int(input()) for _ in range(n)]

def lcm(x, y):
    return (x * y) // fractions.gcd(x, y)
    
ans = functools.reduce(lcm, t)
print(ans)

import functools
n = int(input())
t = [int(input()) for _ in range(n)]

def lcm(x, y):
    return (x * y) // functools.gcd(x, y)
    
ans = functools.reduce(lcm, t)
print(ans)

n = input()
print('Yes' if n == n[::-1] else 'No')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a=input()
b=input()
c=input()
d=input()
if a<c:
    fast=c
else:
    fast=a
if b<d:
    last=b
else:
    last=d

if b<c:
    print("0")
else:
    print(last-fast)

str=input()
if str[0]==str[2]:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input().strip()

if n == reversed(n):
    print('Yes')
else:
    print('No')


n = input().strip()

if n == n[::-1]:
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N=input()
if N[::-1]==N:
  print('YES')
else:
  print('NO')

N=input()
if N[::-1]==N:
  print('YES')
else:
  print('NO')

fjd=input()
if fjd[::-1]==fjd:
  print('YES')
else:
  print('NO')

N=input()
if N[::-1]==N:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n=input()
print("Yes" if n=n[::-1] else "No")

n = input()
print("Yes" if n == n[::-1] else "No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = list(input())
if N.sorted(reverse = True) == N:
    print("Yes")
else:
    print("No")


N = list(input())
if N[::-1] == N:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a,b,c=input()
print("YES" if a==c else "NO")

a,b,c=input()
print('YES' if a==c else 'NO')

a,b,c=input()
print("Yes" if a==c else "No")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
tmp = input().split(" ")
print("Yes") if tmp[0] == tmp[2] else print("No")

tmp = list(input())
print("Yes") if tmp[0] == tmp[2] else print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
sorted(a) = list[map(int, input().split(,))]
if a[0] == a[1]:
  print("Yes")
els:
  print("No")

a = int(input())
a.sort()
if a[0] == a[1]:
  print("Yes")
els:
  print("No")

sorted(a) = list[map(int, input().split())]
if a[0] == a[1]:
  print("Yes")
els:
  print("No")

a = int(input())
if a[0] == a[2]:
  print("Yes")
els:
  print("No")

a = list[map(int, input().split())]
if a[0] == a[1]:
  print("Yes")
els:
  print("No")

sorted(a) = int(input())
if a[0] == a[1]:
  print("Yes")
els:
  print("No")

n = input()
if n[0] == n[2]:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N =str(input())
if N[0]==N[1]:
  print("Yes")
else:
  print("No")

N =str(input())
if N[0]==N[2]:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()
m =len(n) // 2

for i in range(m):
  if n[i] == n[m]:
    print("Yes")
  else:
    print("No")

a, b, c, d = map(int, input().split())
 
before = 0
after = 0
 
if a >= c:
  before = a - c
else:
  before = c - a
 
if b >= d:
  after = d
else:
  after = b
print(after - before)

n = input()

if n[0] == n[2]:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = int(input())
if N[0] == N[2]:
    print("Yes")
else:
    print("No")

N = input()
if N[0] == N[2]:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()
if(n[0]==n[2]):
    print("YES")
else :
    print("NO")

n = input()
if(n[0]==n[2]):
    print("Yes")
else :
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):

url = "https://atcoder.jp//contests/abc070/tasks/abc070_a"

def main():
    x = input()
    if x == reversed(x):
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()



url = "https://atcoder.jp//contests/abc070/tasks/abc070_a"

def main():
    x = input()
    if x == ''.join(reversed(x)):
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()


Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a,b,c=input()
print("Yes" if a==2 else No)

a,b,c=input()
print("Yes" if a==c else "No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a,b,c,d = map(int,input().split())

if b <= c:
  print(0)
  exit()
  
if b <= d:
  print(b-c)
else:
  print(d-c)


N = input()

print("Yes" if N[0] == N[2] else "No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()



if n[0] == n[2]:
  print("Yes"):
else:
  print("No")

n = input()



if n[0] == n[2]:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a = list(map(int,input().split()))

if a[1]<a[2]:
  print(0)
else:
  print(min(a[1],a[3])-max(a[0],a[2]))


a,b,c = input().split()
print(["Yes","No"][a!=c])

a = list(map(int,input().split()))

if a[1]<a[2]:
  print(0)
else:
  print(min(a[1],a[3])-max(a[0],a[2]))


N = input()

if N[0]==N[2]:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = input()

if N[0] =- N[2]:
  print('Yes')
else:
  print('No')

N = input()

if N[0] == N[2]:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n=int(input())
t=list(map(int,[input() for i in range(n)]))

def gcd(x,y):
    if y==0:
        return x
    else:
        return gcd(y,x%y)
def lcm(x,y):
    return x*y//gcd(x,y)

if n==1:
    print(t[0])
else:
    ans=lcm(t[0],t[1])
    for i in range(n-1):
        ans=lcm(ans,lcm(t[i],t[i+1]))
    print(ans)

n=input()
if n[0]==n[2]:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = list(map(str, input()))
if n[0] = n[2]:
	print("Yes")
else:
	print("No")


n = list(map(str, input()))
if n[0] == n[2]:
	print("Yes")
else:
	print("No")


Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = list(input())
if n[0] == n[1]:
    print('Yes')
else:
    print('No')

n = list(input())
if n[0] == n[2]:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = int(input())
if(N%100 == N%1):
    print("Yes")
else:
    print("No")


N = int(input())
if(N//100 == N%10):
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a = input()
rev_a = reversed(a)

if a == rev_a:
    print("Yes")
else:
    print("No")

a = list(input())
rev_a = list(a)
rev_a.reverse()

if a == rev_a:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
print('Yes') if str(input())==str(input())[::-1] else print('No')

s = str(input())
print('Yes') if s==s[::-1] else print('No')

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
s=input();print('YNeos'[s!=s[::-1]])

s=input();print('YNeos'[s!=s[::-1]::2])


Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = int(input())
if (n//100) == (n%100):
    print('Yes')
else:
    print('no')


n = int(input())
if (n//10//10) == (n%10%10):
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a=input()
b=.join(reversed(a));
if(a==b):
  print('Yes')
else:
  print('No')

a=input()
b=reverse(a);
if a==b:
 print('Yes')
else:
 print('No')

a=input()
b=''.join(reversed(a))
if(a==b):
  print('Yes')
else:
  print('No')


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
a,b,c=input()
print("yes" if a==c else "No")

a,b,c=input()
print("yes" if a==c, else "No")

a,b,c=input()
print("Yes" if a==c else "No")


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
N = int(input())
T = [int(input()) for i in range(N)]


def gcd(a, b):
    while b:
        a, b = b, a % b
    return a


def lcm(a, b):
    return a * b // gcd(a, b)


if N == 1:
    print(T[0])
    exit()

now = lcm(T[0], T[1])
for i in range(1, N):
    now = lcm(now, T[i])

print(now)


N = str(input())
if N == N[::-1]
	print('Yes')
else
	print('No')

N = str(input())
if N == N[::-1]:
    print('Yes')
else:
    print('No')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
A,B,C,D = list(map(int,input.split(" ")))

if B<C:
    res = 0
else:
    res = min(B,D) - max(A<C)
print(res)

N = int(input())
N = str(N)
if N[::-1] == N:
  print('Yes')
else:
  print('No')
  

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
s = input()
if s[0] == s[1]:
  print("Yes")
else:
  print("No")

s = input()
if s[0] == s[2]:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
A, B, C, D = map(int, input().split())

if B < C or D < A:
    print(0)
elif A < C and B < D:
    print(B-C)
elif A < C and B > D:
    print(D-C)
elif C < A and B < D:
    print(B-A)
elif A < D and B > D:
    print(D-A)

N = input()
if N[0] != N[len(N)-1]:
    print('No')
    quit()
else:
    print('Yes')

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
import fractions
n=int(input())
a=1
for i in range(n):
  b=int(input())
  a=a//fractions.gcd(a,b)*b
print(int(a))


s=input()
if(s[0]==s[2]):
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
s = map(int, input().split())

A, B, C, D = [i for i in s]

greater = max(A, C)
less = min(B, D)

if min(0, greater - less):
　print(min(0, greater- less)
else:
   print("0")

s = input().split()
A = int(s[0])
B = int(s[1])
C = int(s[2])
D = int(s[3])

a_c = max(A, C)
b_d = min(B, D)

if a_c - b_d:
  print(a_c - b_d)
else:
  print("0")

s = input()
print('Yes' if s == s[::-1] else 'No')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = list(input())
s = n.copy()
print("Yes" if n==s.reverse() else "No")

n = list(input())
s = n.copy()
s.reverse()
print("Yes" if n==s else "No")

Verdicts: Wrong Answer

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()
print("Yes" if n[0] == n[2] else "No)

n= input()
print("Yes" if n[0] == n[2] else "No")

Verdicts: Runtime Error

Accepted
Problem: You are given a three-digit positive integer N.   Determine whether N is a _palindromic number_.   Here, a palindromic number is an integer that reads the same backward as forward in decimal notation.

Submission attempts (in order):
n = input()

if n[0] == n[3]:
  print("Yes")
else:
  print("No")


n = input()

if n[0] == n[2]:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Accepted