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 | u410118019 | 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()\nt=s.reverse()\nif s==t:\n print("Yes")\nelse:\n print("No")', '\ns=list(input())\nt=reversed(s)\nif s==t:\n print("Yes")\nelse:\n print("No")', 'from copy import deepcopy as dp\ns=list(input())\nt=dp(s)\ns.reverse()\nif s==t:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s204016255', 's556152000', 's639024825'] | [2940.0, 2940.0, 3444.0] | [18.0, 19.0, 22.0] | [67, 74, 111] |
p03631 | u414558682 | 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[0] == N[2]:\n print('Yes')\nelse:\n print('No')", "# coding: utf-8\n# Your code here!\n\nN = input()\n \nif N[0] == N[2]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s198287971', 's070102226'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 100] |
p03631 | u415905784 | 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 int(N) == int(N[-1]):\n print('Yes')\nelse:\n print('No')", "N = input()\nif int(N) == int(N[::-1]):\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s433163583', 's333835825'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 73] |
p03631 | u419645731 | 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==s[::-1] else "NO")', 's = input()\nprint("Yes" if s==s[::-1] else "No")'] | ['Wrong Answer', 'Accepted'] | ['s599941172', 's326062090'] | [2940.0, 3060.0] | [16.0, 19.0] | [48, 48] |
p03631 | u424763114 | 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 main():\n i = list(map(int, input().split()))\n n = i[0]\n\n if n < 100 or 999 < n or isinstance(n, int) == False:\n return\n\n if(str(n[0]) == str(n[2])):\n print(\'Yes\')\n else:\n print(\'No\')\n\nif __name__ == "__main__":\n main()', 'def main():\n i = list(map(int, input().split()))\n n = i[0]\n\n if n < 100 or 999 < n or isinstance(n, int) == False:\n return\n\n if(str(n)[0] == str(n)[2]):\n print(\'Yes\')\n else:\n print(\'No\')\n\nif __name__ == "__main__":\n main()'] | ['Runtime Error', 'Accepted'] | ['s468472306', 's754724707'] | [3060.0, 3060.0] | [18.0, 17.0] | [261, 261] |
p03631 | u425351967 | 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 fractions import gcd\n\nN = int(input())\nT = []\nfor i in range(N):\n T.append(int(input()))\n\nres = 1\nfor t in T:\n res = int(res/(gcd(res, t))) * t\nprint(res)', 'import sys\n\nN = input()\n\nfor i in range(len(N)):\n if N[i] != N[len(N)-1-i]:\n print("No")\n sys.exit()\n\nprint("Yes")'] | ['Runtime Error', 'Accepted'] | ['s459767882', 's919286358'] | [5308.0, 2940.0] | [40.0, 17.0] | [161, 121] |
p03631 | u435974296 | 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=map(int,input().split())\nif A == C:\n print('Yes')\nelse:\n print('No')", "A,B,C=input()\nif int(A)==int(C):\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s902815314', 's624055596'] | [9020.0, 9068.0] | [25.0, 29.0] | [76, 67] |
p03631 | u436110200 | 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[0]==s[2] else "No")', 's=(input)\nprint("YES" if s[0]==s[2] else "No")', 's=(input)\nprint("YES" if s[0]==s[2] else "No")', 's=str(input())\nprint("YES" if s[0]==s[2] else "No")', 'print("YES" if input()[0]==input()[2] else "No")', 's=input()\nprint("Yes" if s[0]==s[2] else "No")'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s180044730', 's265112689', 's279091547', 's439288620', 's793942671', 's006490461'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0, 17.0, 17.0] | [46, 46, 46, 51, 48, 46] |
p03631 | u441320782 | 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=int(input())\nif x[0]==x[2]:print("Yes")\nelse:\n print("No")', 'x=input()\nif x[0]==x[2]:print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s938333214', 's517548443'] | [2940.0, 2940.0] | [17.0, 17.0] | [61, 56] |
p03631 | u448655578 | 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.reverse():\n print("Yes")\nelse:\n print("No")', 'N = list(input())\nnew = list(reversed(N))\nif N == new:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s078018208', 's494760938'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 89] |
p03631 | u449555432 | 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=int(input());print('Yes' if a[0]==a[2] else 'No')", "a=input();print('Yes' if a[0]==a[2] else 'No')"] | ['Runtime Error', 'Accepted'] | ['s371967305', 's975238689'] | [2940.0, 2940.0] | [17.0, 17.0] | [51, 46] |
p03631 | u451017206 | 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())\ng = {i: []for i in range(1, N+1)} \n\ncache = {}\ndef dfs(g,start,end):\n stack = [(start, [start], 0)]\n while stack:\n (v, path, length) = stack.pop()\n for next,l in g[v]:\n if next in path: continue\n if next == end:\n return length + l\n else:\n stack.append((next, path + [next], length + l))\n\nfor i in range(N-1):\n a, b, c = map(int,input().split())\n g[a].append((b,c))\n g[b].append((a,c))\nQ, K = map(int,input().split())\n\nfor v in range(1,N+1):\n cache[v] = dfs(g,v,K)\n\nfor q in range(Q):\n x, y = map(int,input().split())\n print(cache[x] + cache[y])', "N = input()\nif N == N[::-1]:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s456687697', 's886986463'] | [3188.0, 2940.0] | [17.0, 17.0] | [665, 68] |
p03631 | u457985479 | 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())\nm = n[::-1]\nprint(n)\nprint(m)\nif n == m:\n print("Yes")\nelse:\n print("No")\n', 'n = str(input())\nm = n[::-1]\nif n == m:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s807077105', 's626711677'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 79] |
p03631 | u464912173 | 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()\n \nprint('Yes' if a==c else ;'No') ", "a,b,c = input()\n \nprint('Yes' if a==c else 'No') "] | ['Runtime Error', 'Accepted'] | ['s405419430', 's186242807'] | [2940.0, 2940.0] | [17.0, 19.0] | [51, 50] |
p03631 | u468972478 | 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 == reversed(a) else "No")', 'print("Yes" if input() == reversed((input()) else "No")', 'a = input()\nb = reversed(a)\nprint("Yes" if a == b else "No")', 'a = input()\nprint("Yes" if a == a[::-1] else "No")'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s465944878', 's594793903', 's698804554', 's536906264'] | [9052.0, 8952.0, 8972.0, 8888.0] | [29.0, 26.0, 28.0, 33.0] | [54, 55, 60, 50] |
p03631 | u470735879 | 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()\nans = 'Yes' if n == [::-1] else 'No'\nprint(ans)", "n = input()\nans = 'Yes' if n == n[::-1] else 'No'\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s373576621', 's305662559'] | [2940.0, 2940.0] | [20.0, 18.0] | [59, 60] |
p03631 | u473999868 | 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 math as m\nfrom functools import reduce\n \nn=int(input())\nl=[]\ndef f(a,b):\n return int(a*b/m.gcd(a,b))\nfor i in range(n):\n l.add(int(input()))\nprint(reduce(f,l))', '\na=input()\nif a[0]==a[2]:\n print("Yes")\nelse:print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s959384481', 's160614211'] | [3572.0, 2940.0] | [22.0, 17.0] | [172, 60] |
p03631 | u474270503 | 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())\nprint(N)\nflag=1\nfor i in range(len(N)):\n if N[i]!=N[-i-1]:\n flag=0\nprint("Yes" if flag else "No")\n', 'N=list(input())\nflag=1\nfor i in range(len(N)):\n if N[i]!=N[-i-1]:\n flag=0\nprint("Yes" if flag else "No")\n'] | ['Wrong Answer', 'Accepted'] | ['s456895754', 's449118902'] | [2940.0, 2940.0] | [17.0, 17.0] | [124, 115] |
p03631 | u474423089 | 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 numpy as np\nfrom scipy.sparse.csgraph import dijkstra\n#from scipy.sparse import csr_matrix\nN=int(input())\ntree=np.array([[0]*N for i in range(N)])\nfor i in range(N-1):\n a,b,c=map(int,input().split(' '))\n tree[a-1][b-1] = c\n tree[b-1][a-1] = c\nQ,K=map(int,input().split(' '))\nans = dijkstra(tree,indices=K-1)\nfor i in range(Q):\n s,e=map(int,input().split(' '))\n print(int(ans[s-1]+ans[e-1]))\n", "def main():\n n=input()\n for i,j in zip(n,reversed(n)):\n if i!=j:\n print('No')\n exit()\n print('Yes')\n\nif __name__ == '__main__':\n main()\n"] | ['Runtime Error', 'Accepted'] | ['s371584439', 's588236561'] | [29388.0, 2940.0] | [268.0, 17.0] | [413, 177] |
p03631 | u476048753 | 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 = map(int, input().split())\n\nif a == c:\n print("Yes")\nelse:\n print("No")', 'number = input()\nif number[0] == number[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s039814871', 's027206668'] | [2940.0, 2940.0] | [19.0, 18.0] | [82, 78] |
p03631 | u480038302 | 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() == reversed(input()) else "No")', 'N = input()\nprint("Yes" if N[0] == N[2] else "No")'] | ['Runtime Error', 'Accepted'] | ['s001478387', 's676508754'] | [2940.0, 2940.0] | [17.0, 18.0] | [54, 51] |
p03631 | u481026841 | 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 print('Yes')\nelse:\n print('No')", "n = int(input())\nif str(n[0]) = str(n[2]):\n print('Yes')\nelse:\n print('No')", "n = int(input())\nif n[0] == n[-1]:\n print('Yes')\nelse:\n print('No')", "n = int(input())\nif str(n[0]) == str(n[2]):\n print('Yes')\nelse:\n print('No')", "n = input()\nif n[0] == n[-1]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s236715877', 's329705339', 's385424026', 's472545306', 's366329971'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 17.0] | [72, 81, 73, 82, 68] |
p03631 | u482969053 | 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 solve():\n A, B, C, D = list(map(int, input().split()))\n ans = min(B,D) - max(A,C)\n if ans < 0:\n ans = 0\n print(ans)\n \nsolve()', '# coding: utf-8\n# Here your code !\nN = int(input())\nA = int(input())\n\nprint(N*N-A)', "N = input()\n\nif N[0] == N[2]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s337899422', 's373777157', 's712770581'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [151, 82, 68] |
p03631 | u484856305 | 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(reverse[::-1])\n', 'n=input()\nprint(n[::-1])\n', 'n=input()\nprint(reverse(n))', 'n=input()\nm=n[::-1]\nif n=m:\n print("Yes")\nelse:\n print("No")', 'n=input()\nm=n[::-1]\nif n==m:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s127079323', 's576691347', 's746030693', 's804055641', 's262945294'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [31, 25, 27, 62, 64] |
p03631 | u492447501 | 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 = input()\nprint("Yes" if l[0]=l[2] else "No") \n', 'l = input()\nprint("Yes" if l[0]==l[2] else "No") \n'] | ['Runtime Error', 'Accepted'] | ['s931337557', 's190981688'] | [2940.0, 2940.0] | [18.0, 17.0] | [49, 50] |
p03631 | u497363157 | 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\ntop = N[0]\nbottom = N[2]\n\nif top == bottom:\n print('YES')\nelse:\n print('NO')", "N = input()\n\ntop = N[0]\nbottom = N[2]\n\nif top == bottom:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s636303567', 's302391540'] | [3064.0, 2940.0] | [18.0, 17.0] | [95, 95] |
p03631 | u507116804 | 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\nh=n//100\n\nt=(n-h*100)//10\n\no=(n-h*100-t*10)\n\nif h=o:\n print("Yes")\nelse:\n print("No")', 'N=int(input())\n\na=N//100\n\nb=N-a\n\nif (N-a)%10==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s195508628', 's550710563'] | [2940.0, 2940.0] | [17.0, 17.0] | [103, 83] |
p03631 | u508570129 | 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 == ins[::-1]:\n print("Yes")\nelse:\n print("No")\n', 'n = input()\nif n == n[::-1]:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s868132817', 's562725279'] | [2940.0, 2940.0] | [17.0, 17.0] | [70, 68] |
p03631 | u518064858 | 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()\nfor i in range(len(n)//2)\n if n[i]!=n[-1-i]:\n print("No")\n exit()\nprint("Yes")', 'n=input()\nfor i in range(len(n)//2):\n if n[i]!=n[-1-i]:\n print("No")\n exit()\nprint("Yes")\n\n'] | ['Runtime Error', 'Accepted'] | ['s876919206', 's629642651'] | [2940.0, 2940.0] | [17.0, 20.0] | [105, 108] |
p03631 | u518455500 | 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 fractions\n\ndef lcm(a,b):\n g = fractions.gcd(a,b)\n return (a/g) * b\n\nn = int(input())\n\nans = 1\nfor i in range(n):\n t = int(input())\n ans = lcm(ans,t)\n\nprint(int(ans))', 'n = input()\n\nif n == n[::-1]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s091204260', 's997601100'] | [5048.0, 2940.0] | [37.0, 17.0] | [184, 68] |
p03631 | u518556834 | 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())\nans = 0\nfor i in range(101):\n if a < i < b and c < i < d:\n ans += 1\nprint(ans+1)\n \n', 'a,b,c,d = map(int,input().split())\nans = 0\nfor i in range(101):\n if a < i < b and c < i < d\n ans += 1\nprint(ans+1)\n ', 'a,b,c,d = map(int,input().split())\nans = 0\nfor i in range(101):\n if a <= i < b and c <= i < d:\n ans += 1\nprint(ans)\n \n', 'N =list(input())\nif N[0] == N[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s352416762', 's361778552', 's935328793', 's162464469'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [123, 119, 123, 68] |
p03631 | u519939795 | 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[::-1] else 'NO')", 'N = input()\nprint("Yes" if N[0] == N[2] else "No")'] | ['Wrong Answer', 'Accepted'] | ['s929870229', 's997311294'] | [2940.0, 2940.0] | [17.0, 17.0] | [46, 50] |
p03631 | u525117558 | 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().split()\nif(a[0]==a[2]):\n print("Yes")\nelse:\n print("No")', 'a=input().split\nif(a[0]==a[2]):\n print("Yes")\nelse:\n print("No")', 'a = input()\na.split()\n\nif(a[0] == a[2]):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s500412224', 's506390130', 's360421400'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [66, 64, 75] |
p03631 | u532966492 | 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()[0]==input()[2]])', 'a=input();print(["No","Yes"][a[0]==a[2]])'] | ['Runtime Error', 'Accepted'] | ['s763087183', 's602108431'] | [2940.0, 2940.0] | [17.0, 17.0] | [43, 41] |
p03631 | u534308356 | 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', 'n = input()\nif n[0] == n[2]:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s564049368', 's481045206'] | [8976.0, 8904.0] | [30.0, 28.0] | [68, 68] |
p03631 | u538568153 | 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 l = input()\n print(l)\n print(l[::-1])\n if l == l[::-1]:\n print("Yes")\n else:\n print("No")\n\nif __name__ == \'__main__\':\n resolve()', 'l = input()\nif l == l[:-1]:\n print("Yes")\nelse:\n print("No")', 'def resolve():\n l = input()\n if l == l[::-1]:\n print("Yes")\n else:\n print("No")\n\nif __name__ == \'__main__\':\n resolve()'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s036148832', 's597130418', 's286640353'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [176, 62, 144] |
p03631 | u543173218 | 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[-1]:\n print("YES")\nelse:\n print("NO")', 'N = input()\nif N[0] == N[-1]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s070445766', 's328736310', 's933113986'] | [9092.0, 9072.0, 9072.0] | [31.0, 30.0, 30.0] | [64, 64, 64] |
p03631 | u550114433 | 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\na = 0\nb = 0\n\nfor i in range(1,10):\n if N > 100:\n N = N - 100\n a = a + 1\n\nfor j in range(1,10):\n if N > 10:\n N = N - 10\n b = b + 1\nc = N\n\nif a == c:\n print("yes")\nelse:\n print("no")', 'A, B, C, D = map(int, input().split())\n\nif B <= C:\n print(0)\nelse:\n print(min(B, D) - max(A,C))', 'N = int(input())\n\na = 0\nb = 0\n\nfor i in range(1,10):\n if N > 100:\n N = N - 100\n a = a + 1\n\nfor j in range(1,10):\n if N > 10:\n N = N - 10\n b = b + 1\nc = N\n\nif a == c:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s618119140', 's814292035', 's120026158'] | [3064.0, 2940.0, 3064.0] | [18.0, 18.0, 19.0] | [238, 101, 238] |
p03631 | u550574002 | 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())\nprint(-a+b-c+d+2)', 'print(("Yes","No")[len(set(input()[::2]))-1])'] | ['Runtime Error', 'Accepted'] | ['s025211993', 's315346673'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 45] |
p03631 | u553070631 | 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)\nelse:\n print(min(d,b)-max(a,c))', "n=input()\nif len(n)%2==0:\n m=int(len(n)/2)\nelse:\n m=int((len(n)-1)/2)\n\na=0\n\nfor i in range(m):\n if n[i]==n[-1*(i+1)]:\n continue\n else:\n a+=1\n\nif a==0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s856709028', 's318468533'] | [2940.0, 3060.0] | [17.0, 18.0] | [97, 215] |
p03631 | u556371693 | 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()\nck=0\nfor _ in range(n//2):\n if not n[_]==n[-1-_]:\n ck+=1\nif ck==0:\n print('Yes')\nelse:\n print('No')", "n=input()\nck=0\nfor i in range(n//2):\n if not n[i]==n[-1-i]:\n ck+=1\nif ck==0:\n print('Yes')\nelse:\n print('No')\n", "n=input()\nck=0\nfor i in range(len(n)//2):\n if not n[i]==n[-1-i]:\n ck+=1\nif ck==0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s653984763', 's950424791', 's922768233'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [115, 116, 121] |
p03631 | u558764629 | 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\nb = n // 100\n\nc = n % 10\n\nif b == c:\n print('YES')\nelse:\n print('NO')", "a,b,c=input();print('YNeos'[a!=c::2])"] | ['Wrong Answer', 'Accepted'] | ['s775093670', 's043608317'] | [2940.0, 2940.0] | [17.0, 17.0] | [93, 37] |
p03631 | u559346857 | 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" n[0]==n[2] else"No")', 'a,b,c=input()\n print("Yes" if a==c else "No")', 'n=input()\n pirnt("Yes" n[0]==n[2] else "No")', 'n=input()\nprint("Yes" if n[0]==n[2] else "No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s191151777', 's904946261', 's941508949', 's812730866'] | [3064.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [42, 46, 47, 46] |
p03631 | u561828236 | 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[2][1][0] == n:\n print("Yes")\nelse:\n print("No")', 'n = input()\nif n[2]n[1]n[0] == n:\n print("Yes")\nelse:\n print("No")\n', 'n = input()\nif n[2]+n[1]+n[0] == n:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s264001591', 's537531240', 's287550696'] | [2940.0, 2940.0, 2940.0] | [19.0, 18.0, 18.0] | [70, 73, 75] |
p03631 | u562472335 | 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("Yes" if n[0]==n[2] else "No")', 'n=input()\nprint("Yes" if n[0]==n[2] else "No")'] | ['Runtime Error', 'Accepted'] | ['s913584955', 's032147706'] | [2940.0, 2940.0] | [17.0, 17.0] | [43, 46] |
p03631 | u563648702 | 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\na,b,c,d = map(int,input().split())\n\nif(b<c):print (0)\nelif(b==c):\n if(b == 0):print(0)\n else:print(1)\nelse:\n start = a if a>c else c\n end = b if b<d else d\n print(end - start)\n\n', "\n\ndef isPal(n):\n sum = 0\n while(n>0):\n rem = n % 10\n sum = (sum * 10) + rem\n n = n//10\n\n return sum\n\nn = int(input().strip())\n\nif(n == isPal(n)):print('Yes')\nelse:print('No')\n \n"] | ['Runtime Error', 'Accepted'] | ['s541190817', 's763339853'] | [2940.0, 2940.0] | [17.0, 17.0] | [195, 210] |
p03631 | u564060397 | 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=int(input())\n\nprint("Yes" if a[0]==a[2] else "No")', 'a=(input())\n\nif a[0]==a[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s083801236', 's436290162'] | [2940.0, 2940.0] | [18.0, 17.0] | [52, 66] |
p03631 | u565204025 | 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\nn = list(int(input()))\n\ndef digit_list(num):\n num = str(num)\n num = list(num)\n num = list(map(int,num))\n return num\n\nn = digit_list(n)\n\nif n[0] == n[-1]:\n print("Yes")\nelse:\n print("No")\n', '# -*- coding: utf-8 -*-\n\nn = int(input())\n\ndef digit_list(num):\n num = str(num)\n num = list(num)\n num = list(map(int,num))\n return num\n\nn = digit_list(n)\n\nif n[0] == n[-1]:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s236794282', 's351718238'] | [2940.0, 2940.0] | [17.0, 17.0] | [230, 224] |
p03631 | u571832343 | 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[0]==s[1]==s[2] else 'No')", "s=input()\nprint('Yes' if s[0]==s[2] else 'No')\n"] | ['Wrong Answer', 'Accepted'] | ['s011280628', 's907717712'] | [8980.0, 9020.0] | [29.0, 27.0] | [52, 47] |
p03631 | u574117646 | 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=input()\nif num%100==num:\n print("YES")\nelse:\n print("NO")', 'import math\n\nnum=int(input())\n\nif num%10==math.floor(num/100):\n print("YES")\nelse:\n print("NO")', 'num=int(input())\n\nif num%100==num:\n print("YES")\nelse:\n print("NO")', 'num=int(input())\n\nif num%10==num/100:\n print("YES")\nelse:\n print("NO")', 'num=int(input())\n\nif num%10==round(num/100):\n print("YES")\nelse:\n print("NO")', 'num=input()\n\nif num[0]==num[2]:\n print("YES")\nelse:\n print("NO")', 'import math\n\nnum=int(input())\n\nif num%10==math.floor(num/100):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s353676725', 's361054756', 's428454995', 's534423362', 's686246264', 's986528517', 's348060148'] | [3064.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 20.0, 20.0, 17.0, 17.0, 17.0, 17.0] | [67, 101, 73, 76, 83, 70, 101] |
p03631 | u584459098 | 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 fractions import gcd\n\ndef lcm(a, b):\n return a*b/gcd(a, b)\n\nN = int(input())\nT = list(int(input()) for i in range(N))\nT = list(set(T))\nT.sort()\na = lcm(T[0], T[1])\nfor i in T[2:]:\n a = lcm(a, i)\nprint(int(a))', 'N = list(map(int, (input())))\nif N == N[::-1]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s686818962', 's060413130'] | [5588.0, 2940.0] | [54.0, 17.0] | [217, 85] |
p03631 | u586577600 | 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()\nimport sys\nfor i in range(len(n)-1):\n if n[i] != n[i+1]:\n print('No')\n sys.exit(0)\n\nprint('Yes')\n", "n = input()\nimport sys\nfor i in range(len(n)//2):\n if n[i] != n[len(n)-1-i]:\n print('No')\n sys.exit(0)\n\nprint('Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s756683395', 's768647246'] | [2940.0, 2940.0] | [18.0, 17.0] | [126, 134] |
p03631 | u591295155 | 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 (["No","Yes"][N[0] == N[2])', 'A,B, C, D = map(int,input().split())\nif A <= C and min(D, B)-C >= 0:\n print(min(D, B)-C)\nelif A > C and min(D, B)-A >= 0:\n print(min(D, B)-A)\nelse:\n print(0)', 'import fractions\nt=1\nfor i in range(int(input())):\n s = int(input())\n t = t*s//fractions.gcd(s,t)\nprint(t)', 'N = input()\nprint (["No","Yes"][N[0] == N[2])', 'N = int(input())\nprint (["Yes", "No"][N[0]!=N[1])', 'N = input()\nprint (["No","Yes"][N[0] == N[2]])'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s079256664', 's152767512', 's283641556', 's736931833', 's826577411', 's413666685'] | [2940.0, 3060.0, 5560.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 52.0, 17.0, 17.0, 20.0] | [50, 166, 112, 45, 49, 46] |
p03631 | u597017430 | 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')", "N = input()\nif N[0] == N[2]:\n print('Yes')\n exit()\nprint('No')"] | ['Runtime Error', 'Accepted'] | ['s078091488', 's722609960'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 64] |
p03631 | u597455618 | 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 print("Yes")\nelse:\n print("No")', 'n = input()\nif n[0] == n[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s018405950', 's000179686'] | [2940.0, 2940.0] | [17.0, 17.0] | [68, 63] |
p03631 | u598684283 | 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. | ['array = list(map(int, input().split()))\nif array[0] == array[2]:\n print("Yes")\nelse:\n print("No")', 'array = list(map(str, input().split()))\nif array[0] == array[2]:\n print("Yes")\nelse:\n print("No")', 'array = list(map(str, input()))\nif array[0] == array[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s291069738', 's341590459', 's106251395'] | [9168.0, 8984.0, 9024.0] | [22.0, 21.0, 27.0] | [103, 103, 95] |
p03631 | u607379332 | 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[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')"] | ['Wrong Answer', 'Accepted'] | ['s749777100', 's105127659'] | [2940.0, 2940.0] | [17.0, 17.0] | [64, 64] |
p03631 | u608108825 | 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[2] else 'NO')", "n = input()\nprint('YES' if n[0]==n[2] else 'NO')", "n = input()\nprint('Yes' if n==n[::-1] else 'No')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s733639163', 's961272297', 's890123617'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [48, 48, 48] |
p03631 | u611090896 | 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 = list(input())\nprint('Yes' if n[0] == n[-1] else 'No')"] | ['Runtime Error', 'Accepted'] | ['s475346089', 's508829324'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 57] |
p03631 | u612635771 | 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")', 'a = input()\nprint("Yes" if a[0] == a[2] else "No")'] | ['Wrong Answer', 'Accepted'] | ['s284006970', 's489642248'] | [9052.0, 9088.0] | [30.0, 25.0] | [50, 50] |
p03631 | u620846115 | 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 = int(input())\nif x[0]==x[2]:\n print("Yes")\nelse:\n print("No")', 'x = input()\nif x[0]==x[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s360747790', 's151235228'] | [9044.0, 9020.0] | [24.0, 26.0] | [66, 61] |
p03631 | u623687794 | 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\nsys.setrecursionlimit(100002)\ninput=sys.stdin.readline\nn=int(input())\ngraph=[{} for i in range(n)]\nvisited=[False]*n\nfor i in range(n-1):\n a,b,c=map(int,input().split())\n a-=1;b-=1\n graph[a][b]=c\n graph[b][a]=c\nq,k=map(int,input().split())\ndist=[0]*n\ndef dfs(chi,par,cost):\n dist[chi]=cost\n for i in graph[chi].keys():\n if visited[i]:continue\n if i==par:continue\n visited[i]=True\n dfs(i,chi,cost+graph[i][chi])\n return\ndfs(k-1,-1,0)\nfor i in range(q):\n x,y=map(int,input().split())\n x-=1;y-=1\n print(dist[x]+dist[y])\n', 'n=input()\nif n[0]==n[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s299637012', 's486913288'] | [3316.0, 2940.0] | [18.0, 17.0] | [586, 59] |
p03631 | u633548583 | 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()))\nN_=reversed(N)\nif N==N_:\n print('Yes')\nelse:\n print('No')", "N=list(input())\nN_=list(reversed(N))\nif N==N_:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s846931791', 's414109671'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 86] |
p03631 | u635252313 | 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[::-1]==a else "NO")', 'a=input()\nprint("Yes" if a[::-1]==a else "No")'] | ['Wrong Answer', 'Accepted'] | ['s093654473', 's833270013'] | [2940.0, 2940.0] | [17.0, 18.0] | [46, 46] |
p03631 | u636290142 | 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 / 100 == n % 10:\n print('Yes')\nelse:\n print('No')\n", "n = int(input())\nif n // 100 == n % 10:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s119199625', 's933957770'] | [2940.0, 3188.0] | [17.0, 21.0] | [78, 79] |
p03631 | u636775911 | 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\nn=str(input())\nif(n[0]==n[1]):\n print("Yes")\nelse:\n print("No")', '#coding:utf-8\nn=str(input())\nif(n[0]==n[2]):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s785576605', 's648246278'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 79] |
p03631 | u639592190 | 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()\nprint("yes" if a==c else "No")', 'N=list(input())\nprint("Yes" if N[0]==N[2] else "No")'] | ['Wrong Answer', 'Accepted'] | ['s230795119', 's174948599'] | [2940.0, 2940.0] | [18.0, 17.0] | [44, 52] |
p03631 | u642012866 | 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("YNeos"[s:=input()==s[::-1]]::2)', 'print("YNeos"[(s:=input())!=s[::-1]::2])'] | ['Runtime Error', 'Accepted'] | ['s502995286', 's108917187'] | [9020.0, 9080.0] | [26.0, 28.0] | [38, 40] |
p03631 | u642905089 | 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 if b == 0:\n return a\n else:\n return gcd(b, a % b)\n \nN = int(input())\n \na = int(input())\nb = 0\nfor i in range(N-1):\n b = int(input())\n a = (a*b) // gcd(a,b)\n \nprint(a)', 'def gcd(a,b):\n if b == 0:\n return a\n else:\n return gcd(b, a % b)\n \nN = int(input())\nTs = [None for i in range(N)]\n\na = int(input())\nb = 0\nfor i in range(N-1):\n b = int(input())\n a = (a*b) // gcd(a,b)\n \nprint(a)', 'a = input()\nb = []\n\nfor i in range(len(a)):\n b.insert(0, a[i])\n \nif list(a) == b:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s722665025', 's758944937', 's390390788'] | [2940.0, 3060.0, 2940.0] | [17.0, 18.0, 17.0] | [213, 242, 127] |
p03631 | u652081898 | 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)\nelif a <= c:\n if b <= d:\n print(b-c)\n else:\n print(d-c)\nelse:\n if b <= d:\n print(b-a)\n else:\n print(c-b)', 's = input()\n\nif s[0] == s[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s070696578', 's572488802'] | [3060.0, 2940.0] | [18.0, 18.0] | [218, 68] |
p03631 | u653807637 | 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. | ["# encoding:utf-8\nimport sys\n \ndef main():\n\tn = int(input())\n\tvers = [list(map(int, input().split())) for _ in range(n - 1)]\n\tq, k = list(map(int, input().split()))\n\tqueries = [list(map(int, input().split())) for _ in range(q)]\n \n\t#n = 10 ** 5\n\t\n \n\tnew_vers = mapping(n, vers)\n\tdist = calcMinDist(n, new_vers, k, queries)\n\tcalcQueries(dist, queries, k)\n\t\ndef mapping(n, vers):\n\tnew_vers = {i :[] for i in range(n)}\n\tfor ver in vers:\n\t\tnew_vers[ver[0] - 1].append((ver[1], ver[2]))\n\t\tnew_vers[ver[1] - 1].append((ver[0], ver[2]))\n\treturn new_vers\n \ndef calcMinDist(n, new_vers, k, queries):\n\tdist = [- 1 for _ in range(n)]\n\tflag = [False for _ in range(n)]\n\tdist[k - 1] = 0\n\tflag[k - 1] = True\n\tdfs(new_vers, dist, flag, k)\n\treturn dist\n \ndef dfs(new_vers, dist, flag, frm):\n\tflag[frm - 1] = True\n\tvs = new_vers[frm - 1]\n\tfor v in vs:\n\t\tif flag[v[0] - 1] == False:\n\t\t\tdist[v[0] - 1] = dist[frm - 1] + v[1]\n\t\t\tnew_ver, dist, flag, _ = dfs(new_vers, dist, flag, v[0])\n \n\treturn [new_vers, dist, flag, frm]\n \ndef calcQuery(dist, query, k):\n\tprint(dist[query[0] - 1] + dist[query[1] - 1])\n \ndef calcQueries(dist, queries, k):\n\tfor query in queries:\n\t\tcalcQuery(dist, query, k)\n \nif __name__ == '__main__':\n\tsys.setrecursionlimit(1000000)\n\tmain()", 'def main():\n\tn = int(input())\n\ta = n // 100\n\tb = n - (n // 10) * 10\n\tif a == b:\n\t\tprint("Yes")\n\telse:\n\t\tprint("No")\n \nif __name__ == \'__main__\':\n\tmain()'] | ['Runtime Error', 'Accepted'] | ['s067913579', 's369688397'] | [3184.0, 2940.0] | [18.0, 17.0] | [1294, 152] |
p03631 | u656995812 | 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()\nfor i in range(len(n)//2){\n if n[i] != n[-(i+1)]:\n \tprint('No')\n \texit(0)\nprint('Yes')", "import sys\nn = input()\nfor i in range(len(n)//2):\n if n[i] != n[-(i+1)]:\n \tprint('No')\n \tsys.exit(0)\nprint('Yes')"] | ['Runtime Error', 'Accepted'] | ['s544299641', 's630153413'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 116] |
p03631 | u658288444 | 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")', 'a, b, c = input()\nif a == c:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s706522650', 's917472285'] | [2940.0, 2940.0] | [17.0, 18.0] | [63, 63] |
p03631 | u661980786 | 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', 'n = input()\nif n[0] == n[2]:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s893236770', 's905813355'] | [2940.0, 2940.0] | [17.0, 17.0] | [68, 68] |
p03631 | u667024514 | 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 = a[0]\nc = a[2]\nif b = c:\nprint("Yes")\nelse:\nprint("No")\n', 'a = input()\nb = int(a[0])\nc = int(a[2])\nif b = c:\n print("Yes")\nelse:\n print("No")\n', 'a = input()\nA = a[0]\nB = a[2]\nif A == B:\n print(Yes)\nelse:\n print(No)', 'a = (input())\nb = a[0]\nc = a[2]\nif b = c:\nprint("Yes")\nelse:\nprint("No")\n', 'a = input()\nb = int(a[0])\nc = int(a[2])\nif b = c:\nprint("Yes")\nelse:\nprint("No")\n', 'a = input().split()\nA = int(a[0])\nB = int(a[1])\nC = int(a[2])\nif A == C:\n print("Yes")\nelse:\n print("No")', 'a = input()\nA = a[0]\nB = a[2]\nif A == B:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s148204659', 's294197868', 's491531630', 's559203651', 's825102241', 's990746458', 's654350315'] | [2940.0, 2940.0, 2940.0, 3188.0, 2940.0, 2940.0, 2940.0] | [17.0, 20.0, 17.0, 21.0, 18.0, 17.0, 17.0] | [71, 83, 69, 73, 81, 105, 73] |
p03631 | u668503853 | 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=min(a+b,c+d) - max(a,c)\nif s>0:print(s)\nelse:print(0)\n', 'n=input()\nif n == n[::-1]:print("Yes")\nelse:print("No")'] | ['Runtime Error', 'Accepted'] | ['s890817722', 's744926296'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 56] |
p03631 | u670180528 | 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();print('YNeos'[a!=b::2])", "a,b,c=input();print('YNeos'[a!=c::2])"] | ['Wrong Answer', 'Accepted'] | ['s742773298', 's368550221'] | [2940.0, 2940.0] | [17.0, 17.0] | [37, 37] |
p03631 | u671252250 | 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# Your code here!\n\ninput_num = input()\ninput_len = len(input_num)\ninput_lis = list(input_num)\nrvrsd_lis = list(reversed(input_lis))\nflag = 0\n\nprint(input_lis)\nprint(rvrsd_lis)\n\nfor i in range(input_len):\n print(input_lis[i])\n print(rvrsd_lis[i])\n if input_lis[i] != rvrsd_lis[i]:\n flag = 1\n print("No")\n break\n\nif flag == 0:\n print("Yes")\n', '# coding: utf-8\n# Your code here!\n\ninput_num = input()\ninput_len = len(input_num)\ninput_lis = list(input_num)\nrvrsd_lis = list(reversed(input_lis))\nflag = 0\n\nfor i in range(input_len):\n if input_lis[i] != rvrsd_lis[i]:\n flag = 1\n print("No")\n break\n\nif flag == 0:\n print("yes")\n', '# coding: utf-8\n# Your code here!\n\ninput_num = input()\ninput_len = len(input_num)\ninput_lis = list(input_num)\nrvrsd_lis = list(reversed(input_lis))\nflag = 0\n\n#print(input_lis)\n\n\nfor i in range(input_len):\n #print(input_lis[i])\n \n if input_lis[i] != rvrsd_lis[i]:\n flag = 1\n print("No")\n break\n\nif flag == 0:\n print("Yes")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s020735143', 's621087807', 's180630685'] | [3060.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [388, 305, 392] |
p03631 | u676496404 | 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[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")'] | ['Wrong Answer', 'Accepted'] | ['s417751796', 's536156614'] | [2940.0, 2940.0] | [17.0, 18.0] | [65, 65] |
p03631 | u682191329 | 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%100 == n/100:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\nif n%10 == (n-n%100)/100:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s671504274', 's378507433'] | [9096.0, 9156.0] | [25.0, 23.0] | [65, 77] |
p03631 | u685244071 | 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())\nN_reverse = N[::-1]\n\nif N = N_reverse:\n print('Yes')\nelse:\n print('No')", "N = int(input())\nN_reverse = N[::-1]\n\nif N == N_reverse:\n print('Yes')\nelse:\n print('No')\n", "N = input()\nN_reverse = N[::-1]\n\nif N == N_reverse:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s090104300', 's870376908', 's281313701'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [90, 92, 87] |
p03631 | u686036872 | 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()\n print('Yes' if a==c else 'No')", " A=input()\n print('Yes' if A==sorted(A) else 'No')", 'N = str(input())\nif N[0]==N[-1]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s786998765', 's922263928', 's301188865'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [48, 52, 71] |
p03631 | u689835643 | 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 = list(input())\nprint(x)\ny = list(reversed(x))\nprint(y)\nif x == y:\n print("Yes")\nelse:\n print("No")\n', 'x = list(input().split())\nif x == reversed(x):\n print("Yes")\nelse:\n print("No")\n', 'x = list(input().split())\nif x == x.reverse():\n print("Yes")\nelse:\n print("No")\n', 'x = list(input())\ny = list(reversed(x))\nif x == y:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s363780520', 's497447840', 's678467354', 's096734815'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [108, 86, 86, 90] |
p03631 | u690037900 | 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(input())\nif l.reverse() == l:\n print("Yes")\nelse:\n print("No")\n\n', 'n=input()\nprint("Yes" if n==n[::-1] else "No")'] | ['Wrong Answer', 'Accepted'] | ['s989754781', 's162205197'] | [2940.0, 3064.0] | [17.0, 17.0] | [79, 46] |
p03631 | u694294905 | 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[::-1] else 'NO')", "N=input()\nprint('Yes' if N[0]==N[2] else 'No')"] | ['Wrong Answer', 'Accepted'] | ['s378089544', 's865397985'] | [2940.0, 2940.0] | [17.0, 18.0] | [46, 46] |
p03631 | u698988260 | 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", "N = input()\nif (N == N[::-1]):\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s526398383', 's765414386'] | [2940.0, 2940.0] | [17.0, 18.0] | [69, 70] |
p03631 | u702208001 | 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", "n = int(input())\nprint('Yes' if s[0] == s[-1] else 'No')\n", "n = int(input())\nprint('Yes' if n[::-1] == n else 'No')\n", "n = input()\nprint('Yes' if n[0] == n[2] else 'No')\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s123504166', 's265084228', 's481496252', 's831929550'] | [2940.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [56, 57, 56, 51] |
p03631 | u703890795 | 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()\nf = True\nL = len(N)\nfor i in range(N):\n if N[i] != N[L-1-i]:\n f = False\n break\nif f:\n print("Yes")\nelse:\n print("No")', 'N = input()\nf = True\nL = len(N)\nfor i in range(L):\n if N[i] != N[L-1-i]:\n f = False\n break\nif f:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s325424157', 's178840024'] | [2940.0, 2940.0] | [19.0, 17.0] | [138, 138] |
p03631 | u709799578 | 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 functools\nimport fractions\nn = int(input())\nt = [int(input()) for _ in range(n)]\n\ndef lcm(x, y):\n return (x * y) // fractions.gcd(x, y)\n \nans = functools.reduce(lcm, t)\nprint(ans)', 'import functools\nn = int(input())\nt = [int(input()) for _ in range(n)]\n\ndef lcm(x, y):\n return (x * y) // functools.gcd(x, y)\n \nans = functools.reduce(lcm, t)\nprint(ans)', "n = input()\nprint('Yes' if n == n[::-1] else 'No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s137682312', 's550269398', 's317822039'] | [5128.0, 3572.0, 2940.0] | [36.0, 23.0, 17.0] | [192, 175, 50] |
p03631 | u725500654 | 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=input()\nc=input()\nd=input()\nif a<c:\n fast=c\nelse:\n fast=a\nif b<d:\n last=b\nelse:\n last=d\n\nif b<c:\n print("0")\nelse:\n print(last-fast)', 'str=input()\nif str[0]==str[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s279380657', 's680896855'] | [3060.0, 2940.0] | [16.0, 17.0] | [162, 69] |
p03631 | u729294108 | 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().strip()\n\nif n == reversed(n):\n print('Yes')\nelse:\n print('No')\n", "n = input().strip()\n\nif n == n[::-1]:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s676711416', 's458193425'] | [2940.0, 3064.0] | [17.0, 18.0] | [81, 77] |
p03631 | u731665172 | 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[::-1]==N:\n print('YES')\nelse:\n print('NO')", "N=input()\nif N[::-1]==N:\n print('YES')\nelse:\n print('NO')", "fjd=input()\nif fjd[::-1]==fjd:\n print('YES')\nelse:\n print('NO')", "N=input()\nif N[::-1]==N:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s078565269', 's167008813', 's633229824', 's916827053'] | [2940.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [59, 59, 65, 59] |
p03631 | u732870425 | 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[::-1] else "No")', 'n = input()\nprint("Yes" if n == n[::-1] else "No")'] | ['Runtime Error', 'Accepted'] | ['s385345290', 's523597588'] | [2940.0, 2940.0] | [18.0, 18.0] | [45, 50] |
p03631 | u733774002 | 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.sorted(reverse = True) == N:\n print("Yes")\nelse:\n print("No")\n', 'N = list(input())\nif N[::-1] == N:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s919481292', 's726774810'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 73] |
p03631 | u736981539 | 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()\nprint("YES" if a==c else "NO")', "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'] | ['s118776096', 's264897511', 's245056336'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [44, 44, 44] |
p03631 | u739843002 | 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. | ['tmp = input().split(" ")\nprint("Yes") if tmp[0] == tmp[2] else print("No")', 'tmp = list(input())\nprint("Yes") if tmp[0] == tmp[2] else print("No")'] | ['Runtime Error', 'Accepted'] | ['s615811632', 's056827260'] | [8980.0, 9008.0] | [22.0, 29.0] | [74, 69] |
p03631 | u740047492 | 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. | ['sorted(a) = list[map(int, input().split(,))]\nif a[0] == a[1]:\n print("Yes")\nels:\n print("No")', 'a = int(input())\na.sort()\nif a[0] == a[1]:\n print("Yes")\nels:\n print("No")', 'sorted(a) = list[map(int, input().split())]\nif a[0] == a[1]:\n print("Yes")\nels:\n print("No")', 'a = int(input())\nif a[0] == a[2]:\n print("Yes")\nels:\n print("No")', 'a = list[map(int, input().split())]\nif a[0] == a[1]:\n print("Yes")\nels:\n print("No")', 'sorted(a) = int(input())\nif a[0] == a[1]:\n print("Yes")\nels:\n print("No")', 'n = input()\nif n[0] == n[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s040139840', 's099786465', 's467360773', 's563382714', 's779029157', 's780398113', 's089467822'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [95, 76, 94, 67, 86, 75, 63] |
p03631 | u740284863 | 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[0]==N[1]:\n print("Yes")\nelse:\n print("No")', 'N =str(input())\nif N[0]==N[2]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s887496852', 's255373626'] | [2940.0, 2940.0] | [18.0, 18.0] | [65, 65] |
p03631 | u748135969 | 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 =len(n) // 2\n\nfor i in range(m):\n if n[i] == n[m]:\n print("Yes")\n else:\n print("No")', 'a, b, c, d = map(int, input().split())\n \nbefore = 0\nafter = 0\n \nif a >= c:\n before = a - c\nelse:\n before = c - a\n \nif b >= d:\n after = d\nelse:\n after = b\nprint(after - before)', 'n = input()\n\nif n[0] == n[2]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s232836511', 's782752928', 's705171547'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [106, 179, 64] |
p03631 | u750651325 | 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 print("Yes")\nelse:\n print("No")', 'N = input()\nif N[0] == N[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s910100583', 's610565462'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 67] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.