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
u754217932
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']
['s638809285', 's560496447']
[2940.0, 2940.0]
[17.0, 17.0]
[67, 67]
p03631
u755180064
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.
['\nurl = "https://atcoder.jp//contests/abc070/tasks/abc070_a"\n\ndef main():\n x = input()\n if x == reversed(x):\n print(\'Yes\')\n else:\n print(\'No\')\n\n\nif __name__ == \'__main__\':\n main()\n', '\nurl = "https://atcoder.jp//contests/abc070/tasks/abc070_a"\n\ndef main():\n x = input()\n if x == \'\'.join(reversed(x)):\n print(\'Yes\')\n else:\n print(\'No\')\n\n\nif __name__ == \'__main__\':\n main()\n']
['Wrong Answer', 'Accepted']
['s370956102', 's970389154']
[8988.0, 9084.0]
[25.0, 27.0]
[205, 214]
p03631
u756696693
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==2 else No)', 'a,b,c=input()\nprint("Yes" if a==c else "No")']
['Runtime Error', 'Accepted']
['s503622523', 's037510517']
[2940.0, 2940.0]
[17.0, 17.0]
[42, 44]
p03631
u757030836
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:\n print(0)\n exit()\n \nif b <= d:\n print(b-c)\nelse:\n print(d-c)\n', 'N = input()\n\nprint("Yes" if N[0] == N[2] else "No")']
['Runtime Error', 'Accepted']
['s170547513', 's778830838']
[2940.0, 2940.0]
[18.0, 17.0]
[113, 51]
p03631
u757274384
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\n\n\nif n[0] == n[2]:\n print("Yes"):\nelse:\n print("No")', 'n = input()\n\n\n\nif n[0] == n[2]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s293719888', 's237377609']
[2940.0, 2940.0]
[17.0, 18.0]
[96, 96]
p03631
u759412327
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(map(int,input().split()))\n\nif a[1]<a[2]:\n print(0)\nelse:\n print(min(a[1],a[3])-max(a[0],a[2]))\n', 'a,b,c = input().split()\nprint(["Yes","No"][a!=c])', 'a = list(map(int,input().split()))\n\nif a[1]<a[2]:\n print(0)\nelse:\n print(min(a[1],a[3])-max(a[0],a[2]))\n', 'N = input()\n\nif N[0]==N[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s309608834', 's551500808', 's561462438', 's317564412']
[2940.0, 2940.0, 2940.0, 8960.0]
[17.0, 17.0, 17.0, 25.0]
[106, 49, 106, 62]
p03631
u766566560
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')"]
['Runtime Error', 'Accepted']
['s527069610', 's616077830']
[2940.0, 2940.0]
[17.0, 17.0]
[64, 64]
p03631
u766684188
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=list(map(int,[input() for i in range(n)]))\n\ndef gcd(x,y):\n if y==0:\n return x\n else:\n return gcd(y,x%y)\ndef lcm(x,y):\n return x*y//gcd(x,y)\n\nif n==1:\n print(t[0])\nelse:\n ans=lcm(t[0],t[1])\n for i in range(n-1):\n ans=lcm(ans,lcm(t[i],t[i+1]))\n print(ans)', "n=input()\nif n[0]==n[2]:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s145672576', 's025409429']
[3064.0, 2940.0]
[18.0, 17.0]
[312, 59]
p03631
u767664985
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(str, input()))\nif n[0] = n[2]:\n\tprint("Yes")\nelse:\n\tprint("No")\n', 'n = list(map(str, input()))\nif n[0] == n[2]:\n\tprint("Yes")\nelse:\n\tprint("No")\n']
['Runtime Error', 'Accepted']
['s204147872', 's059883117']
[2940.0, 2940.0]
[17.0, 17.0]
[77, 78]
p03631
u768559443
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")']
['Wrong Answer', 'Accepted']
['s826653317', 's800461025']
[2940.0, 2940.0]
[17.0, 18.0]
[44, 44]
p03631
u768896740
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[0] == n[1]:\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']
['s569665851', 's521004646']
[2940.0, 2940.0]
[17.0, 17.0]
[73, 73]
p03631
u778348725
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%1):\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']
['s864958703', 's912487432']
[2940.0, 2940.0]
[18.0, 18.0]
[74, 76]
p03631
u778700306
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()\nrev_a = reversed(a)\n\nif a == rev_a:\n print("Yes")\nelse:\n print("No")', 'a = list(input())\nrev_a = list(a)\nrev_a.reverse()\n\nif a == rev_a:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s660215114', 's333510078']
[2940.0, 2940.0]
[17.0, 17.0]
[86, 104]
p03631
u782654209
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 str(input())==str(input())[::-1] else print('No')", "s = str(input())\nprint('Yes') if s==s[::-1] else print('No')"]
['Runtime Error', 'Accepted']
['s939036350', 's430874359']
[2940.0, 2940.0]
[18.0, 17.0]
[65, 60]
p03631
u791664126
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();print('YNeos'[s!=s[::-1]])", "s=input();print('YNeos'[s!=s[::-1]::2])\n"]
['Wrong Answer', 'Accepted']
['s148047184', 's816568188']
[2940.0, 2940.0]
[17.0, 17.0]
[36, 40]
p03631
u792547805
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%100):\n print('Yes')\nelse:\n print('no')\n", "n = int(input())\nif (n//10//10) == (n%10%10):\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s273938081', 's603375321']
[2940.0, 3064.0]
[17.0, 17.0]
[80, 85]
p03631
u793383875
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=.join(reversed(a));\nif(a==b):\n print('Yes')\nelse:\n print('No')", "a=input()\nb=reverse(a);\nif a==b:\n print('Yes')\nelse:\n print('No')", "a=input()\nb=''.join(reversed(a))\nif(a==b):\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s134822421', 's719692040', 's669809687']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[76, 65, 78]
p03631
u794910686
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")\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s100823139', 's567997788', 's673759928']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[44, 45, 45]
p03631
u795630164
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\n\ndef gcd(a, b):\n while b:\n a, b = b, a % b\n return a\n\n\ndef lcm(a, b):\n return a * b // gcd(a, b)\n\n\nif N == 1:\n print(T[0])\n exit()\n\nnow = lcm(T[0], T[1])\nfor i in range(1, N):\n now = lcm(now, T[i])\n\nprint(now)\n', "N = str(input())\nif N == N[::-1]\n\tprint('Yes')\nelse\n\tprint('No')", "N = str(input())\nif N == N[::-1]:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s107991357', 's455839468', 's440409700']
[3060.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[290, 64, 72]
p03631
u796424048
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 = list(map(int,input.split(" ")))\n\nif B<C:\n res = 0\nelse:\n res = min(B,D) - max(A<C)\nprint(res)', "N = int(input())\nN = str(N)\nif N[::-1] == N:\n print('Yes')\nelse:\n print('No')\n "]
['Runtime Error', 'Accepted']
['s842211702', 's023746793']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 82]
p03631
u798129018
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[0] == s[1]:\n print("Yes")\nelse:\n print("No")', 's = input()\nif s[0] == s[2]:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s004797922', 's021883028']
[2940.0, 2940.0]
[18.0, 18.0]
[63, 63]
p03631
u806855121
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 and B < D:\n print(B-C)\nelif A < C and B > D:\n print(D-C)\nelif C < A and B < D:\n print(B-A)\nelif A < D and B > D:\n print(D-A)', "N = input()\nif N[0] != N[len(N)-1]:\n print('No')\n quit()\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s313747074', 's348692732']
[3060.0, 2940.0]
[18.0, 18.0]
[219, 85]
p03631
u813174766
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\nn=int(input())\na=1\nfor i in range(n):\n b=int(input())\n a=a//fractions.gcd(a,b)*b\nprint(int(a))\n', 's=input()\nif(s[0]==s[2]):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s012398572', 's584868672']
[5176.0, 2940.0]
[37.0, 18.0]
[114, 60]
p03631
u813450984
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 = map(int, input().split())\n\nA, B, C, D = [i for i in s]\n\ngreater = max(A, C)\nless = min(B, D)\n\nif min(0, greater - less):\n\u3000print(min(0, greater- less)\nelse:\n print("0")', 's = input().split()\nA = int(s[0])\nB = int(s[1])\nC = int(s[2])\nD = int(s[3])\n\na_c = max(A, C)\nb_d = min(B, D)\n\nif a_c - b_d:\n print(a_c - b_d)\nelse:\n print("0")', "s = input()\nprint('Yes' if s == s[::-1] else 'No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s074630097', 's751793452', 's714700049']
[2940.0, 3060.0, 2940.0]
[18.0, 20.0, 18.0]
[175, 161, 50]
p03631
u816919571
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())\ns = n.copy()\nprint("Yes" if n==s.reverse() else "No")', 'n = list(input())\ns = n.copy()\ns.reverse()\nprint("Yes" if n==s else "No")']
['Wrong Answer', 'Accepted']
['s967682219', 's286362577']
[2940.0, 2940.0]
[17.0, 17.0]
[71, 73]
p03631
u821588465
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")']
['Runtime Error', 'Accepted']
['s819541107', 's339018344']
[2940.0, 2940.0]
[17.0, 17.0]
[49, 49]
p03631
u823044869
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[3]:\n print("Yes")\nelse:\n print("No")\n', 'n = input()\n\nif n[0] == n[2]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s514951687', 's748781469']
[2940.0, 2940.0]
[17.0, 17.0]
[65, 65]
p03631
u823885866
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\nimport math\nimport itertools\nimport collections\nimport heapq\nimport re\nimport numpy as np\n\nrr = lambda: sys.stdin.readline().rstrip()\nrs = lambda: sys.stdin.readline().split()\nri = lambda: int(sys.stdin.readline())\nrm = lambda: map(int, sys.stdin.readline().split())\nrl = lambda: list(map(int, sys.stdin.readline().split()))\ninf = float('inf')\nmod = 10**9 + 7\n\ns = rr()\nprint('YNeos'[s!=reversed(s)::2])\n\n\n\n\n\n\n\n\n", "s=rr()\nprint('YNeos'[s[0]!=s[2]::2])", "import sys\nimport math\nimport itertools\nimport collections\nimport heapq\nimport re\nimport numpy as np\n\nrr = lambda: sys.stdin.readline().rstrip()\nrs = lambda: sys.stdin.readline().split()\nri = lambda: int(sys.stdin.readline())\nrm = lambda: map(int, sys.stdin.readline().split())\nrl = lambda: list(map(int, sys.stdin.readline().split()))\ninf = float('inf')\nmod = 10**9 + 7\n\ns = rr()\nprint('YNEOS'[s!=reversed(s)::2])\n\n\n\n\n\n\n\n\n", "import sys\nimport math\nimport itertools\nimport collections\nimport heapq\nimport re\nimport numpy as np\n\nrr = lambda: sys.stdin.readline().rstrip()\nrs = lambda: sys.stdin.readline().split()\nri = lambda: int(sys.stdin.readline())\nrm = lambda: map(int, sys.stdin.readline().split())\nrl = lambda: list(map(int, sys.stdin.readline().split()))\ninf = float('inf')\nmod = 10**9 + 7\n\ns = rr()\nprint('YNEOS'[s==reversed(s)::2])\n\n\n\n\n\n\n\n\n", "s=input()\nprint('YNeos'[s[0]!=s[2]::2])\n"]
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s111128218', 's209047201', 's473987562', 's816690866', 's243069768']
[27116.0, 8936.0, 27072.0, 26944.0, 9076.0]
[115.0, 21.0, 116.0, 116.0, 26.0]
[423, 36, 423, 423, 40]
p03631
u825429469
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\nprint('yes' if n[0] == n[2] else 'No')", "n = str(input())\n\nprint('Yes' if n[0] == n[2] else 'No')"]
['Wrong Answer', 'Accepted']
['s818174439', 's106353734']
[8972.0, 8940.0]
[25.0, 27.0]
[56, 56]
p03631
u835575472
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[0] == s[-1]:\n print("Yes")\nelse:\n print("No")', 's = input()\nif s[0] == s[-1]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s208156662', 's203620401']
[9020.0, 8948.0]
[22.0, 31.0]
[64, 65]
p03631
u839857256
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())\n\nif n==n[::-1]:\n print("YES")\nelse:\n print("NO")\n', 'n = list(input())\n\nif n==n[::-1]:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s159573894', 's325252553']
[2940.0, 2940.0]
[17.0, 17.0]
[73, 73]
p03631
u843318346
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 priint('Yes')\nelse:\n print('No')", "n = input()\nif n[0]==n[2]:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s380500852', 's481689532', 's603129038']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[61, 61, 62]
p03631
u845442154
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()\nn_list = list(n_str)\nif n_list == n_list.reverse():\n print("Yes")\nelse:\n print("No")', 'n_str = input()\nn_list = list(n_str)\nn_list_reverse = n_list.reverse()\nif n_list == n_list_reverse:\n print("Yes")\nelse:\n print("No")', 'n_str = input()\nn_list = list(n_str)\nn_list_reverse = list(n_str)\nn_list_reverse.reverse()\nif n_list == n_list.reverse():\n print("Yes")\nelse:\n print("No")\n', 'n_str = input()\nn_list = list(n_str)\nn_list_reverse = list(n_str)\nn_list_reverse.reverse()\nif n_list == n_list_reverse():\n print("Yes")\nelse:\n print("No")', 'n_str = input()\nn_list = list(n_str)\nn_list_reverse = list(n_str)\nn_list_reverse.reverse()\nif n_list == n_list_reverse:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s088014535', 's273298866', 's276373829', 's964555021', 's055667070']
[2940.0, 2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 17.0]
[106, 138, 161, 160, 159]
p03631
u847033024
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()\nif a[1] == a[2]:\n print('Yes')\nelse:\n print('No')", "a = int(input())\nif a == a[::-1]:\n print('Yes')\nelse:\n print('No')", "a = int(input())\nif a == a[::-1]:\n print('Yes')\nelse:\n print('No')", "a = input()\nif a == a[::-1]:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s481603560', 's563971879', 's849080186', 's530252960']
[8944.0, 8944.0, 9144.0, 8976.0]
[25.0, 27.0, 25.0, 26.0]
[63, 68, 68, 63]
p03631
u853586331
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')"]
['Wrong Answer', 'Accepted']
['s119842299', 's639791088']
[2940.0, 2940.0]
[17.0, 17.0]
[57, 57]
p03631
u859897687
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()\nfor i in range(len(a)):\n if not a[i]==a[len(a)-1-i]:\n ans=1\nif ans==1:\n print("No")\nelse:\n print("Yes")', 'a=input()\nans=0\nfor i in range(len(a)):\n if not a[i]==a[len(a)-1-i]:\n ans=1\nif ans==1:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s607146775', 's447132470']
[2940.0, 2940.0]
[18.0, 17.0]
[119, 125]
p03631
u865413330
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 print("No")', 'n = input()\nprint("Yes") if n[0] == n[2] else print("No")\n']
['Runtime Error', 'Accepted']
['s843622412', 's279041079']
[2940.0, 2940.0]
[18.0, 17.0]
[62, 58]
p03631
u867069435
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()\nast = int(a[0])\naen = int(a[1])\nbst = int(a[2])\nben = int(a[3])\nif ast > ben or bst > aen:\n print("0")\nelif ast < bst and aen < ben:\n print(aen - bst)\nelif ast < bst and aen > ben:\n print(ben - bst)\nelif bst < ast and ben < aen:\n print(ben -ast)\nelif bst < ast and ben > aen:\n print(aen - ast)\nelif ast == bst and aen < ben:\n print(aen - ast)\nelif ast == bst and aen > ben:\n print(ben - ast)\nelif ast < bst and aen == ben:\n print(ben - bst)\nelif ast > bst and aen == ben:\n print(aen - ast)\nelif ast == bst and aen == ben:\n print(aen - ast)\nelse:\n print("0")\n', 'a = input()\ni = 0\nn = 1\ntime = len(a)\nans = "Yes"\nwhile i < time:\n if a[i] == a[-n]:\n pass\n else:\n ans = "No"\n i += 1\n n -= 1\nprint(ans)\n', 'a = input()\ni = 0\nn = 1\ntime = len(a)\nans = "Yes"\nwhile i < time:\n if a[i] == a[-n]:\n pass\n else:\n ans = "No"\n i += 1\n n += 1\nprint(ans)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s702697745', 's813381688', 's606305105']
[3064.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[611, 163, 162]
p03631
u867849998
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()[1] else "No")', 'a,b,c = input()\nprint("Yes" if a=c else "No")', 'a,b,c = input()\nprint("Yes" if a==c else "No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s102091207', 's350947002', 's151674998']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[48, 45, 46]
p03631
u868040597
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\nif c <= b:\n\tprint(b - c)\nelse:\n\tprint(0)\n', '# coding: utf-8\n\nn = int(input()) \nt = sorted([int(input()) for i in range(n)])\n\ndef gcd(a, b):\n while b:\n a, b = b, a % b\n return a\n\t\ndef lcm(a, b):\n return a * b // gcd(a, b)\n\t\ndef nlcm(list):\n if len(list) > 2:\n \tlcm_num = lcm(list[0], list[1])\n for i in range(2, len(list)):\n lcm_num = lcm(lcm_num, list[i])\n print(lcm_num)\n elif len(list) == 2:\n print(lcm(list[0], list[1]))\n else:\n \tprint(len[-1])\n\n\nnlcm(t)\n', '# coding: utf-8\n\na, b, c, d = map(int, input().split())\n\nif c <= b:\n if b <= d:\n print(b - c)\n else:\n print(d - c)\nelse:\n print(0)\n', '# coding: utf-8\n\na = input()\nif a[0] == a[-1]:\n\tprint("Yes")\nelse:\n\tprint("No")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s204273509', 's524120491', 's892284991', 's182131325']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[98, 439, 140, 80]
p03631
u871841829
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())\nprint("Yes" if n[0] == n[1] else "No")', 'n = str(input())\nprint("Yes" if n[0] == n[2] else "No")']
['Wrong Answer', 'Accepted']
['s136553361', 's386677258']
[2940.0, 2940.0]
[17.0, 17.0]
[55, 55]
p03631
u874549552
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.
['moji = input()\nif (moji[0]==moji[2]):\n print("Yes")\nelse: \n print("No)', 'moji = input()\nif (moji[0]==moji[1]):\n print("Yes")\nelse: \n print("No)', 'moji = input()\nif (moji[0]==moji[2]):\n print("Yes")\nelse: \n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s809125564', 's819797285', 's295459089']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[72, 72, 73]
p03631
u875361824
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 N = int(input().strip())\n res = int(input().strip())\n if N == 1:\n print(res)\n return\n for _ in range(1, N):\n t = int(input().strip())\n res = lcm(res, t)\n print(res)\n\n\ndef lcm(a, b):\n return (a * b) / gcd(a, b)\n\n\ndef gcd(a, b):\n if b == 0:\n return a\n if b == 1:\n return 1\n if b > a:\n return gcd(b, a)\n else:\n return gcd(b, a % b)\n\nif __name__ == '__main__':\n main()\n", 'def main():\n N_str = input().strip()\n if N_str == N_str[::-1]:\n print("Yes")\n else:\n print("No")\n\nif __name__ == \'__main__\':\n main()\n']
['Runtime Error', 'Accepted']
['s487426591', 's618610983']
[3064.0, 2940.0]
[17.0, 17.0]
[467, 159]
p03631
u878138257
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())\nif a[0]==a[3]:\n print("Yes")\nelse:\n print("No")', 'a = input()\nif a[0]==a[3]:\n print("Yes")\nelse:\n print("No")\n', 'a = input()\nif a[0]==a[2]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s412185489', 's557824066', 's800389697']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[66, 62, 62]
p03631
u882209234
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\nB = A[::-1]\nflag = True\nfor i in range(len(A)):\n if A[i] != B[i]:\n flag = False\n break\n\nif flag: print('YES')\nelse: print('NO')", "A = input()\n\nB = A[::-1]\nflag = True\nfor i in range(len(A)):\n if A[i] != B[i]:\n flag = False\n break\n\nif flag: print('Yes')\nelse: print('No')"]
['Wrong Answer', 'Accepted']
['s882973232', 's392479870']
[2940.0, 3060.0]
[17.0, 17.0]
[157, 157]
p03631
u887207211
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())\nx = max(A, B)\ny = min(C, D)\nif(y-x > 0):\n print(y - x)\nelse:\n print(0)\n', 'A, B, C, D = map(int,input().split())\nx = max(A, C)\ny = min(B, D)\nif(y-x > 0):\n print(y - x)\nelse:\n print(0)\n', 'N = input()\nans = "No"\nif(N == N[::-1]):\n ans = "Yes"\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s338868983', 's370924580', 's324129960']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 21.0]
[111, 111, 65]
p03631
u903005414
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 reversed(N) == N else 'No')", "N = input()\nprint('Yes' if ''.join(list(reversed(N))) == N else 'No')\n"]
['Wrong Answer', 'Accepted']
['s550220622', 's350089258']
[2940.0, 2940.0]
[17.0, 17.0]
[54, 70]
p03631
u904995051
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.
['#ABC070A\nn = input().split()\nprint("Yes" if (a[-1] == a[0]) else "No")', '#ABC070\n\nn = input()\nprint("Yes" if n==n[::-1] else "No")']
['Runtime Error', 'Accepted']
['s829774115', 's279524684']
[9084.0, 9028.0]
[23.0, 23.0]
[70, 76]
p03631
u911153222
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 palindromic_number():\n n = input()\n n_reversed = ''.join(list(reversed(n)))\n print(n_reversed)\n if n == n_reversed:\n print('Yes')\n else:\n print('No')\n\n\nif __name__ == '__main__':\n palindromic_number()\n", "def palindromic_number():\n n = input()\n n_reversed = ''.join(list(reversed(n)))\n if n == n_reversed:\n print('Yes')\n else:\n print('No')\n\n\nif __name__ == '__main__':\n palindromic_number()\n"]
['Wrong Answer', 'Accepted']
['s987366362', 's001781785']
[2940.0, 2940.0]
[17.0, 17.0]
[237, 215]
p03631
u919633157
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.
["# 2019/07/11\n\nimport sys\nfrom heapq import heappop,heappush\n\ninput=sys.stdin.readline\n\nn=int(input())\nedge=[[] for _ in range(n)]\nfor _ in range(n-1):\n u,v,c=map(int,input().split())\n u-=1\n v-=1\n edge[u].append((c,v))\n edge[v].append((c,u))\n\n\ndef dijkstra(s):\n d=[float('inf')]*n\n visited=[False]*n\n d[s]=0\n visited[s]=True\n que=[]\n for e in edge[s]:\n heappush(que,e)\n while que:\n c,v=heappop(que)\n if visited[v]:continue\n d[v]=c\n visited[v]=True\n for cost,vtx in edge[v]:\n if visited[vtx]:continue\n hq=(cost+d[v],vtx)\n heappush(que,hq)\n\n return d\n\nq,k=map(int,input().split())\nk-=1\n\nres=dijkstra(k)\nfor _ in range(q):\n x,y=map(int,input().split())\n x-=1\n y-=1\n print(res[x]+res[y])\n\n", "n=input()\nprint('Yes' if n==n[::-1] else 'No')"]
['Runtime Error', 'Accepted']
['s141088945', 's499380561']
[3064.0, 2940.0]
[18.0, 17.0]
[810, 46]
p03631
u921027074
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')\nelse print('No')", "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')", "a,b,c=input()\nprint('Yes' if a==c else 'No')"]
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s025392829', 's641851663', 's914390846', 's976131893', 's506088272']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 17.0]
[52, 44, 44, 44, 46]
p03631
u922487073
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=map(int, input().split())\nprint("Yes" if s[0]==s[-1] else "No")', 's= input()\nprint("Yes" if s[0]==s[-1] else "No")']
['Runtime Error', 'Accepted']
['s288898584', 's957036944']
[2940.0, 2940.0]
[17.0, 17.0]
[65, 48]
p03631
u940102677
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"[if not int(input())%101 in range(0,100,10)::2])', 'print("YNeos"[not int(input())%101 in range(0,100,10)::2])']
['Runtime Error', 'Accepted']
['s769940991', 's730748144']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 58]
p03631
u946424121
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 = input()\nif n[0] == n[2]:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s388149273', 's869246322', 's942176047']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[63, 62, 63]
p03631
u951480280
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]:print("yes")\nelse:print("no")\n', 'a,b,c,d = map(int,input().split())\n\nprint(min(b, d) - max(a, c))', 'N = input()\n\nif N[0] == N[2]:print("Yes")\nelse:print("No")\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s788550044', 's841226243', 's855538659']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[59, 64, 59]
p03631
u962356464
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 b > c and b <= d:\n print(b-c)\nelif c <= a and d<= b:\n print(d-a)\nelif (d-c)>=(b-a):\n print(b-a)\nelif (b-a)>= (d-c):\n print(d-c)\n ', 'n = input()\nif n[0] == n[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s612937610', 's276096981']
[3060.0, 2940.0]
[18.0, 17.0]
[221, 67]
p03631
u969190727
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")']
['Wrong Answer', 'Accepted']
['s053180455', 's345471388']
[2940.0, 2940.0]
[18.0, 17.0]
[44, 44]
p03631
u971715376
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()\na=int(a)\nb=int(b)\nif a==c:\n print("Yes")\nelse:\n print("No")', 'a,b,c=int(input())\nif a==b:\n print("Yes")\nelse:\n print("No")', 'a,b,c=int(input())\nif a==c:\n print("Yes")\nelif a!=c:\n print("No")', 'a,b,c=int(input())\nif a==c:\n print("Yes")\nelse:\n print("No")', 'a,b,c=input()\na=int(a)\nc=int(c)\nif a==c:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s386166592', 's490754439', 's647640681', 's689449162', 's788451660']
[2940.0, 2940.0, 3064.0, 2940.0, 3064.0]
[17.0, 17.0, 18.0, 17.0, 17.0]
[75, 62, 67, 62, 75]
p03631
u972892985
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(0) == n(2):\n print("Yes")\nelse:\n print("No")', 'a, b, c = input()\n\nif a == c:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s754134154', 's827094927']
[2940.0, 2940.0]
[17.0, 17.0]
[69, 64]
p03631
u975719989
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']
['s327874598', 's660480242']
[3060.0, 2940.0]
[19.0, 17.0]
[69, 64]
p03631
u976225138
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 == reversed(n) else "No")', 'n = input()\nprint("Yes" if n == n[::-1] else "No")']
['Wrong Answer', 'Accepted']
['s019768444', 's527936347']
[9088.0, 8980.0]
[27.0, 25.0]
[54, 50]
p03631
u980492406
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.sort()\nif N == M :\n print('Yes')\nelse :\n print('No')", "N = list(input())\na = ''.join(N)\nN.reverse()\nb = ''.join(N)\nif a == b :\n print('Yes')\nelse :\n print('No')"]
['Wrong Answer', 'Accepted']
['s998810041', 's933166631']
[3064.0, 2940.0]
[17.0, 17.0]
[82, 111]
p03631
u996665352
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[::-1] else "No")']
['Wrong Answer', 'Accepted']
['s352232458', 's433200421']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 50]
p03631
u997023236
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:\n print("No")', 'N = str(input())\n\nif N == N[::-1]:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s606199943', 's945920298']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 73]
p03631
u999669171
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.
['#include <bits/stdc++.h>\n\nusing namespace std;\n\ntypedef long long ll ;\n\n\nint main() {\n string n_str = 0;\n cin >> n_str ;\n if ( n_str[0] == n_str[2] ) puts( "Yes" ) ;\n else puts( "No" ) ;\n\n return 0 ;\n}\n\n', 'a, b, c = input()\nprint( "Yes" if a==c else "No" )\n']
['Runtime Error', 'Accepted']
['s983405698', 's300247940']
[2940.0, 2940.0]
[17.0, 17.0]
[302, 51]
p03632
u005977014
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['A,B,C,D=map(int,input().split())\nif A<=C:\n if D<=B:\n t=B-C\n else:\n t=D-C\nelse:\n if D<=B:\n t=B-A\n else:\n t=D-A\n t=D-A\nif t<=0:\n print(0)\nelse:\n print(t)', 'A,B,C,D=map(int,input().split())\nif A<=C:\n if D>=B:\n t=B-C\n else:\n t=D-C\nelse:\n if D>=B:\n t=B-A\n else:\n t=D-A\nif t<=0:\n print(0)\nelse:\n print(t)']
['Wrong Answer', 'Accepted']
['s899303395', 's372916727']
[9092.0, 9176.0]
[29.0, 32.0]
[170, 162]
p03632
u006425112
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['import sys\na,b,c,d = map(int, sys.stdin.readline().split())\n\nalice = set(range(a, b+1))\nbob = set(range(c, d+1))\n\nprint(len(alice & bob))', 'import sys\na,b,c,d = map(int, sys.stdin.readline().split())\n\nalice = set(range(a, b+1))\nbob = set(range(c, d+1))\n\nans = len(alice & bob)\n\nprint(max(ans - 1, 0))']
['Wrong Answer', 'Accepted']
['s820826036', 's001188723']
[3060.0, 3060.0]
[17.0, 18.0]
[137, 160]
p03632
u006657459
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
["A, B, C, D = input().split(' ')\nA, B, C, D = int(A), int(B), int(C), int(D)\n \nprint(max(min(D, B) - max(C, A), 0)", "A, B, C, D = input().split(' ')\nA, B, C, D = int(A), int(B), int(C), int(D)\n \nprint(min(min(D, B) - max(C, A), 0)", "A, B, C, D = input().split(' ')\nA, B, C, D = int(A), int(B), int(C), int(D)\nif C - B < 0 or D - A < 0:\n print(0)\nif A < C:\n print(B - C)\nelse:\n print(D - A)", "A, B, C, D = input().split(' ')\nA, B, C, D = int(A), int(B), int(C), int(D)\n\nif B < C or D < A:\n print(0)\nelse:\n print(min(D, B) - max(C, A))"]
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s302114858', 's361630940', 's608500730', 's974942509']
[2940.0, 2940.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[113, 113, 165, 147]
p03632
u007263493
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a , b , c, d=map(int,input().split())\nif b<=c and a<= c:\n print(0)\nelif d >= a and c <= b and a >= c and b <= d:\n print(b-c)\nelif d >= b and a>=c:\n print(b-a)\nelif b >=d and c>=a:\n print(d-c)\nelif c <= a and d <=a:\n print(0) \nelse:\n print(d-a)', 'if b<=c and a<= d:\n print(0)\nelif d >= a and c <= b and a >= c and b <= d:\n print(b-c)\nelif d >= b and a>=c:\n print(b-a)\nelif b >=d and c>=a:\n print(d-c)\nelif c <= a and d <=a:\n print(0) \nelse:\n print(d-a)', 'a , b , c, d=map(int,input().split())\nif b<=c or d<= a:\n print(0)\nelif d >= a and c <= b and a >= c and b <= d:\n print(b-c)\nelif d >= b and a>=c:\n print(b-a)\nelif b >=d and c>=a:\n print(d-c)\nelse:\n print(d-a)', 'a , b , c, d=map(int,input().split())\nif b<=c and a<= c:\n print(0)\nelif d >= b and c <= b and a <= c:\n print(b-c)\nelif d >= b and a>=c:\n print(b-a)\nelif b >=d and c>=a:\n print(d-c)\nelif c <= a and d <=a:\n print(0) \nelse:\n print(d-a)']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s127459435', 's769957281', 's973954537', 's325244673']
[3060.0, 3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[261, 223, 223, 250]
p03632
u013408661
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d=map(int,input().split())\nAlice=range(a,b+1)\nBob=range(c,d+1)\nAlice_Bob=set(Alice)+set(Bob)\nprint(len(Alice_Bob))', 'a,b,c,d=map(int,input().split())\nAlice=range(a,b+1)\nBob=range(c,d+1)\nAlice_Bob=set(Alice)&set(Bob)\nif len(Alice_Bob)!=0:\n print(len(Alice_Bob)-1)\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s330432328', 's907007606']
[3060.0, 3060.0]
[18.0, 17.0]
[120, 163]
p03632
u020604402
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['A , B , C , D = map(int,input().split())\nif C > A:\n C ,A = A ,C\n B ,D = D, B\n\nif B <= C:\n print(0)\n quit()\nif A<=C and C <=B:\n print(B-C)\n quit()\nif A<=C and D <=B:\n print(D-C)\n quit()\n', 'A , B , C , D = map(int,input().split())\nif A > C:\n C ,A = A ,C\n B ,D = D, B\n\nif B <= C:\n print(0)\nelif A<=C and C <=B and D<=B:\n print(D-C)\nelif A<=C and C <=B and B <= D:\n print(B-C)']
['Wrong Answer', 'Accepted']
['s505593479', 's230271453']
[2940.0, 3060.0]
[17.0, 17.0]
[209, 199]
p03632
u023229441
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d=map(int,input().split())\nA=[0 for i in range(101)]\nfor i in range(a,b+1):\n A[i]+=1\nfor j in range(c,d+1):\n A[j]+=1\nprint(A.count(2))', 'a,b,c,d=map(int,input().split())\nA=[0 for i in range(100)]\nfor i in range(a,b):\n A[i]+=1\nfor j in range(c,d):\n A[j]+=1\nprint(A.count(2))\n']
['Wrong Answer', 'Accepted']
['s736507987', 's512157266']
[3060.0, 2940.0]
[18.0, 18.0]
[142, 139]
p03632
u024245528
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['A,B,C,D = map(int,input().split())\n\nA_B = B-A\nC_D = D-C\n\nlist_A_B =range(A_B)\nlist_C_D =range(C_D)\n\nlist_judge =[]\n\nfor i in list_A_B:\n for j in list_C_D:\n if i == j:\n list_judge.append(j)\n\nprint(len(list_judge))\n\n', 'A,B,C,D = map(int,input().split())\n\nlist_A_B =range(A,B)\nlist_C_D =range(C,D)\n\nlist_judge =[]\n\n\n# print(list_C_D)\n\nfor i in list_A_B:\n for j in list_C_D:\n if i == j:\n list_judge.append(i)\n else:\n pass\n\nprint(len(list_judge))\n\n']
['Wrong Answer', 'Accepted']
['s847620456', 's267239323']
[2940.0, 2940.0]
[18.0, 18.0]
[235, 282]
p03632
u024782094
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d=map(int,input().split())\nans=min(c,d)-max(a,b)\nif ans<=0:\n print(0)\nelse:\n print(ans)', 'a,b,c,d=map(int,input().split())\nans=min(b,d)-max(a,c)\nif ans<=0:\n print(0)\nelse:\n print(ans)']
['Wrong Answer', 'Accepted']
['s710840012', 's631526481']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 95]
p03632
u029056424
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d=map(int,input().split())\n\nif b<=c or d<=a:\n print(0)\nelse:\n print(min(d,b)-max(a-c))', 'a,b,c,d=map(int,input().split())\n \nif b<=c or d<=a:\n print(0)\nelse:\n print(min(d,b)-max(a,c))']
['Runtime Error', 'Accepted']
['s352924218', 's236129445']
[8884.0, 9168.0]
[25.0, 24.0]
[94, 95]
p03632
u037098269
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d = map(int, input().split())\nif c >= b or a >= d:\n print(0)\nelse:\n if a <= c:\n print(min(b-c,d-c))\n else:\n print(min(d-a,b-a)\n ', 'a,b,c,d = map(int, input().split())\nif c >= b or a >= d:\n print(0)\nelse:\n if a <= c:\n print(min(b-c,d-c))\n else:\n print(min(d-a,b-a))']
['Runtime Error', 'Accepted']
['s346705652', 's921274580']
[2940.0, 2940.0]
[17.0, 17.0]
[160, 156]
p03632
u050708958
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['A,B,C,D = map(int, input().split())\ns = A if A > B else B\ne = C if C < D else D\nif e < s:\n print(0)\nelse:\n print(e-s)', 'A,B,C,D = map(int, input().split())\ns = A if A > C else C\ne = B if B < D else D\nif e < s:\n print(0)\nelse:\n print(e-s)']
['Wrong Answer', 'Accepted']
['s922493386', 's206304842']
[2940.0, 2940.0]
[17.0, 17.0]
[123, 123]
p03632
u052332717
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d = map(int, input().split())\n\nif b<=c:\n print(0)\nelif a<=c and b<=d:\n print(b-c)\nelif a<=c and d<=b:\n print(d-c)\nelif c<=a and b<=d:\n print(b-a)\nelif c<=a and d<=b:\n print(d-a)\nelif d<=a\n print(0)', 'a,b,c,d = map(int,input().split())\nif c<b:\n distance = min(b,d) - max(a,c)\n print(max(0,distance))\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s019060995', 's314908827']
[2940.0, 2940.0]
[17.0, 18.0]
[221, 123]
p03632
u067983636
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['A, B, C, D = map(int, input().split())\nprint(max(0, min(C, D) - max(A, B)))', 'A, B, C, D = map(int, input().split())\nprint(max(0, min(B, D) - max(A, C)))']
['Wrong Answer', 'Accepted']
['s723857486', 's831089544']
[2940.0, 2940.0]
[17.0, 17.0]
[75, 75]
p03632
u072717685
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a, b, c, d = map(int, input().split())\nend = min((a + b),(c + d))\nstart max(a,c)\nr = max(0, end - start)\nprint(r)\n', 'a, b, c, d = map(int, input().split())\n\nstart = max(a, c)\nend = min(b, d)\n\nr = max(0, end - start)\nprint(int(r))\n']
['Runtime Error', 'Accepted']
['s222593587', 's870951733']
[2940.0, 2940.0]
[17.0, 20.0]
[114, 113]
p03632
u074220993
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['A, B, C, D = map(int, input().split())\ninit = max(A, C)\nend = min(B, D)\nprint(init-end if init < end else 0)', 'with open(0) as f:\n a, b, c, d = map(int, f.read().split())\nf = lambda x: 0 if x < 0 else x\nprint(f(min(b, d) - max(a, c)))']
['Wrong Answer', 'Accepted']
['s036428067', 's135769264']
[9064.0, 9048.0]
[26.0, 27.0]
[108, 126]
p03632
u074338678
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a, b, c, d = map(int, input().split())\n\nif a<=c<=b<=d:\n print(b-c)\nelif b<=a<=d<=c:\n print(d-a)\nelif a<=c<=d<=b:\n print(d-c)\nelif c<=a<=b<=d:\n print(b-a)\nelif b=c or a=d:\n print(1)\nelse:\n print(0)', 'a, b, c, d = map(int, input().split())\n\nt = min(b, d) - max(a, c)\n\nprint(max(0, t))']
['Runtime Error', 'Accepted']
['s292078480', 's435822834']
[2940.0, 2940.0]
[17.0, 17.0]
[202, 83]
p03632
u075595666
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d = [int(i) for i in input().split()]\nif c >= b or d >= a:\n print(0)\nelse:\n if a <= c and b >= d:\n print(d-c)\n elif c < a and b < d:\n print(b-a)\n elif a <= c < b <= d:\n print(b-c)\n else:\n print(d-a)', 'a,b,c,d = [int(i) for i in input().split()]\nif c >= b or d <= a:\n print(0)\nelse:\n if a <= c and b >= d:\n print(d-c)\n elif c < a and b < d:\n print(b-a)\n elif a <= c < b <= d:\n print(b-c)\n else:\n print(d-a)']
['Wrong Answer', 'Accepted']
['s616650335', 's886639621']
[3060.0, 3060.0]
[17.0, 17.0]
[221, 221]
p03632
u077127204
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['import numpy as np\n\nA, B, C, D = map(int, input().split())\nx = zip(*sorted(zip([A, B, C, D], [1, -1, 1, -1])))\nif x[1][1] == 1:\n print(x[2][0] - x[1][0])\nelse:\n print(0)\n', 'x = map(int, input().split())\nx = sorted(zip(x, [1, -1, 1, -1]))\nif x[1][1] == 1:\n print(x[2][0] - x[1][0])\nelse:\n print(0)\n']
['Runtime Error', 'Accepted']
['s676146913', 's003367654']
[14296.0, 2940.0]
[152.0, 17.0]
[172, 126]
p03632
u078349616
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['A, B, C, D = map(int, input().split())\nprint(max(C-B, 0))', 'A, B, C, D = map(int, input().split())\nprint(max(min(B,D) - max(A,C) 0))\n', 'A, B, C, D = map(int, input().split())\nprint(max(min(B,D) - max(A,C), 0))\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s540504159', 's758552931', 's886239847']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 24.0]
[57, 73, 74]
p03632
u078932560
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a, b, c, d = list(map(int, input()))\nprint(max(0, min(b, d) - max(a, c)))', 'a, b, c, d = list(map(int, input().split()))\nprint(max(0, min(b, d) - max(a, c)))\n']
['Runtime Error', 'Accepted']
['s963462108', 's459995459']
[2940.0, 2940.0]
[18.0, 17.0]
[73, 82]
p03632
u088529499
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\n\nif c>=b or d<=a:\n print(0)\nelse:\n if a<=c and b<=d:\n print(b-c)\n elif a<=c and b>d:\n print(d-c)\n elif a>c and b<=d:\n print(b-a)\n else:\n print(d-a)', 'a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\n\nif c>=b or d<=a:\n print(0)\nelse:\n if a<=c and b<=d:\n print(b-c)\n elif a<=c and b>d:\n print(d-c)\n elif a>c and b<=d:\n print(b-a)\n else:\n print(d-a)', 's = input().split()\na=int(s[0])\nb=int(s[1])\nc=int(s[2])\nd=int(s[3])\n\nif c>=b or d<=a:\n print(0)\nelse:\n if a<=c and b<=d:\n print(b-c)\n elif a<=c and b>d:\n print(d-c)\n elif a>c and b<=d:\n print(b-a)\n else:\n print(d-a)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s079418024', 's890315525', 's937395749']
[3060.0, 3060.0, 3064.0]
[18.0, 17.0, 17.0]
[250, 250, 258]
p03632
u088974156
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d=map(int.input().split())\nprint(max(0,min(b,d)-max(a,c)))', 'a,b,c,d=map(int.input().split())\nprint(min(b,d)-(max(a,c))', 'a,b,c,d=map(int,input().split())\nprint(max(0,min(b,d)-max(a,c)))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s420034026', 's708771630', 's773204594']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[64, 58, 64]
p03632
u089142196
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['A,B,C,D=map(int,input().split())\n\nprint(max(0,min(C,D))-max(A,B)))', 'A,B,C,D=map(int,input().split())\n\ns=min(B,D)-max(A,C)\nprint(max(0,s))']
['Runtime Error', 'Accepted']
['s973553860', 's709107696']
[2940.0, 2940.0]
[17.0, 18.0]
[66, 69]
p03632
u095021077
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['A, B, C, D=map(int, input().split())\nX=set([for i in range(A, B+1)])\nprint(sum([1 for i in range(C, D+1) if i in X]))', 'A, B, C, D=map(int, input().split())\nX=set([i for i in range(A, B+1)])\nprint(sum([1 for i in range(C, D+1) if i in X]))\n', 'A, B, C, D=map(int, input().split())\nX=set([i for i in range(A, B)])\nprint(sum([1 for i in range(C, D) if i in X]))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s132632651', 's262670202', 's005223662']
[8884.0, 9060.0, 9164.0]
[27.0, 27.0, 25.0]
[117, 120, 115]
p03632
u095969144
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d = map(int, input().split())\nret = max(b,d) - min(a,c)\nif ret > 0 :\n print(ret)\nelse:\n print("0")', 'def mi(x,y):\n if (x - y) > (y - x):\n return x - y\n else:\n return y - x\n\ndef ma(x,y):\n if (x - y) > (y - x):\n return y - x\n else:\n return x - y\n\n\na,b,c,d = map(int, input().split())\n\nprint(ma(b,d) - mi(a,c))\n', 'def ko(x,y):\n if (x - y) > (y - x):\n return x - y\n else:\n return y - x\n\na,b,c,d = map(int, input().split())\n\nprint(ko(b,d) - ko(a,c))', 'a,b,c,d = map(int, input().split())\nans = min(b,d) - max(a,c)\nif ans > 0 :\n print(ans)\nelse:\n print("0")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s323832840', 's432190072', 's615800434', 's982742994']
[2940.0, 3316.0, 3316.0, 2940.0]
[17.0, 21.0, 21.0, 17.0]
[110, 247, 153, 110]
p03632
u098968285
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a, b, c, d = map(int, input().split())\nans = max(0, max(a, c) - min(b, d))\nprint(ans)\n', 'a, b, c, d = map(int, input().split())\nans = max(0, min(b, d) - max(a, c))\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s664743990', 's990845622']
[2940.0, 2940.0]
[17.0, 18.0]
[86, 86]
p03632
u102960641
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d = map(int, input().split())\nprint(max(0,min(b,d)-max(a,c))', 'a,b,c,d = map(int, input().split())\nprint(max(0,min(b,d)-max(a,c)))']
['Runtime Error', 'Accepted']
['s338094311', 's281209598']
[2940.0, 2940.0]
[17.0, 18.0]
[66, 67]
p03632
u103902792
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d = map(int,input().split())\ne = max(a,c)\nf = min(b,d)\n\nprint(min(0,f-e))', 'a,b,c,d = map(int,input().split())\ne = max(a,c)\nf = min(b,d)\n\nprint(max(0,f-e))\n\n']
['Wrong Answer', 'Accepted']
['s573447478', 's367880825']
[2940.0, 2940.0]
[17.0, 18.0]
[79, 81]
p03632
u113255362
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d=map(int,input().split())\nS,F,countS,countF = 0,0,0,0\nif a<=c:\n countS = c\n S = a\nelse:\n countS = a\n S = c\nif b <= d:\n countF = b\n F = d\nelse:\n countF = d\n F = b\ncount=0\nflagC = False\nfor i in range(S,F+1):\n if i == countS:\n flagC = True\n if flagC:\n count+=1\n if i == countF:\n break\nprint(count)\n', 'a,b,c,d=map(int,input().split())\nS,F,countS,countF = 0,0,0,0\nif a<=c:\n countS = c\n S = a\nelse:\n countS = a\n S = c\nif b <= d:\n countF = b\n F = d\nelse:\n countF = d\n F = b\ncount=0\nflagC = False\nfor i in range(S,F+1):\n if flagC:\n count+=1\n if i == countS:\n flagC = True\n if i == countF:\n break\nprint(count)']
['Wrong Answer', 'Accepted']
['s718014473', 's205088220']
[9072.0, 9044.0]
[27.0, 29.0]
[323, 322]
p03632
u114366889
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['A,B,C,D = map(int,input().split())\n\ndef judge(ans):\n\tif ans > 0:\n\t\tprint(ans)\n\telse:\n\t\tprint(0)\n\nif A < C :\n\tif D < B: judge(D-C)\n\telse: judge(B-C)\nelse:\n\tif B > D:\n\t\tjudge(C-D)\n\telse:\n\t\tjudge(C-B)\n\nprint(0)\n', 'A,B,C,D = map(int,input().split())\n\ndef judge(ans):\n\tif ans > 0:\n\t\tprint(ans)\n\telse:\n\t\tprint(0)\n\nif A < C :\n\tif B < D: \n\t\tjudge(B-C)\n\telse: \n\t\tjudge(D-C)\nelse:\n\tif B > D:\n\t\tjudge(D-A)\n\telse:\n\t\tjudge(B-A)\n\n']
['Wrong Answer', 'Accepted']
['s588756748', 's638243388']
[2940.0, 2940.0]
[17.0, 17.0]
[208, 205]
p03632
u114648678
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['0 33 66 99', 'a,b,c,d=map(int,input().split())\nif b<=c or d<=a:\n print(0)\nelif a<c:\n print(min(d,b)-c)\nelse:\n print(min(b,d)-a)']
['Runtime Error', 'Accepted']
['s158783427', 's631832831']
[2940.0, 3060.0]
[17.0, 17.0]
[10, 116]
p03632
u114920558
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['A, B, C, D = map(int, input().split())\nprint(min(min(B, D) - max(A, C), 0))', 'A, B, C, D = map(int, input().split())\nprint(max(min(B, D) - max(A, C), 0))\n']
['Wrong Answer', 'Accepted']
['s687533931', 's474010991']
[2940.0, 2940.0]
[17.0, 17.0]
[75, 76]
p03632
u118019047
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d = map(int,input().split())\nprint(max(min(b,d)-max(a,c)),0)', 'a,b,c,d = map(int,input().split())\nprint(max(min(b,d)-max(a,c),0)', 'a,b,c,d = map(int,input().split())\nprint(max(min(b,d)-max(a,c),0))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s013711874', 's360391697', 's532627282']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[66, 65, 66]
p03632
u123745130
2,000
262,144
Alice and Bob are controlling a robot. They each have one switch that controls the robot. Alice started holding down her button A second after the start-up of the robot, and released her button B second after the start-up. Bob started holding down his button C second after the start-up, and released his button D second after the start-up. For how many seconds both Alice and Bob were holding down their buttons?
['a,b,c,d=int(input().split())\nx=min(b,d)-max(a,c)\nprint(x if x>0 else 0)', 'a,b,c,d=map(int,input().split())\nx=min(b,d)-max(a,c)\nprint(x if x>0 else 0)']
['Runtime Error', 'Accepted']
['s328978273', 's949421690']
[2940.0, 2940.0]
[17.0, 17.0]
[71, 75]