problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p03631
u056599756
2,000
262,144
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.
['n=input()\n\nprint("YES" if n[0]==n[2] else "NO")', 'n=input()\n\nprint("Yes" if n==n[::-1] else "No")']
['Wrong Answer', 'Accepted']
['s748152876', 's636917353']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 47]
p03631
u064408584
2,000
262,144
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.
["a=input()\nprint(list(a))\nif list(a) ==list(reversed(a)): print('Yes')\nelse: print('No')", "a=input()\nif list(a) ==list(reversed(a)): print('Yes')\nelse: print('No')"]
['Wrong Answer', 'Accepted']
['s271796365', 's185455359']
[2940.0, 2940.0]
[17.0, 17.0]
[87, 72]
p03631
u066455063
2,000
262,144
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.
['from math import gcd\n\n\ndef lcm(x, y):\n return (x*y) // gcd(x, y)\n\n\nN = int(input())\nans = 0\nfor i in range(N):\n T = int(input())\n\n if i == 0:\n ans = T\n\n else:\n ans = lcm(ans, T)\n\nprint(ans)\n', 'import math\n\n\ndef lcm(x, y):\n return (x*y) // math.gcd(x, y)\n\n\nN = int(input())\nans = 0\nfor i in range(N):\n T = int(input())\n\n if i == 0:\n ans = T\n\n else:\n ans = lcm(ans, T)\n\nprint(ans)\n', 'N = input()\n\nprint("Yes" if N[0] == N[2] else "No")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s118237072', 's428116233', 's473273150']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[216, 212, 52]
p03631
u066855390
2,000
262,144
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.
['a = input()\nprint("yes" if a[0]==a[2] else "no")\n', 'a,b,c = input()\nprint("yes" if a == c else "no")', 'a,b,c = input()\nprint("Yes" if a == c else "No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s048568875', 's743053841', 's118049272']
[2940.0, 2940.0, 2940.0]
[17.0, 20.0, 17.0]
[49, 48, 48]
p03631
u072717685
2,000
262,144
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.
["N = input()\n\nif N = N[::-1]:\n r = 'Yes'\nelse:\n r = 'No'\n\nprint(r)", "N = input()\n \nrN = N[::-1]\nif N = rN:\n r = 'Yes'\nelse:\n r = 'No'\n\nprint(r)", "N = input()\n\nrN = N[::-1]\nif N == rN:\n r = 'Yes'\nelse:\n r = 'No'\n \nprint(r)"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s282648214', 's996535128', 's813132166']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[67, 76, 77]
p03631
u077019541
2,000
262,144
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.
['N = [i for i in input()]\ncheck = True\nfor i in range(N):\n if N[i] != N[-i]:\n check = False\n break\nif check ==True:\n print("Yes")\nelse:\n print("No")', 'N = [i for i in input()]\ncheck = True\nif N[0] == N[-1]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s460166241', 's014206713']
[2940.0, 2940.0]
[18.0, 18.0]
[168, 94]
p03631
u086503932
2,000
262,144
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.
["N=input();print('NYoe s'[N[0]==N[2]])", "N=input();print('NYoe s'[N[0]==N[2]::2])\n"]
['Wrong Answer', 'Accepted']
['s959708637', 's807974051']
[2940.0, 2940.0]
[17.0, 17.0]
[37, 41]
p03631
u087004109
2,000
262,144
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.
['n=input()\nprint("YES" if n[0]==n[-1] else "NO")', 'n=input()\nprint("Yes" if n[0]==n[-1] else "No")']
['Wrong Answer', 'Accepted']
['s491141259', 's463399274']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 47]
p03631
u089142196
2,000
262,144
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.
['N=str(input())\n\nif int(N[-1])==int(N):\n print("Yes")\nelse:\n print("No")', 'N=input()\n\nif int(N[-1])==int(N):\n print("Yes")\nelse:\n print("No")', 'N=input()\n\nif int(N[::-1])==int(N):\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s032068399', 's035149316', 's149394593']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[73, 68, 70]
p03631
u089376182
2,000
262,144
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.
["S = input()\n\n'Yes' if S[0] == S[2] else 'No'", "S = input()\n \nprint('Yes' if S[0] == S[2] else 'No')"]
['Wrong Answer', 'Accepted']
['s197470513', 's659672496']
[2940.0, 2940.0]
[18.0, 17.0]
[44, 52]
p03631
u095756391
2,000
262,144
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.
["n = input()\n\nre_n = reversed(n)\nif n == re_n:\n print('Yes')\nelse:\n print('No')", "n = input()\n\nif n[0] == n[2]:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s551722056', 's809089137']
[2940.0, 2940.0]
[17.0, 17.0]
[80, 68]
p03631
u097026338
2,000
262,144
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.
['n=str(input().split())\nprint("Yes" if n[0]==n[2] else "No")', 'a,b,c=input()\nprint("Yes" if a==c else "No")']
['Wrong Answer', 'Accepted']
['s348525951', 's286776830']
[2940.0, 2940.0]
[17.0, 17.0]
[59, 44]
p03631
u098968285
2,000
262,144
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.
['s = input()\nif s == reversed(s):\n print("Yes")\nelse:\n print("No")\n', 's = input()\nif s == s[::-1]:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s127387759', 's923545581']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 68]
p03631
u102242691
2,000
262,144
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.
['\nn = input()\n\nif n(0) == n(-1):\n print("Yes")\nelse:\n print("No")\n', '\nn = input()\n\nif n[0] == n[-1]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s463107347', 's993367459']
[3060.0, 2940.0]
[20.0, 17.0]
[71, 71]
p03631
u111365362
2,000
262,144
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.
["n = input()\nif n[0] == n[1]:\n print('Yes')\nelse:\n print('No')", "n = input()\nif n[0] == n[2]:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s022064387', 's766023817']
[2940.0, 2940.0]
[17.0, 17.0]
[63, 63]
p03631
u112465297
2,000
262,144
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.
['import sys;sys.setrecursionlimit(int(1e7))\nfrom sys import stdin\nfrom collections import deque\n \ninput = stdin.readline\nN = int(input())\ntree = [[] for _ in range(N+1)]\nfor _ in range(N-1):\n a, b, c = map(int,input().split())\n tree[a].append((b,c))\n tree[b].append((a,c))\n \nQn,K = map(int,input().split())\nXY = [tuple(map(int,input().split())) for _ in range(Qn)]\n \ndepth = [None]*(N+1)\ndef DFS(v,p,d):\n depth[v] = d\n for e in tree[v]:\n if e[0] != p:\n DFS(e[0], v, d + e[1])\nDFS(K,0,0)\n \nfor i in range(Qn):\n print(depth[XY[i][0]] + depth[XY[i][1]])', 'def gcd(a,b):\n #a=min(a,b)\n #b=max(a,b)\n while b:\n a,b= b, a%b\n return a\n\ndef lcm(a,b):\n return a*b//gcd(a,b)\nT=[]\nN=int(input())\nfor i in range(N):\n T.append(int(input()))\n\nans=1\nfor t in T:\n ans=lcm(ans, t)\n\nprint(ans)', "S=list(map(int, input()))\n\nif S[0]==S[2]:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s676382273', 's841996518', 's238919652']
[3436.0, 3060.0, 2940.0]
[20.0, 17.0, 17.0]
[585, 248, 80]
p03631
u118019047
2,000
262,144
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.
['x=input()\ny=list(x)\nif y[0]==y[2]:\n print("yes")\nelse:\n print("No")', 'n = list(input())\nif n[0]==n[2]:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s384398070', 's890518447']
[2940.0, 2940.0]
[17.0, 17.0]
[73, 71]
p03631
u121732701
2,000
262,144
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.
['N = input().split\n \nif N == list(reversed(N)):\n print("Yes")\nelse:\n print("No")', 'N = input().split\n \nif N == list(reversed(N)):\n print("Yes")', 'N = input().split\nN1 = list(reversed(N))\nif N == N1:\n print("Yes")\nelse:\n print("No")', 'N = input()\n\nN1 = N[2]+N[1]+N[0]\nif N == N1:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s263010228', 's632094645', 's819072708', 's354080893']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[85, 63, 91, 83]
p03631
u123745130
2,000
262,144
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.
['a=input()\nprint(["No","Yes"][a[0]==a[2])', 'a=input()\nprint(["No","Yes"][a[0]==a[2]])']
['Runtime Error', 'Accepted']
['s232905184', 's627556649']
[2940.0, 2940.0]
[17.0, 17.0]
[40, 41]
p03631
u131264627
2,000
262,144
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.
["n = list(input())\nm = n.reverse()\nprint('Yes' if n == m else 'No')", "n = list(input())\nm = n.reverse()\nprint('Yes' if ''.join(n) == ''.join(m) else 'No')", "n = input()\nif n == n[::-1]:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s240494497', 's446868301', 's007310870']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[66, 84, 63]
p03631
u131405882
2,000
262,144
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.
['N = input()\nM = N[2] + N[1] + N[0]\nif N == M:\n', "N = int(input())\nM = N[2] + N[1] + N[0]\nif N == M:\n\tprint('Yes')\nelse:\n\tprint('No')", "N = input()\nM = N[2] + N[1] + N[0]\nif N == M:\n\tprint('Yes')\nelse:\n\tprint('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s226512108', 's274097874', 's514070424']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[46, 83, 78]
p03631
u131625544
2,000
262,144
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.
["N = input()\n\nhalf = N // 2\n\nif N%2 == 0:\n left_N = N[:half]\n right_N = N[half:]\nelse:\n left_N = N[:half]\n right_N = N[half+1:]\n\nfor l,r in zip(left_N, right_N[::-1]):\n if l != r:\n print('No')\n exit()\n \nprint('Yes')", "N = input()\n\nhalf = len(N) // 2\n\nif len(N)%2 == 0:\n left_N = N[:half]\n right_N = N[half:]\nelse:\n left_N = N[:half]\n right_N = N[half+1:]\n\nfor l,r in zip(left_N, right_N[::-1]):\n if l != r:\n print('No')\n exit()\n \nprint('Yes')"]
['Runtime Error', 'Accepted']
['s341304516', 's827259615']
[3060.0, 3060.0]
[17.0, 17.0]
[228, 238]
p03631
u143492911
2,000
262,144
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.
['a,b,c,d=map(int,input().split())\ns=max(b,d)-min(a,c)\ns_i=(c-a)+(d-b)\nif b<c:\n print(0)\nelse:\n print(abs(s_i-s))', 'a,b,c,d=map(int,input().split())\ns=max(b,d)-min(a,c)\ns_i=(c-a)+(d-b)\nif b<c:\n print(0)\nelse:\n print(s-s_i)', 'a,b,c,d=map(int,input().split())\nif b<c:\n print(0)\nelse:\n print(min(b,d)-max(a,c))', 'n=list(map(int,input().split))\nn_re=n.reverse()\nif n==n_re:\n print("Yes")\nelse:\n print("No")\n', 'a,b,c,d=map(int,input().split())\nprint(min(b,d)-max(a,c))\n', 'n=list(map(int,input()))\nif n[0]==n[2]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s100182006', 's457229847', 's919364138', 's944911191', 's989989552', 's454219534']
[3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 18.0]
[117, 112, 88, 99, 58, 79]
p03631
u155337518
2,000
262,144
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.
["n=input()\nif n[0]==n[-1]:\n return 'Yes'\nelse:\n return 'No'", "n=input()\nif n[0]==n[-1]:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s106408897', 's746296612']
[2940.0, 2940.0]
[17.0, 17.0]
[60, 60]
p03631
u160414758
2,000
262,144
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.
['\nclass edge():\n def __init__(self,_to,_cost):\n self.to = _to;\n self.cost = _cost;\n\nN = int(input())\ntree = [[] for i in range(N)]\n\nfor i in range(N-1):\n a,b,c = list(map(int,input().split()))\n a = a - 1\n b = b - 1\n tree[a].append(edge(b,c))\n tree[b].append(edge(a,c))\nQ,K = list(map(int,input().split()))\nK = K - 1\n\ndepth = [-1] * N\n\ndef DFS(v,p,d):\n depth[v] = d\n for e in tree[v]:\n if e.to == p:\n continue\n DFS(e.to, v, d + e.cost)\nDFS(K,-1,0)\n\nfor _ in range(Q):\n x,y = list(map(int, input().split()))\n x = x - 1\n y = y - 1\n print(depth[x] + depth[y])\n', 'class edge():\n def __init__(self,_to,_cost):\n self.to = _to;\n self.cost = _cost;\n\nN = int(input())\ntree = [[] for i in range(N)]\n\nfor i in range(N-1):\n a,b,c = list(map(int,input().split()))\n a = a - 1\n b = b - 1\n tree[a].append(edge(b,c))\n tree[b].append(edge(a,c))\nQ,K = list(map(int,input().split()))\nK = K - 1\ndmax = 10**14 + 1\ndepth = [dmax for _ in range(N+1)]\ndepth[K] = 0\n\ndef DFS(v,p,d):\n depth[v] = d\n for e in tree[v]:\n if e.to == p:\n continue\n DFS(e.to, v, d + e.cost)\nDFS(K,-1,0)\n\nfor _ in range(Q):\n x,y = list(map(int, input().split()))\n x = x - 1\n y = y - 1\n print(depth[x] + depth[y])\n', 'N = int(input())\n\nclass edge:\n def __init__(self,_to,_cost):\n self.to = _to;\n self.cost = _cost;\n\ntree = [[] for i in range(N)]\n\nfor i in range(N-1):\n a,b,c = list(map(int, input().split()))\n a = a - 1\n b = b - 1\n tree[a].append(edge(b,c))\n tree[b].append(edge(a,c))\n\nQ, K = list(map(int, input().split()))\nK = K - 1\ndepth = [0]*N\n\ndef DFS(v,p,d):\n depth[v] = d\n for e in tree[v]:\n if e.to==p :\n continue\n DFS(e.to, v, d + e.cost)\n\nDFS(K,-1,0)\n\nfor q in range(Q):\n x,y = list(map(int, input().split()))\n x = x - 1\n y = y - 1\n print(depth[x] + depth[y])\n', 'n = input()\ns = []\nfor i in range(len(n)):\n s.append(n[len(n)-1-i])\nif(n=="".join(s)):\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s263829134', 's304599220', 's352971505', 's126926495']
[3064.0, 3064.0, 3064.0, 2940.0]
[18.0, 17.0, 18.0, 17.0]
[630, 677, 628, 129]
p03631
u160659351
2,000
262,144
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.
['#70\n\nN = list(int(input()))\n\nif N[0] == N[2]:\n print("Yes")\nelse:\n print("No")', '#70\n\nN = list(input())\n\nif N[0] == N[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s454035023', 's911630833']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 79]
p03631
u163703551
2,000
262,144
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.
["import sys\n\n\n\n\n\ndef read_int_list():\n return list(map(int, input().split()))\n\n\ndef read_str_list():\n return input().split()\n\n\ndef read_int():\n return int(input())\n\n\ndef read_str():\n return input()\n\n\ndef main():\n inf = 10 ** 20\n n = read_int()\n adj = [[] for u in range(n)]\n for i in range(n - 1):\n a, b, c = map(int, input().split())\n a -= 1\n b -= 1\n adj[a].append((b, c))\n adj[b].append((a, c))\n\n q, k = read_int_list()\n k -= 1\n d = [inf for u in range(n)]\n\n d[k] = 0\n Q = [(k, -1)]\n while Q:\n u, parent = Q.pop(0)\n for v, w in adj[u]:\n if v == parent:\n continue\n d[v] = d[u] + w\n Q.extend([(v, u) for v, w in adj[u] if v != parent])\n\n res = [0] * q\n for i in range(q):\n x, y = map(int, input().split())\n res[i] = d[x-1] + d[y-1]\n print(*res, sep='\\n')\n\n\nmain()\n", "import sys\n\n\n\n\ndef read_int_list():\n return list(map(int, input().split()))\n\n\ndef read_str_list():\n return input().split()\n\n\ndef read_int():\n return int(input())\n\n\ndef read_str():\n return input()\n\n\ndef main():\n n = read_int_list()\n if reversed(n) == n:\n res = 'Yes'\n else:\n res = 'No'\n print(res)\n\n\nmain()\n", "import sys\n\n\n\n\ndef read_int_list():\n return list(map(int, input().split()))\n\n\ndef read_str_list():\n return input().split()\n\n\ndef read_int():\n return int(input())\n\n\ndef read_str():\n return input()\n\n\ndef main():\n n = read_str()\n if n == ''.join(list(reversed(n))):\n res = 'Yes'\n else:\n res = 'No'\n print(res)\n\n\nmain()\n"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s370014101', 's505823825', 's812565792']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[948, 371, 381]
p03631
u163874353
2,000
262,144
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.
['l = int(input())\nif l[0] == l[2]:\n print("Yes")\nelse:\n print("No")', 'l = int(input())\nif l[0] = l[2]:\n print("Yes")\nelse:\n print("No")\n \n ', 'l = str(input())\nif l[0] == l[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s238217925', 's705651691', 's619751396']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[72, 81, 72]
p03631
u167908302
2,000
262,144
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.
['#coding:utf-8\n\na, b, c, d = map(int, input().split())\n\nprint(min(a,c)- max(b,d))\n', '#coding:utf-8\n\na, b, c, d = map(int, input().split())\ntime = max(b,d) - min(a,c)\nprint(max(0, time))\n', '#coding:utf-8\n\na, b, c, d = map(int, input().split())\n\nprint(max(b,d) - min(a,c))\n', "#coding:utf-8\n\nn = list(input())\n\nif n[0] == n[2]:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s217344268', 's427248869', 's795012306', 's999432220']
[3068.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[81, 101, 82, 85]
p03631
u170324846
2,000
262,144
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.
['n=inupt()\nif n==n[::-1]:\n print("Yes")\nelse:\n print("No")', 'n=input()\nif n==n[::-1]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s431636059', 's546738161']
[2940.0, 2940.0]
[18.0, 17.0]
[59, 60]
p03631
u174273188
2,000
262,144
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.
['def resolve():\n n = input()\n print("Yes" if reversed(n) == n else "No")\n\n\nif __name__ == "__main__":\n resolve()\n', 'def resolve():\n n = input()\n print("Yes" if n[::-1] == n else "No")\n\n\nif __name__ == "__main__":\n resolve()\n']
['Wrong Answer', 'Accepted']
['s054000810', 's745133963']
[2940.0, 2940.0]
[17.0, 17.0]
[121, 117]
p03631
u174404613
2,000
262,144
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.
['l=list(map(int,input().split()))\nans=min(l[1],l[3])-max(l[0],l[2])\nprint(ans if ans>0 else 0)', 'i=input()\nprint("Yes" if i[0]==i[2] else "No")']
['Runtime Error', 'Accepted']
['s040745461', 's886664329']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 46]
p03631
u175743386
2,000
262,144
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.
["N = list(map(int, input()))\nx = 0\nfor i in range(N // 2):\n if N[i] != N[-i]:\n print('No')\n x = 1\n break\nif x == 0:\n prin('Yes')\n", "N = list(map(int, input()))\nx = 0\nfor i in range(N // 2):\n if N[i] != N[-i]:\n print('No')\n x = 1\n break\nif x == 0:\n print('Yes')", "N = list(map(int, input()))\nx = 0\nfor i in range(len(N) // 2):\n if N[i] != N[-i-1]:\n print('No')\n x = 1\n break\nif x == 0:\n print('Yes')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s332348288', 's690596571', 's272989020']
[2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[139, 139, 146]
p03631
u178509296
2,000
262,144
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.
['A,B,C,D = map(int, input().split())\nif D<A or B<C: print("0")\nelse if D-A < B-C: print(D-A)\nelse: print(B-C)', 'N = input()\nif N[0] == N[2]: print(Yes)', 'A,B,C,D = map(int, input().split())\nif D<A or B<C: print("0")\nelif A<C and D<B: print(D-C)\nelif C<A and B<D: print(B-A)\nelif D-A < B-C: print(D-A)\nelse: print(B-C)', 'N = input()\nif N[0] == N[2]: print("Yes")\nelse: print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s256436111', 's352234721', 's664928445', 's347065740']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[108, 39, 163, 59]
p03631
u179066965
2,000
262,144
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.
['n = input()\na = int(int(n)/100);\nc = int(n)%10;\nif a == c:\n print("YES")\nelse :\n print("NO")', 'n = input()\na = int(int(n)/100);\nc = int(n)%10;\nif a == c:\n print("Yes")\nelse :\n print("No")']
['Wrong Answer', 'Accepted']
['s559818092', 's464474976']
[3060.0, 2940.0]
[20.0, 18.0]
[98, 98]
p03631
u182047166
2,000
262,144
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.
['import sys\n\n\ndef input():\n return sys.stdin.readline()[:-1]\n\n# N = int(input())\n# A = [int(x) for x in input().split()]\n# a, b, c = map(int, input().split())\n# name1 = str(input())\n# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}\n\n\na = str(input())\nif a[0]=a[-1]:\n print("Yes")\nelse:\n print("No")', 'import sys\n\n\ndef input():\n return sys.stdin.readline()[:-1]\n\n# N = int(input())\n# A = [int(x) for x in input().split()]\n# a, b, c = map(int, input().split())\n# name1 = str(input())\n# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}\n\n\na = str(input())\nif a[0] == a[-1]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s133099060', 's688356705']
[2940.0, 2940.0]
[17.0, 17.0]
[306, 310]
p03631
u182601079
2,000
262,144
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.
['A,B,C,D = map(int,input().split())\n\nif (B < C or D < A):\n print("0")\nelse:\n print(abs(max(A,C)-min(B,D)))', 'N = input()\nif N[0] == N[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s887367261', 's231559537']
[2940.0, 2940.0]
[18.0, 17.0]
[111, 67]
p03631
u182765930
2,000
262,144
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.
["n = int(inout())\nif n//100 == n%10:\n print('YES')\nelse:\n print('NO')", "n = str(input())\nrn = ''.join(list(reversed(list(n))))\nprint('yes' if n == rn else 'no')", "n = str(input())\nrn = ''.join(reversed(list(n)))\nprint('Yes' if n == rn else 'No')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s336354732', 's657968401', 's260141373']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[70, 88, 82]
p03631
u185806788
2,000
262,144
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.
['N=list(int(input()))\nif N[0]==N[2]:\n print("Yes")\nelse:\n print("No")', 'N=list(input())\nif N[0]==N[2]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s011250403', 's076935817']
[9108.0, 9048.0]
[26.0, 27.0]
[70, 66]
p03631
u189806337
2,000
262,144
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.
["n = int(input())\nif n[0] == n[2]:\n\tprint('Yes')\nelse:\n\tprint('No')", "n = input()\nif n[0] == n[2]:\n\tprint('Yes')\nelse:\n\tprint('No')"]
['Runtime Error', 'Accepted']
['s772743090', 's310646934']
[9160.0, 9028.0]
[20.0, 28.0]
[66, 61]
p03631
u190385778
2,000
262,144
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.
['n = list(int,input())\nm = n.sort(reverse=True)\nif n == m:\n print("Yes")\nelse:\n print("No")', 'n = list(input())\nif n[0] ==n[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s439897051', 's247133492']
[8992.0, 8740.0]
[24.0, 26.0]
[96, 72]
p03631
u194894739
2,000
262,144
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.
['N = input()\nif N[0] == N[1]:\n print("Yes")\nelse:\n print("No")\n', 'N = input()\nif N[0] == N[2]:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s492370235', 's021185543']
[2940.0, 2940.0]
[17.0, 17.0]
[68, 68]
p03631
u197697186
2,000
262,144
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.
['a, b, c, d = map(int, input().split())\n\n\none = [i for i in range(a, b)]\ntwo = [i for i in range(c, d)]\n\ncount = 0\nfor i in one:\n if i in two:\n count += 1\nprint(count)', "n = input()\n\na = [i for i in n]\nb = [i for i in reversed(n)]\n\nif a == b:\n print('Yes')\nelse:\n print('No')\n\n"]
['Runtime Error', 'Accepted']
['s779560546', 's233505713']
[3060.0, 3060.0]
[17.0, 18.0]
[176, 113]
p03631
u202570162
2,000
262,144
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.
["n = list(input())\nif n == reversed(n):\n print('Yes')\nelse:\n print('No')", "n = list(input())\nif n == list(reversed(n)):\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s178965992', 's376143534']
[2940.0, 2940.0]
[17.0, 17.0]
[77, 83]
p03631
u209594105
2,000
262,144
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.
['def gcd(a, b):\n while b:\n a, b = b, a % b\n return a\n\ndef lcm(a,b):\n return a*b // gcd(a,b)\n\nn = int(input())\nt_list = []\nfor x in range(n):\n t_list.append(int(input()))\nresult = 1\nfor t in t_list:\n result = lcm(result,t)\nprint(result)', 'str = input()\nprint(str == str[-1::-1])', 'str = input()\nprint("Yes" if str == str[-1::-1] else "No")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s028154692', 's691248133', 's372708267']
[3060.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0]
[256, 39, 58]
p03631
u214936751
2,000
262,144
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.
['a, b, c = input()\nif a == c:\n print("yes")\nelse:\n print("No")\n\n', 'a, b, c = map(int, input().split())\nif a == c: print("yes")\nelse: print("No")\n\n', 'a, b, c = input()\nif a == c:\n print("Yes")\nelse:\n print("No")\n\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s713287488', 's798093170', 's531993429']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[69, 79, 69]
p03631
u221345507
2,000
262,144
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.
["N=(input())\nif N[0]==N[2]:\n print ('YES')\nelse:\n print ('NO')", "N=(input())\nif N[0]==N[2]:\n print ('Yes')\nelse:\n print ('No')"]
['Wrong Answer', 'Accepted']
['s718469476', 's726196724']
[2940.0, 2940.0]
[17.0, 17.0]
[67, 67]
p03631
u226108478
2,000
262,144
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.
["# -*- coding: utf-8 -*-\n\n\ndef main():\n from collections import defaultdict\n from collections import deque\n\n n = int(input())\n graph = [defaultdict(int) for _ in range(n)]\n visited = [False for _ in range(n)]\n dist = [float('inf') for _ in range(n)]\n\n for i in range(n - 1):\n ai, bi, ci = map(int, input().split())\n ai -= 1\n bi -= 1\n graph[ai][bi] = ci\n graph[bi][ai] = ci\n\n q, k = map(int, input().split())\n k -= 1\n dist[k] = 0\n d = deque()\n d.append(k)\n\n while d:\n di = d.popleft()\n visited[di] = True\n\n for bi, ci in graph[di].items():\n if visited[bi]:\n continue\n\n dist[bi] = dist[di] + ci\n d.append(bi)\n\n ans = [0 for _ in range(q)]\n\n for j in range(q):\n xi, yi = map(int, input().split())\n xi -= 1\n yi -= 1\n ans[j] = dist[xi] + dist[yi]\n\n print('\\n'.join(map(str, ans)))\n\n\nif __name__ == '__main__':\n main()\n", "# -*- coding: utf-8 -*-\n\n\n\n\nif __name__ == '__main__':\n number = input()\n\n if number[0] == number[2]:\n print('Yes')\n else:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s036092443', 's317767591']
[3692.0, 3064.0]
[21.0, 18.0]
[995, 196]
p03631
u226779434
2,000
262,144
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.
['a=str(input())\naa =sorted(a,reverse =True)\nprint("Yes" if a==aa else "No")', 'a=str(input())\naa =a[-1::-1]\nprint("Yes" if a==aa else "No")']
['Wrong Answer', 'Accepted']
['s937412729', 's821565345']
[9032.0, 8976.0]
[29.0, 27.0]
[74, 60]
p03631
u237316771
2,000
262,144
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.
['#!/usr/bin/env python3\nimport sys\n\n\nYES = "Yes" # type: str\nNO = "No" # type: str\n\n\ndef solve(N: int):\n s = str(N)\n print(s[0] == s[2])\n\n\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n solve(N)\n\n\nif __name__ == \'__main__\':\n main()\n', '#!/usr/bin/env python3\nimport sys\n\n\nYES = "Yes" # type: str\nNO = "No" # type: str\n\n\ndef solve(N: int):\n s = str(N)\n print(YES if s[0] == s[2] else NO)\n\n\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n solve(N)\n\n\nif __name__ == \'__main__\':\n main()\n']
['Wrong Answer', 'Accepted']
['s765904636', 's703034363']
[2940.0, 3060.0]
[18.0, 17.0]
[402, 417]
p03631
u243492642
2,000
262,144
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.
['# coding: utf-8\ndef II(): return int(input())\ndef ILI(): return list(map(int, input().split()))\n\n\ndef read():\n N = II()\n return (N, )\n\n\ndef solve(N):\n n = str(N)\n if n == reversed(n):\n ans = "Yes"\n else:\n ans = "No"\n return ans\n\n\ndef main():\n params = read()\n print(solve(*params))\n\n\nif __name__ == "__main__":\n main()\n', '# coding: utf-8\ndef II(): return int(input())\ndef ILI(): return list(map(int, input().split()))\n\n\ndef read():\n N = input()\n return (N, )\n\n\ndef solve(N):\n rev = str(int("".join(reversed(N))))\n if N == rev:\n ans = "Yes"\n else:\n ans = "No"\n return ans\n\n\ndef main():\n params = read()\n print(solve(*params))\n\n\nif __name__ == "__main__":\n main()\n']
['Wrong Answer', 'Accepted']
['s849558274', 's667025620']
[3316.0, 3316.0]
[20.0, 21.0]
[360, 381]
p03631
u246572032
2,000
262,144
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.
["n = input()\nprint('YES' if n[0]==n[-1] else 'NO')", "n = input()\nprint('YES' if n==::n else 'NO')", "n = input().range(3)\nprint('Yes' if n[0]==n[2] else 'No')", "n = input()\nprint('Yes' if n[0]==n[2] else 'No')"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s158748123', 's859552034', 's866290699', 's714074062']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[49, 44, 57, 48]
p03631
u246639932
2,000
262,144
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.
['N = int(input())\nprint("YES" if N[0]==N[-1] else "NO")', 'N = input()\nprint("YES" if N[0]==N[-1] else "NO")', 'N = input()\nprint("Yes" if N[0]==N[-1] else "No")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s252730036', 's822494827', 's932919285']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[54, 49, 49]
p03631
u254871849
2,000
262,144
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.
["from sys import stdin\n\nn = stdin.readline().rstrip()\nprint('Yes' if n == reversed(n) else 'No')", "import sys\n\nn = sys.stdin.readline().rstrip()\n\ndef main():\n ans = 'Yes' if n == n[::-1] else 'No'\n print(ans)\n\nif __name__ == '__main__':\n main()"]
['Wrong Answer', 'Accepted']
['s510945819', 's148843352']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 155]
p03631
u256464928
2,000
262,144
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.
['n = input()\nprint("Yes" if n==n[::-] else "No")', 'n = input()\nprint("Yes" if n==n[::-1] else "No")\n']
['Runtime Error', 'Accepted']
['s363591567', 's597565697']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 49]
p03631
u263691873
2,000
262,144
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.
['N = int(input())\nprint("Yes" if N[0]==N[2] else "No")', 'N = input()\nprint("Yes" if N[0]==N[2] else "No")']
['Runtime Error', 'Accepted']
['s990771419', 's070427490']
[2940.0, 2940.0]
[17.0, 17.0]
[53, 48]
p03631
u264265458
2,000
262,144
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.
['print("Yes" if input()[0]==input()[2] else "No")', 'a=input()\nprint("Yes" if a[0]==a[2] else "No")']
['Runtime Error', 'Accepted']
['s653782927', 's115789995']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 46]
p03631
u266874640
2,000
262,144
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.
['A,B,C,D = map(int,input().split())\nif B <= C:\n print(0)\nelif C < B <= D:\n print(B - C)\nelif C < D <= B:\n print(D - C)\nelif D <= A:\n print(0)', 'N = input()\nlist = []\nfor i in N:\n list.append(i)\nlist.reverse()\nnew = \'\'.join(list)\nif new == N:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s698130146', 's258963051']
[2940.0, 2940.0]
[17.0, 17.0]
[152, 140]
p03631
u268210555
2,000
262,144
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.
['a,_b=input()\nif a==b:\n print("YES")\nelse:\n print("No")', 'a,_,b=input()\nif a==b:\n print("YES")\nelse:\n print("No")', 'a,_b=input()\nif a==b:\n print("YES")\nelse:\n print("No")', 'a,_,b=input()\nif a==b:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s291678496', 's553873799', 's759915466', 's415330595']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[56, 57, 56, 57]
p03631
u273038590
2,000
262,144
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.
['a,b,c,d = map(int,input().split())\nif b<c or d<a:\n print(0)\nelif a<=c<d<=b:\n print(d-c)\nelif c<a<b<d:\n print(b-a)\nelse:\n print(b-c)', 'a,b,c,d = map(int,input().split())\nif b<c or d<a:\n print("0")\nelif a<c<d<b:\n print(d-c)\nelif c<a<b<d:\n print(b-a)\nelse:\n print(b-c)', 'a,b,c=input()\nprint("Yes" if a==c else "No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s265442363', 's443048952', 's832385067']
[3060.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[143, 143, 44]
p03631
u275861030
2,000
262,144
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.
["N = input()\nif N = N[::-1]:\n print('Yes')\nelse:\n print('No')", "N = input()\nif N == N[::-1]:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s524442108', 's649524014']
[2940.0, 3064.0]
[17.0, 18.0]
[62, 64]
p03631
u280552586
2,000
262,144
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.
["n = int(input())\nprint('Yes' if n[0] == n[2] else 'No')", 'n = int(input())\nprint("Yes" if n[0]== n[2] else \'No\' )', 'n=input()\nprint("Yes" if n[0]==n[2] else "No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s249874203', 's867487614', 's411267594']
[2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0]
[55, 55, 46]
p03631
u284999381
2,000
262,144
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.
["a,b,c = int(input())\nprint('Yes' if a == c else 'No')", "a,b,c = input()\nprint('Yes' if a == c else 'No')"]
['Runtime Error', 'Accepted']
['s467245111', 's365918761']
[2940.0, 2940.0]
[17.0, 18.0]
[53, 48]
p03631
u285022453
2,000
262,144
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.
["A = input()\n\nif A == A[:-1]:\n print('Yes')\nelse:\n print('No')", "A = input()\n\nif A == A[::-1]:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s213179966', 's908509390']
[2940.0, 2940.0]
[17.0, 17.0]
[67, 68]
p03631
u301823349
2,000
262,144
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.
['N = input()\nif N[0] == N[2]:\n print("yes")\nelse:\n print("no")', 'N = int(input())\nT = []\nfor _ in range(N):\n T.append(int(input()))\n\ndef gcd(a, b):\n\twhile b:\n\t\ta, b = b, a % b\n\treturn a\n \ndef lcm(a, b):\n\treturn a * b // gcd (a, b)\n\nresult = lcm(T[0],T[1])\n\nfor x in range(2,N):\n result = lcm(result, T[x])\n\nprint(result)\n \n', 'N = input()\nif N[0] == N[2]:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s655565449', 's959011785', 's382177675']
[2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[67, 270, 67]
p03631
u310381103
2,000
262,144
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.
['a=input()\nb=""\nfor i in range(a,0,-1):\n b+=a[i]\nif a==b:\n print("Yes")\nelse:\n print("No")', 'a=input()\nb=""\nfor i in range(len(a),0,-1):\n b+=a[i]\nif a==b:\n print("Yes")\nelse:\n print("No")', 'a=input()\nb=""\nfor i in range(1,len(a)+1):\n b+=a[-i]\nif a==b:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s185379094', 's462570826', 's545362523']
[8988.0, 9076.0, 8840.0]
[23.0, 26.0, 25.0]
[92, 97, 97]
p03631
u319612498
2,000
262,144
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.
['n=input()\nif n[0]==n[2[]:\n print("Yes")\nelse:\n print("No")', 'n=input()\nif n[0]==n[2]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s626636018', 's630744439']
[2940.0, 2940.0]
[17.0, 17.0]
[64, 64]
p03631
u319984556
2,000
262,144
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.
["s = input()\na = len(s)\nfor i in s:\n if s[i] == s[a - 1 -i] :\n b = 1\n else:\n b = 0\n break\n\n\nif b == 1:\n print('Yes')\nelse:\n print('No')\n\n", "s = input()\na = len(s)\ni = 0\nfor i in range(a):\n if s[i] == s[a - 1 - i]:\n b = 1\n else:\n b = 0\n break\n\n\nif b == 1:\n print('Yes')\nelse:\n print('No')\n\n"]
['Runtime Error', 'Accepted']
['s203728425', 's884415070']
[2940.0, 2940.0]
[17.0, 17.0]
[169, 182]
p03631
u320763652
2,000
262,144
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.
['N = int(input())\n\nif N[0] == N[2]:\n print("Yes")\nelse:\n print("No")', 'N = input()\n\nif N[0] == N[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s255908267', 's992756224']
[2940.0, 2940.0]
[17.0, 17.0]
[73, 68]
p03631
u324549724
2,000
262,144
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.
["if (n = input().split())[0] == n[2] : print('Yes')\nelse : print('No')\n", "n = input()\nif n[0] == n[2] : print('Yes')\nelse : print('No')\n"]
['Runtime Error', 'Accepted']
['s316371286', 's030812219']
[2940.0, 2940.0]
[17.0, 17.0]
[70, 62]
p03631
u329049771
2,000
262,144
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.
["a,b,c=input()\nif a == c: print('Yes') else: print('No')", "a,b,c=input()\nif a == c:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s738680799', 's306295689']
[2940.0, 2940.0]
[17.0, 17.0]
[55, 59]
p03631
u330176731
2,000
262,144
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.
["n = int(input().split())\nif n[0]==n[2]: print('Yes')\nelse: print('No')", "n = list(map(int,input()))\nif n[0]==n[2]: print('Yes')\nelse: print('No')"]
['Runtime Error', 'Accepted']
['s363330802', 's979972810']
[2940.0, 2940.0]
[17.0, 17.0]
[70, 72]
p03631
u331464808
2,000
262,144
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.
['a = list(int.input().split())\nif a[0]=a[-1]:\n print("YES")\nelse:\n print("NO")', 'a=int(input())\nif a[0]==c[2]:\n print("Yes")\nelse:\n print("No")', 'a=int(input().split())\nif a[0]==c[2]:\n print("Yes")\nelse:\n print("No")', 'a = list(int,input().split())\nif a[0]=a[-1]:\n print("YES")\nelse:\n print("NO")', 'a,b,c = list(int,input().split())\nif a==c:\n print("YES")\nelse:\n print("NO")', 'a,b,c = list(int,input().split())\nif a==c:\n print("Yes")\nelse:\n print("No")', 'a=input()\nif a[0]==c[2]:\n print("Yes")\nelse:\n print("No")', 'a = map(int.input().split())\nif a[0]=a[-1]:\n print("YES")\nelse:\n print("NO")', 'a = int(input().split())\nif a[0]=a[-1]:\n print("YES")\nelse:\n print("NO")', 'a=input()\nif a[0]==a[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s116309637', 's130892852', 's241878687', 's451371802', 's658339619', 's732633248', 's809534309', 's811435804', 's994674821', 's286878986']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[79, 64, 72, 79, 77, 77, 59, 78, 74, 59]
p03631
u333139319
2,000
262,144
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.
['n=list(input())\nif n==n[::-1]:\n print("YES")\nelse:\n print("NO")\n', 'n=list(input())\nif n==n[::-1]:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s212273230', 's933297341']
[2940.0, 2940.0]
[17.0, 17.0]
[70, 70]
p03631
u333339520
2,000
262,144
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.
["N = input( )\n\nN_100 = N // 100\nN = N - 100 * N_100\nN_10 = N // 10\nN = N - 10 * N_10\nN_1 = N\n\nif N_100 == N_1:\n print ('Yes')\nelse :\n print ('No')", "N = int (input( ))\n\nN_100 = N // 100\nN = N - 100 * N_100\nN_10 = N // 10\nN = N - 10 * N_10\nN_1 = N\n\nif N_100 == N_1:\n print ('Yes')\nelse :\n print ('No')\n"]
['Runtime Error', 'Accepted']
['s679624457', 's667556755']
[2940.0, 2940.0]
[17.0, 17.0]
[152, 159]
p03631
u339922532
2,000
262,144
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.
['n = input()\n\nprint("".join(list(reversed(n))))', 'n = input()\n\nprint("Yes" if n == "".join(list(reversed(n))) else "No")']
['Wrong Answer', 'Accepted']
['s003658029', 's477526055']
[2940.0, 2940.0]
[19.0, 17.0]
[46, 70]
p03631
u343490140
2,000
262,144
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.
['n = str(input())\nif n == n[::-1]:\n print("Yes")\nelse("No")', 'n = input()\nif n == n[::-1]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s600374050', 's704737393']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 68]
p03631
u350093546
2,000
262,144
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.
["n=input()\nif n(0)==n(2):\n print('Yes')\nelse:\n print('No')", "n=input()\nif n[0]==n[2]:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s545016042', 's711551348']
[2940.0, 2940.0]
[17.0, 17.0]
[59, 60]
p03631
u350997995
2,000
262,144
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.
['n = list(input().split())\nif n[0]==n[2]:\n print("Yes")\nelse:\n print("No")', 'n = list(input())\nif n[0]==n[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s758144809', 's137218956']
[2940.0, 2940.0]
[17.0, 17.0]
[79, 71]
p03631
u357751375
2,000
262,144
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.
["n = int(input())\nm = n // 100\nif m == n[-1]:\n print('Yes')\nelse:\n print('No')", "n = int(input())\ni = str(n)\nm = n // 100\nif str(m) == i[-1]:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s172623414', 's596814316']
[2940.0, 2940.0]
[17.0, 17.0]
[83, 99]
p03631
u364386647
2,000
262,144
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.
['N = int(input())\nT = [int(input()) for i in range(N)]\n\nimport fractions\ndef lcm(a, b):\n if gcd != 0:\n return (a * b) // gcd\n else:\n return 0\n\ngcd = 1\nx = 0\n\nfor i in range(N):\n for j in range(N):\n gcd = int(fractions.gcd(T[i] , T[j]))\n x = max(lcm(T[i], T[j]), x)\n\nprint(x)\n', 'N = str(input())\n\nA = N[::-1]\nif N == A:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s199840284', 's481477904']
[3060.0, 2940.0]
[18.0, 17.0]
[311, 80]
p03631
u366959492
2,000
262,144
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.
['a,b,c,d=(int(x) for x in input().split())\n\nif b<=c or d<=a:\n print(0)\nelse:\n print(min(b,d)-max(a,c))\n', 'n=str(input())\n\nif n[0]=n[2]:\n print("Yes")\nelse:\n print("No")\n', 'n=str(input())\n\nif n[0]==n[2]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s274678377', 's380518118', 's142092990']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[108, 69, 70]
p03631
u367130284
2,000
262,144
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.
['from collections import *\nfrom heapq import*\nimport sys\ninput=lambda:sys.stdin.readline()\n\nd=defaultdict(list)\nn=int(input())\n\nfor s in range(n-1):\n a,b,c=map(int,input().split())\n d[a].append([b,c])\n d[b].append([a,c])\n#defaultdict(<class \'list\'>, {1: [[2, 1], [3, 1]], 2: [[1, 1], [3, 3]], 3: [[1, 1], [2, 3]]})\n\ndef DIJKSTRA(point,d):\n cost = {node:float("inf") for node in d.keys()}\n Q = [] \n cost[point]=0 \n heappush(Q,(point,cost[point]))\n while Q:\n prefnd,tmpC=heappop(Q)\n if cost[prefnd]<tmpC:\n continue\n for node,c in d[prefnd]:\n altC=c+tmpC\n if cost[node]>altC:\n cost[node]=altC\n heappush(Q,(node,altC))\n return cost\n\nq,k=map(int,input().split())\ny=DIJKSTRA(k,d)\n\nfor i in range(q):\n a,b=map(int,input().split())\n print(y[a]+y[b])', 'n=list(input())\ns=[1 for i in range(len(n)//2) if n[i]==n[len(n)-i-1]]\nprint("Yes" if len(s)==len(n)//2 else "No")']
['Runtime Error', 'Accepted']
['s777423792', 's829088462']
[3316.0, 2940.0]
[21.0, 17.0]
[949, 114]
p03631
u367393577
2,000
262,144
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.
['# coding: utf-8\n# Here your code !\nimport sys\na=input()\nif a==a[::-1]:\n print("YES")\nelse:\n print("NO")\n', '# coding: utf-8\n# Here your code !\nimport sys\na=input()\nif a==a[::-1]:\n print("YES")\nelse:\n print("NO")\n', '# coding: utf-8\n# Here your code !\nimport sys\na=input()\nif a==a[::-1]:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s100917695', 's337703067', 's144466679']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[110, 110, 110]
p03631
u371467115
2,000
262,144
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.
['print(["No","Yes"][input()==input()[::-1]])', 'N=int(input())\nif N==N[::-1]:\n print("Yes")\nelse:\n print("No")', "a=input()\nprint('Yes' if a[0:]==a[-1:] else 'No')", "a=input()\nprint('Yes' if a[0:]==a[-1::-1] else 'No')\n"]
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s577957128', 's618936073', 's664385612', 's878954469']
[2940.0, 3064.0, 2940.0, 2940.0]
[18.0, 17.0, 18.0, 18.0]
[43, 68, 49, 53]
p03631
u374146618
2,000
262,144
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.
['n = int(input())\nif n[::-1]==n:\n print("Yes")\nelse:\n print("No")', 'n = input()\nif n[::-1]==n:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s520641247', 's421971579']
[2940.0, 2940.0]
[17.0, 17.0]
[70, 65]
p03631
u374802266
2,000
262,144
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.
["if input()[0]==input()[2]:\n print('Yes')\nelse:\n print('No')", "a=input()\nif a[0]==a[2]:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s862540788', 's837684572']
[2940.0, 2940.0]
[17.0, 17.0]
[65, 64]
p03631
u380534719
2,000
262,144
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.
["n=input()\nif n[0]==n[2]:\n print('Yes')\nprint('No')", "n=input()\nif n[0]==n[2]:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s811342435', 's266960286']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 60]
p03631
u383450070
2,000
262,144
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.
['num = int(input())\nlst = []\nwhile num > 0:\n lst.append(num%10)\n num //= 10\nlst2 = lst.reverse()\nif lst == lst2:\n print("Yes")\nelse:\n print("No")', 'num = int(input())\nlst = []\nlst2 = []\nwhile num > 0:\n lst.append(num%10)\n lst2.append(num%10)\n num //= 10\nlst2.reverse()\nif lst == lst2:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s292203268', 's157081871']
[2940.0, 3064.0]
[17.0, 17.0]
[152, 180]
p03631
u385244248
2,000
262,144
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.
['N = input()\nNN = list(N)\nchecker = ""\nfor i in range(len(NN)):\n checker += NN[-1]\nif N == checker:\n print("Yes")\nelse:\n print("No")', 'A,B,C,D = map(int,input().split())\nif C >= B or D <= A:\n print(0)\nelif A <= C <= D <= B:\n print(D-C)\nelif C <= A <= B <= D:\n print(B-A)\nelif C <= B:\n print(B-C)\nelse:\n print(D-A)\n', 'N = input()\nNN = list(N)\nchecker = ""\nfor i in range(len(NN)):\n checker += NN[-i-1]\nif N == checker:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s763823240', 's823352738', 's169732047']
[2940.0, 3064.0, 2940.0]
[18.0, 17.0, 17.0]
[140, 194, 142]
p03631
u390762426
2,000
262,144
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.
['N=input()\nif N[0]==N[2]:\n print("YES")\nelse:\n print("NO")', 'N=input()\n\nif N[0]==N[-1]:\n print("YES")\nelse:\n print("NO")', 'N=input()\nif N[0]==N[2]:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s069340058', 's779612717', 's848975364']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[59, 61, 59]
p03631
u391340825
2,000
262,144
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.
['\n\n\n\n\n\ndef main():\n\tn = int(input())\n\tc1 = n % 10\n\tc2 = n // 10 % 10\n\tc3 = n // 100\n\tif c1 == c3:\n\t\tprint("Yes")\n\telse:\n\t\tprint("No")\n\tprint(c1, c2, c3)\n\n\n\n\n\nif __name__ == "__main__":\n\tmain()', '\n\n\n\n\n\ndef main():\n\tn = int(input())\n\tc1 = n % 10\n\tc2 = n / 10 % 10\n\tc3 = n / 100\n\tif c1 == c3:\n\t\tprint("Yes")\n\telse:\n\t\tprint("No")\n\n\n\n\n\n\nif __name__ == "__main__":\n\tmain()', '\n\n\n\n\n\ndef main():\n\tn = int(input())\n\tc1 = n % 10\n\tc2 = n // 10 % 10\n\tc3 = n // 100\n\tif c1 == c3:\n\t\tprint("Yes")\n\telse:\n\t\tprint("No")\n\n\n\n\n\nif __name__ == "__main__":\n\tmain()']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s090131474', 's334307671', 's132738619']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[191, 171, 172]
p03631
u391533749
2,000
262,144
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.
['n = input()\na1 = n%10\na2 = (n-a1)%100\na3 = (n-a1-a2)/100\nif a1==a2:\n print("Hello World")', 'n = input()\na1 = n%10\na2 = (n-a1)%100\na3 = (n-a1-a2)/100\nif a1==a3:\n print("Hello World")', 'n=int(input())\na1 = n % 10\na2 = (n - a1) % 100\na3 = (n - a1 - a2) / 100\nif a1 == a3:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s071933098', 's481306408', 's830645982']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[92, 92, 123]
p03631
u392361133
2,000
262,144
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.
['a = input()\nprint("Yes" if a == a.reverse() else "No")', 'a = input()\nprint("Yes" if a == a[::-1] else "No")\n']
['Runtime Error', 'Accepted']
['s117638047', 's251101585']
[2940.0, 2940.0]
[17.0, 17.0]
[54, 51]
p03631
u395202850
2,000
262,144
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.
['s = input()\nprint("Yes" if s[::-1]=s else "No")', 's = input()\nprint("Yes" if s[::-1]==s else "No")']
['Runtime Error', 'Accepted']
['s587239687', 's194776001']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 48]
p03631
u402467563
2,000
262,144
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.
["N = map(str, input())\nif N[0]==N[2]:\n print('Yes')\nelse:\n print('No')", "N = str(input())\nif N[0]==N[2]:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s715538304', 's119097273']
[2940.0, 2940.0]
[17.0, 17.0]
[71, 66]
p03631
u403301154
2,000
262,144
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.
['n = int(input())\nt = [int(input()) for i in range(n)]\n\ndef gcd(a, b):\n if a<b:\n a, b = b, a\n if b==0:\n return a\n return gcd(b, a%b)\n\ndef lcm(a, b):\n g = gcd(a, b)\n return a*b//g\n\nans = 1\nfor i in range(n):\n ans = lcm(ans, t[i])\nprint(ans)', 'n = input()\nif n[0]==n[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s963981476', 's946227325']
[3064.0, 2940.0]
[17.0, 17.0]
[250, 61]
p03631
u403984573
2,000
262,144
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.
['N=input()\nif N(0)==N(2):\n print("Yes")\nelse:\n print("No")', 'N=input()\nif N[0]==N[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s137658478', 's552301862']
[2940.0, 3064.0]
[17.0, 18.0]
[59, 59]
p03631
u407016024
2,000
262,144
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.
["N = list(input())\nif N == N[::-1]:print('YES') \nelse: print('NO')", "N = list(input())\nif N == N[::-1]:print('Yes') \nelse: print('No')"]
['Wrong Answer', 'Accepted']
['s501533879', 's509372431']
[2940.0, 2940.0]
[18.0, 17.0]
[65, 65]
p03631
u409483795
2,000
262,144
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.
["sec = input().split(' ')\n\n\n#print(sec[0],sec[1],sec[2],sec[3])\n\nstart = max(sec[0],sec[2])\n\n\nend = min(sec[1],sec[3])\n\nkekka =(int(end) - int(start))\nif kekka < 1:\n\tkekka = 0\n\tprint(kekka)\nelse:\n\tprint(kekka)", "kaibun = input()\nprint(kaibun)\nprint(kaibun[::-1])\nif kaibun == kaibun[::-1]:\n\tprint('Yes')\nelse:\n\tprint('No')", "# coding: utf-8\nkaibun = str(input())\nprint(kaibun)\nprint(kaibun[::-1])\nif kaibun == kaibun[::-1]:\n\tprint('Yes')\nelse:\n\tprint('No')", "kaibun = str(input())\nprint(kaibun)\nprint(kaibun[::-1])\nif kaibun == kaibun[::-1]:\n\tprint('Yes')\nelse:\n\tprint('No')", "kaibun = str(input())\n\n\nif kaibun == kaibun[::-1]:\n\tprint('Yes')\nelse:\n\tprint('No')"]
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s032731544', 's263053470', 's334517396', 's970148845', 's330327529']
[3060.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[349, 110, 131, 115, 117]