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
|
---|---|---|---|---|---|---|---|---|---|---|
p03262 | u955251526 | 2,000 | 1,048,576 | There are N cities on a number line. The i-th city is located at coordinate x_i. Your objective is to visit all these cities at least once. In order to do so, you will first set a positive integer D. Then, you will depart from coordinate X and perform Move 1 and Move 2 below, as many times as you like: * Move 1: travel from coordinate y to coordinate y + D. * Move 2: travel from coordinate y to coordinate y - D. Find the maximum value of D that enables you to visit all the cities. Here, to visit a city is to travel to the coordinate where that city is located. | ['import math\nn, init = map(int, input().split())\nx = list(map(lambda a: int(a)-init, input().split()))\ng = x[0]\nfor i in range(n-1):\n if g == 1:\n break\n elif x[i+1] % g != 0:\n g = math.gcd(g,x[i+1])\nprint(g)\n', 'n, init = map(int,input().split())\nx = list(map(lambda x: abs(int(x)-init), input().split()))\ng = x[0]\ndef gcd(x, y):\n if y == 0:\n return x\n return gcd(y, x%y)\nfor i in range(1,n):\n g = gcd(g,x[i])\nprint(g)\n'] | ['Runtime Error', 'Accepted'] | ['s295248125', 's035234373'] | [15148.0, 14252.0] | [58.0, 106.0] | [227, 223] |
p03262 | u973840923 | 2,000 | 1,048,576 | There are N cities on a number line. The i-th city is located at coordinate x_i. Your objective is to visit all these cities at least once. In order to do so, you will first set a positive integer D. Then, you will depart from coordinate X and perform Move 1 and Move 2 below, as many times as you like: * Move 1: travel from coordinate y to coordinate y + D. * Move 2: travel from coordinate y to coordinate y - D. Find the maximum value of D that enables you to visit all the cities. Here, to visit a city is to travel to the coordinate where that city is located. | ['N,X = map(int,input().split())\nlist = [int(x) for x in input().split()]\nlist_dist = sorted([abs(x - X) for x in list])\n\ndef gcd(a, b):\n if a < b:\n a , b = b , a\n while b:\n a, b = b, a % b\n return a\n\nans = list_dist[0]\n\nfor x in list_dist[1:]:\n result = gcd(result,x)\n\nprint(result)', 'import functools\nN,X = map(int,input().split())\nlist = list(map(int,input().split()))\ndiff_x = [abs(X-i) for i in list]\n\ndef gcd(a,b):\n while b:\n a,b = b,a%b\n return a\n\nprint(functools.reduce(gcd,diff_x))'] | ['Runtime Error', 'Accepted'] | ['s974284843', 's173797131'] | [14228.0, 14748.0] | [93.0, 79.0] | [307, 217] |
p03262 | u977389981 | 2,000 | 1,048,576 | There are N cities on a number line. The i-th city is located at coordinate x_i. Your objective is to visit all these cities at least once. In order to do so, you will first set a positive integer D. Then, you will depart from coordinate X and perform Move 1 and Move 2 below, as many times as you like: * Move 1: travel from coordinate y to coordinate y + D. * Move 2: travel from coordinate y to coordinate y - D. Find the maximum value of D that enables you to visit all the cities. Here, to visit a city is to travel to the coordinate where that city is located. | ['from fractions import gcd\nfrom functools import reduce\n\ndef gcd(*numbers):\n return reduce(math.gcd, numbers)\n\nN, X = map(int, input().split())\nnums = list(map(int, input().split()))\nnums.append(X)\nnums.sort()\ndists = []\n\nfor i in range(N):\n dist = nums[i + 1] - nums[i]\n dists.append(dist)\n \nD = gcd(*dists)\n\nprint(D)', 'import math\nfrom functools import reduce\n\nN, X = map(int, input().split())\nnums = list(map(int, input().split()))\nnums = list(map(lambda i: abs(i - X), nums))\n\nD = reduce(gcd, nums)\nprint(D)', 'n, x = map(int, input().split())\nA = [int(i) for i in input().split()]\nD = []\n\nfor i in range(n):\n D.append(abs(x - A[i]))\n \ndef gcd(x, y):\n while y != 0:\n x, y = y, x % y\n return x\n\nfor i in range(n - 1):\n D[i + 1] = gcd(D[i], D[i + 1])\n \nprint(D[-1])'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s416531424', 's511940945', 's308819938'] | [16308.0, 14616.0, 14224.0] | [129.0, 64.0, 117.0] | [329, 190, 277] |
p03262 | u993435350 | 2,000 | 1,048,576 | There are N cities on a number line. The i-th city is located at coordinate x_i. Your objective is to visit all these cities at least once. In order to do so, you will first set a positive integer D. Then, you will depart from coordinate X and perform Move 1 and Move 2 below, as many times as you like: * Move 1: travel from coordinate y to coordinate y + D. * Move 2: travel from coordinate y to coordinate y - D. Find the maximum value of D that enables you to visit all the cities. Here, to visit a city is to travel to the coordinate where that city is located. | ['N,X = map(int,input().split())\nL = list(map(int,input().split()))\n\nM = [abs(i - X) for i in L]\n\nD = []\n\n\nfor m in range(0,len(M)):\n for i in range(0,len(M)):\n if M[m] % M[i] == 0:\n D.append(M[m])\n \nprint(max(D))\n', 'N,X = map(int,input().split())\n\nL = list(map(int,input().split()))\n\nM = sorted([abs(i - X) for i in L])\n\nm = min(M)\n\nprint(M)\n\nif m == 0:\n print(m)\nelse:\n for i in range(0,len(M)):\n if M[i] % m > 0:\n print(1)\n break\n else:print(m)', 'N,X = map(int,input().split())\nD = list(map(int,input().split()))\n\ndist = [abs(X - D[i]) for i in range(N)]\n\ndef gcd(a,b):\n if b == 0:\n return a\n else:\n return gcd(b,a % b)\n \nD = 0 \n \nfor i in range(N):\n D = gcd(D,dist[i])\n \nprint(D)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s558549474', 's697622078', 's392721234'] | [14224.0, 15912.0, 14252.0] | [2104.0, 103.0, 100.0] | [226, 246, 251] |
p03262 | u997641430 | 2,000 | 1,048,576 | There are N cities on a number line. The i-th city is located at coordinate x_i. Your objective is to visit all these cities at least once. In order to do so, you will first set a positive integer D. Then, you will depart from coordinate X and perform Move 1 and Move 2 below, as many times as you like: * Move 1: travel from coordinate y to coordinate y + D. * Move 2: travel from coordinate y to coordinate y - D. Find the maximum value of D that enables you to visit all the cities. Here, to visit a city is to travel to the coordinate where that city is located. | ['N,X=map(int,input().split())\nx=list(map(int,input().split()))\nL=x+[X]\nif N==1:\n\tprint(abs(X-x[0]))\nelse:\n\tLL=[L[i+1]-L[i] for i in range(N)]\n\tM=min(LL)\n\twhile any([l%M!=0 for l in LL]):\n\t\tM=M-1\n\tprint(M)', 'N,X=map(int,input().split())\nx=list(map(int,input().split()))\nL=x+[X]\nif N==1:\n\tprint(abs(X-x[0]))\nelse:\n\tLL=[abs(L[i+1]-L[i]) for i in range(N)]\n\tdef gcd(a,b):\n\t\twhile b>0:\n\t\t\ta,b=b,a%b\n\t\treturn a\n\tdef GCD(LIST):\n\t\tif len(LIST)==2:\n\t\t\treturn gcd(LIST[0],LIST[1])\n\t\telse:\n\t\t\treturn([gcd(LIST[0],LIST[1])]+LIST[2::])\n\tprint(GCD(LL))', 'from functools import reduce\nN,X=map(int,input().split())\nx=list(map(int,input().split()))\nL=x+[X]\nif N==1:\n\tprint(abs(X-x[0]))\nelse:\n\tLL=[abs(L[i+1]-L[i]) for i in range(N)]\n\tdef gcd(a,b):\n\t\twhile b>0:\n\t\t\ta,b=b,a%b\n\t\treturn a\n\tprint(reduce(gcd,LL))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s192743242', 's810037459', 's208575590'] | [14252.0, 17548.0, 14744.0] | [2104.0, 73.0, 94.0] | [203, 331, 249] |
p03264 | u003501233 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K=int(input())\nprint((k/2)*((k+1)/2))', 'k=int(input())\nprint((k/2)*((k+1)/2))', 'k=int(input())\nprint((k/2)∗((k+1)/2))', 'k=int(input())\nprint((k//2)*((k+1)//2))'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s673077733', 's687799304', 's767609589', 's775022420'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [37, 37, 39, 39] |
p03264 | u006425112 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['n = int(input())\n\nif n % 2 == 0:\n print((n / 2) ** 2)\nelse:\n print(((n+1)/2) * (n-1)/2)', 'n = int(input())\n\nif n % 2 == 0:\n print((n / 2) ** 2)\nelse\n print(((n+1)/2) * (n-1)/2)', 'n = int(input())\n\nif n % 2 == 0:\n print(int((n / 2) ** 2))\nelse:\n print(int(((n+1)/2) * (n-1)/2))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s041938290', 's443422497', 's599494000'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [93, 92, 103] |
p03264 | u010777300 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\ns = 0\nfor x in range(1, k + 1):\n for y in range(x, k + 1):\n if y % 2 == 1 and x % 2 == 0:\n s = s + 1\nprint(s)\n', 'k = int(input())\ns = 0\nfor x in range(2, k + 1, 2):\n for y in range(x, k + 1):\n if y % 2 == 1:\n s += 1\nprint(s)', 'k = int(input())\ns = 0\nfor x in range(1, k + 1):\n for y in range(1, k + 1):\n if y % 2 == 1 and x % 2 == 0:\n s = s + 1\nprint(s)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s055230487', 's471797393', 's178016782'] | [9060.0, 9156.0, 9052.0] | [27.0, 27.0, 30.0] | [136, 120, 136] |
p03264 | u016770756 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['import math\n\nall_number = K * K\neven_number = math.floor(K/2) * math.floor(K/2)\nodd_number = math.ceil(K/2) * math.ceil(K/2)\nanswer = (all_number - even_number - odd_number)/2\nprint(answer)', 'import math\nK = input()\nall_number = K * K\neven_number = math.floor(K/2) * math.floor(K/2)\nodd_number = math.ceil(K/2) * math.ceil(K/2)\nanswer = (all_number - even_number - odd_number)/2\nprint(answer)', 'import math\nK = int(input())\nall_number = K * K\neven_number = math.floor(K/2) * math.floor(K/2)\nodd_number = math.ceil(K/2) * math.ceil(K/2)\nanswer = (all_number - even_number - odd_number)/2\nprint(answer)', 'import math\n\nall_number = K * K\neven_number = math.floor(all_number/2)*math.floor(all_number/2)\nodd_number = math.ceil(all_number/2)*math.ceil(all_number/2)\nanswer = (all_number - even_number - odd_number)/2', 'import math\nK = int(input())\nall_number = K * K\neven_number = math.floor(K/2) * math.floor(K/2)\nodd_number = math.ceil(K/2) * math.ceil(K/2)\nanswer = (all_number - even_number - odd_number)/2\nprint(int(answer))'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s037620789', 's127183724', 's245525370', 's433768452', 's038544362'] | [2940.0, 2940.0, 3060.0, 2940.0, 3060.0] | [18.0, 18.0, 17.0, 17.0, 17.0] | [191, 202, 207, 209, 212] |
p03264 | u022343475 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['import numpy as np\n\n\ndef num_even_odd(num):\n num_odd = np.ceil(num/2)\n num_even = num//2\n return num_odd, num_even\n\n\ndef main(num):\n odds, evens = num_even_odd(num)\n print(odds * evens)\n\n\nif __name__ == "__main__":\n main(input())', 'import numpy as np\n\n\ndef num_even_odd(num):\n num_odd = np.ceil(num/2)\n num_even = num//2\n return num_odd, num_even\n\n\ndef main(num):\n odds, evens = num_even_odd(num)\n print(int(odds * evens))\n\n\nif __name__ == "__main__":\n main(int(input()))'] | ['Runtime Error', 'Accepted'] | ['s795782332', 's184541376'] | [12452.0, 12404.0] | [152.0, 155.0] | [235, 257] |
p03264 | u023229441 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['print((int(input())//2)*(int(input())-(int(input())//2))', 'print((int(input())//2)*(int(input())-int(input())//2))', 'N=int(input())\nprint((N//2)*(N-N//2))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s716202617', 's755823260', 's517136171'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [56, 55, 37] |
p03264 | u027675217 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['108proA\nk = int(input())\nans = (k//2) * ((k+1)//2)\nprint(ans)', 'k = int(input())\nans = (k//2) * ((k+1)//2)\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s653519356', 's396599554'] | [2940.0, 2940.0] | [17.0, 18.0] | [61, 53] |
p03264 | u028014940 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['\nk=int(input())\n\nif k%2==0:print(int((k/2)**2))\nelse:print(int((k/2)*(k-1)/2))', '\nk=int(input())\n\nif k%2==0:print(int((k/2)**2))\nelse:print(int(-(-k//2)*((k-1)/2)))'] | ['Wrong Answer', 'Accepted'] | ['s767289863', 's689258442'] | [3060.0, 2940.0] | [17.0, 17.0] | [78, 83] |
p03264 | u033524082 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k=int(input())\nprint(k//2*//2 if k%2==0 else k//2*(k+1)//2)', 'k=int(input())\nprint((k//2)**2 if k%2==0 else(k//2)*(k+1)//2)\n'] | ['Runtime Error', 'Accepted'] | ['s919085619', 's713187346'] | [2940.0, 2940.0] | [18.0, 17.0] | [59, 62] |
p03264 | u048867491 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K=int(input())\nif K % 2 ==0:\n print((K//2)**2)\nelse:\n print((K+1)*(K-1))', 'K=int(input())\nif K % 2 ==0:\n print((K//2)**2)\nelse:\n print((K+1)*(K-1)//4)'] | ['Wrong Answer', 'Accepted'] | ['s867851714', 's751461885'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 77] |
p03264 | u048868255 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = input()\nk = int(k)\nif k % 2 == 0:\n print((k/2)**2)\nelse:\n print(k//2)*(k//2+1)', 'k = int(input())\nprint(int(k//2)*((k+1)//2))'] | ['Runtime Error', 'Accepted'] | ['s950991590', 's924534670'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 44] |
p03264 | u050708958 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['n = int(input())\nprint((k/2)*((k+1)/2))', 'k = int(input())\nprint(k//2 * (k - k//2))'] | ['Runtime Error', 'Accepted'] | ['s853338563', 's601867291'] | [2940.0, 2940.0] | [17.0, 17.0] | [39, 41] |
p03264 | u054782559 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['a=int(input())\nif(a%2==0):\n ans=(a/2)**2\n return ans\nelse:\n ans=((a-1)/2)*((a+1)/2)\n return ans\nprint(ans)', 'a=int(input())\nif a%2==0:\n ans=(a/2)**2\nelse:\n ans=((a-1)/2)*((a+1)/2)\nprint(ans)', 'input(a)\nif(a%2==1)\n\ti=(a+1)/2\n\tj=(a-1)/2\nelse \n\ti=a/2\n\tj=a/2\nprint(i+j)', 'input(a)\nif(a%2==1):\n\ti=(a+1)/2\n\tj=(a-1)/2\nelse:\n\ti=a/2\n\tj=a/2\nprint(i+j)', 'a=int(input())\nif(a%2==0):\n ans=(a/2)**2\n return\nelse:\n ans=((a-1)/2)*((a+1)/2)\n return\nprint(ans)', 'input(a)\nif a%2==1:\n\ti=(a+1)/2\n\tj=(a-1)/2\nelse:\n\ti=a/2\n\tj=a/2\nprint(i*j)', 'a=input()\nif(a%2==0):\n print((a/2)**2)\n return\nelse:\n print(((a-1)/2)*((a+1)/2))', 'a=input()\nif(a%2==0):\n ans=(a/2)**2\n return\nelse:\n ans=((a-1)/2)*((a+1)/2)\n return\nprint(ans)', 'a=int(input())\nif a%2==0:\n ans=(a/2)**2\n return\nelse:\n ans=((a-1)/2)*((a+1)/2)\n return\nprint(ans)', 'input(a)\nif(a%2==1):\n\ti=(a+1)/2\n\tj=(a-1)/2\nelse:\n\ti=a/2\n\tj=a/2\nprint(i*j)', 'input(a)\nif a/2==0:\n\ti=(a+1)/2\n\tj=(a-1)/2\nelse:\n\ti=a/2\n\tj=a/2\nprint(i*j)', 'a=int(input())\nif a%2==0:\n ans=int((a/2)**2)\nelse:\n ans=int(((a-1)/2)*((a+1)/2))\nprint(ans)'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s009742941', 's160494425', 's464712500', 's514400945', 's641977269', 's709484145', 's774215386', 's869620423', 's904782892', 's934178944', 's985713974', 's885447564'] | [9020.0, 9132.0, 2940.0, 2940.0, 9032.0, 2940.0, 9096.0, 9092.0, 9008.0, 2940.0, 2940.0, 9168.0] | [26.0, 29.0, 17.0, 17.0, 26.0, 17.0, 26.0, 22.0, 29.0, 17.0, 17.0, 25.0] | [110, 83, 72, 73, 102, 72, 83, 97, 101, 73, 72, 93] |
p03264 | u059262067 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['x = int(input())\n\nif x % 2 == 0:\n print(int((x//2)**2))\nelse:\n print(int((x//2)*((x//2)+1))\n', 'x = int(input())\n\nif x % 2 == 0:\n print(int((x//2)**2))\nelse:\n print(int((x//2)*((x//2)+1)))\n'] | ['Runtime Error', 'Accepted'] | ['s638330566', 's869963508'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 95] |
p03264 | u061975638 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nif k%2 ==0:\n print((k/2)*(k/2))\nelse:\n print(((k+1)/2)*((k-1)/2))', 'k = int(input())\nif k%2 =0:\n print((k/2)**2)\nelse:\n print(((k+1)/2)*((k-1)/2))', 'k = int(input())\nif k%2 ==0:\n print((k//2)*(k//2))\nelse:\n print(((k+1)//2)*((k-1)//2))\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s192917170', 's218100085', 's021581127'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 18.0] | [84, 80, 89] |
p03264 | u068862866 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\n\nev = K//2\nodd = k//2 + K%2\nprint(ev*odd)', 'K = int(input())\n \nev = K//2\nodd = K//2 + K%2\nprint(ev*odd)'] | ['Runtime Error', 'Accepted'] | ['s631795495', 's756841415'] | [9100.0, 9156.0] | [23.0, 24.0] | [58, 59] |
p03264 | u076894102 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | [' if val1 % 2 == 0:\n print(int((val1 / 2) * (val1 / 2)))\n else:\n val1 = val1 + 1\n print(int(((val1 / 2) * (val1 / 2)) - (val1 / 2)))', 'aa', 'k=input() \nodd=1\neven=0\nfor i in range(2,k+1): \n if i%2==0:\n even+=1\n else:\n odd+=1\nprint(odd*even)', ' if n & 1 == 0:\n print((n // 2) ** 2)\n else:\n print((n // 2) * (n // 2 + 1))', ' if val1 % 2 == 0:\n print(int((val1 / 2) * (val1 / 2)))\n else:\n val1 = val1 + 1\n print(int(((val1 / 2) * (val1 / 2)) - (val1 / 2)))', 'val1=int(input())\nif val1%2==0:\n print((val1/2)*(val1/2))\nelse:\n val1=val1+1\n print(((val1/2)*(val1/2))-(val1/2)', 'if val1 % 2 == 0:\n print(int((val1 // 2) * (val1 // 2)))\n else:\n val1 = val1 + 1\n print(int(((val1 // 2) * (val1 // 2)) - (val1 // 2)))', ' if val1 % 2 == 0:\n print(int((val1 // 2) * (val1 // 2)))\n else:\n val1 = val1 + 1\n print(int(((val1 // 2) * (val1 // 2)) - (val1 // 2)))', 'val1=int(input())\nif val1%2==0:\n print((val1//2)*(val1//2))\nelse:\n val1=val1+1\n print(((val1//2)*(val1//2))-(val1//2))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s105078440', 's133217139', 's168721573', 's294994980', 's310524087', 's434036810', 's881611480', 's963611958', 's738710006'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [158, 2, 125, 96, 158, 121, 159, 163, 127] |
p03264 | u078276601 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nif k%2 == 0:\n print(int((k/2)**2))\nelse:\n print(int(k/2 * (k+1)/2))', 'k = int(input())\nif k%2 == 0:\n print(int((k//2)**2))\nelse:\n print(int(k//2 * (k+1)//2))'] | ['Wrong Answer', 'Accepted'] | ['s629439969', 's092343046'] | [9072.0, 9104.0] | [32.0, 28.0] | [90, 93] |
p03264 | u084968244 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ["# cook your dish here\nimport numpy as np\nif __name__ == '__main__':\n xy = [int(i) for i in input().split()]\n a1 = np.array([xy[0], xy[1]])\n a2 = np.array([xy[2], xy[3]])\n b = a2 - a1\n r = np.pi / 2\n rot = np.matrix((\n (np.cos(r), np.sin(r)),\n (-np.sin(r), np.cos(r))\n ))\n c = np.dot(b, rot)\n a3 = a2+c\n a4 = a1+c\n print('{} {} {} {}'.format(np.round(a3[0,0]), np.round(a3[0,1]), np.round(a4[0,0]), np.round(a4[0,1])))\n", "if __name__ == '__main__':\n K = input()\n odds = int(K+1)/2\n even = K/2\n print(odds*even)", "if __name__ == '__main__':\n K = int(input())\n odds = int(K+1/2)\n even = int(K/2)\n print(odds*even)", "if __name__ == '__main__':\n K = int(input())\n odds = int((K+1)/2)\n even = int(K/2)\n print(odds*even)"] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s543707424', 's739626100', 's932865885', 's987204890'] | [21060.0, 2940.0, 2940.0, 2940.0] | [292.0, 18.0, 17.0, 17.0] | [465, 100, 110, 112] |
p03264 | u086503932 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\nprint(pow(K//2,2)) if K % 2 == 0 else print(pow((K+1)//2,2))', 'K = int(input())\nprint(K*K//4) if K % 2 == 0 else print(K//2*((K+1)//2))\n'] | ['Wrong Answer', 'Accepted'] | ['s059055398', 's065862560'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 73] |
p03264 | u089230684 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['team=input()\nx=team[0]\nflag=0\nd=0\nfor i in range(Len(team)):\n if team[i]==x:\n flag+=1\n else:\n x=team[i]\n flag=0\n if flag==7:\n print("yes")\n d=1\n break\nif d!=1:\n print("no")\n', 'n=input (int()) \nx=0\nif n%2==0:\n x=(n/2)**2\nelse:\n x=((n//2)+1)*(n//2)\nprint(x)', 'k =int(input())\nz = k / 2\nm = z * z\nx = (k + 1)/2\ny = x * (x - 1)\nif k % 2 == 0 :\n print(m)\nelse :\n print(y)\n', 'k = int(input())\nif k%2 == 0:\n evens = k/2\n odds = k/2\n total = evens*odds\nelse:\n evens = (k-1)/2\n odds = k - evens\n total = evens*odds\nprint(total)\n', 'N=int(input("enter number")) \neven=0\nodd=0\nif N%2==0:\n even=N/2\n odd=N/2\nelse:\n even=N//2\n odd=(N//2) +1\nprint(even*odd)', 'k=input()\npair=0\nodd=0\neven=0\nfor i in range(1,k+1) \n if i%2==0:\n even+=1\n else:\n odd+=1\nprint(odd*even)\n\n', 'k = map(int, input())\nif k%2 == 0:\n evens = k/2\n odds = k/2\n total = evens*odds\nelse:\n evens = (k-1)/2\n odds = k - evens\n total = evens*odds\nprint(total)\n', 'K = map(int, input().split())\nif K%2 ==0:\n print((K/2) ** 2)\nelse:\n print((K**2 - 1)/4)\n', 'n=int(input())\nm=list(range(1,n+1))\neven=[]\nodd=[]\nfor x in range (0,len(m)):\n if m[x]%2==0:\n even.append(m[x])\n else: odd.append(m[x])\n\noutput = [[a, b] for a in even\n for b in odd ]\nprint(output)', 'N=int(input("enter number")) \neven=0\nodd=0\nif N%2==0:\n even=N/2\n odd=N/2\nelse:\n even=N/2\n odd=(N/2)+1\nprint(even*odd) ', 'x = int(input())\n\ny = x // 2\nz = (x - y) * y\nprint(z)\n'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s154470095', 's200211753', 's331650745', 's386751811', 's462150260', 's736397692', 's816359616', 's824352701', 's894549588', 's937390285', 's533540498'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3316.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 19.0, 17.0, 17.0] | [221, 85, 115, 167, 132, 132, 172, 94, 219, 130, 54] |
p03264 | u096736378 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\n\nif K % 2 == 0:\n\tans = (K // 2) * (K//2 -1)\nelse:\n\tans = (K//2)**2\nprint(ans)', 'K = int(input())\n\nif K % 2 == 0:\n\tans = (K // 2)**2\nelse:\n\tans = (K//2)*(K//2 +1)\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s678943444', 's781029980'] | [3060.0, 3064.0] | [31.0, 24.0] | [95, 92] |
p03264 | u102080459 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['def get(n):\n if(n%2==0):\n return ((n//2)**2)\n else:\n return (((n//2)**2)+(n-1)/2)\nn=int(input())\nz=get(n)\nprint (z)', 'def get(n):\n if(n%2==0):\n return ((n//2)**2)\n else:\n return (((n//2)**2)+(n-1)/2)\nn=int(input())\nz=get(n)\nprint (z)', 'def get(n):\n if(n%2==0):\n return ((n//2)**2)\n elif(n==1):\n return (0) \n else:\n return (((n//2)**2)+(n-1)//2)\n\nn=int(input())\nz=get(n)\nprint (z)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s127670580', 's446114700', 's942908339'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [123, 123, 156] |
p03264 | u103657515 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\n\nif k%2==0:\n ans = k/2*k/2\nelif k%2 != 0:\n ans = (k//2+1)*k/2\n\nans = int(ans)\nprint(ans)', 'k = int(input())\n\nif k%2==0:\n ans = k/2*k/2\nelse:\n ans = ((k//2)+1)*(k//2)\n\n\nans = int(ans)\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s897481182', 's560850903'] | [2940.0, 2940.0] | [17.0, 17.0] | [111, 108] |
p03264 | u106297876 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['l = map(int, input().split())\na=list(l)\nx1=a[0]\ny1=a[1]\nx2=a[2]\ny2=a[3]\nx=x2-x1\ny=y2-y1\nx3=x2-y\ny3=y2+x\nx4=x1-y\ny4=y1+x\nc=[x3, y3, x4, y4]\nprint(c[0], c[1], c[2], c[3])\n', 'l = map(int, input().split())\na=list(l)\nx=a[2]-a[0]\ny=a[3]-a[1]\nx3=a[2]-y\ny3=a[3]+x\nx4=a[1]-y\ny4=a[1]+x\nprint(x3, y3, x4, y4)\n', 'l = map(int, input().split())\na=list(l)\nx1=a[0]\ny1=a[1]\nx2=a[2]\ny2=a[3]\nx=x2-x1\ny=y2-y1\nx3=x2-y\ny3=y2+x\nx4=x1-y\ny4=y1+x\nc=[x3, y3, x4, y4]\nprint(c[0], c[1], c[2], c[3])', 'l = map(int, input().split())\na=list(l)\nprint(a[2]-(a[3]-a[1]), a[3]+a[2]-a[0], a[1]-(a[3]-a[1]), a[1]+a[2]-a[0])\n', 'N= int(input())\nprint(N//2 * (N-N//2))\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s177938472', 's438362170', 's572480838', 's990495768', 's582393131'] | [3060.0, 3060.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0, 17.0] | [169, 126, 168, 114, 39] |
p03264 | u113255362 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['s = int(input())\nif s % 2 == 1:\n Odd = (s+1)/2\n Even = Odd -1\nelse:\n Odd = s/2\n Even = Odd\nres=Odd * Even\nprint(res)', 's = int(input())\nif s % 2 == 1:\n Odd = (s+1)/2\n Even = Odd -1\nelse:\n Odd = s/2\n Even = Odd\nres= int(Odd) * int(Even)\nprint(res)'] | ['Wrong Answer', 'Accepted'] | ['s987764936', 's417495179'] | [8892.0, 8804.0] | [29.0, 28.0] | [120, 131] |
p03264 | u118206880 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nres = k/2;\nif k % 2 == 0 :\n\tprint(int(res*res))\nelse:\n\tprint(int((res+1)*res))', 'k = int(input())\nres = int(k/2);\nif k % 2 == 0 :\n\tprint(int(res*res))\nelse:\n\tprint(int((res+1)*res))'] | ['Wrong Answer', 'Accepted'] | ['s415619562', 's227253392'] | [2940.0, 2940.0] | [17.0, 18.0] | [95, 100] |
p03264 | u124070765 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k=int(input())\nprint((k/2)*((k+1)/2))', 'k=int(input())\nprint((k//2)*((k+1)//2))'] | ['Wrong Answer', 'Accepted'] | ['s492051000', 's735219578'] | [2940.0, 2940.0] | [18.0, 17.0] | [37, 39] |
p03264 | u125666426 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['import math\n\nK = int(input())\nif K % 2 == 0:\n print((K / 2) ** 2)\nelse:\n print((K / 2) * ((K / 2) + 1))', 'import math\n\nK = int(input())\nif K % 2 == 0:\n print(int((K / 2) ** 2))\nelse:\n print(int((K / 2) * ((K / 2) + 1)))', 'import math\n\nK = int(input())\nif K % 2 == 0:\n print(int((K / 2) ** 2))\nelse:\n print(int((K / 2) * ((K / 2) + 1)))', 'import math\n\nK = int(input())\nif K % 2 == 0:\n print(int((K / 2) ** 2))\nelse:\n print(math.floor(K / 2) * (math.floor(K / 2) + 1))\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s041059636', 's362652260', 's562607891', 's984159576'] | [2940.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 18.0] | [109, 119, 119, 135] |
p03264 | u126232616 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nif k%2 == 0:\n print((k-1)**2//2)\nelse:\n print((k**2-1)//2)', 'k = int(input())\nif k%2 == 0:\n print(k**2//4)\nelse:\n print((k**2-1)//4)'] | ['Wrong Answer', 'Accepted'] | ['s741430498', 's382044411'] | [2940.0, 3316.0] | [17.0, 21.0] | [81, 77] |
p03264 | u127856129 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['a=int(input())\nb=a/2\nif a//2==0:\n print(a*a)\nelse:\n print(b*(b-1))', 'a=int(input())\nb=a/2\nif a%2==0:\n print(b*b)\nelse:\n print(b*(b+1))', 'a=int(input())\nb=a//2\nif a%2==0:\n print(b*b)\nelse:\n print(b*(b+1))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s298117695', 's833974366', 's389907804'] | [3060.0, 2940.0, 2940.0] | [21.0, 18.0, 18.0] | [68, 67, 68] |
p03264 | u129978636 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\n\neven = K // 2\nodd = 1 - even\n\nprint(even * odd)', 'K = int(input())\n\neven = K // 2\nodd = K - even\n\nprint(even * odd)\n'] | ['Wrong Answer', 'Accepted'] | ['s362451973', 's225076065'] | [2940.0, 2940.0] | [17.0, 19.0] | [65, 66] |
p03264 | u131264627 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nans = 0\nif k % 2 == 0:\n ans = (k / 2) ** 2\nelse:\n ans = ((k - 1) / 2) * ((k - 1) / 2 + 1)\nprint(ans)', 'k = int(input())\nans = 0\nif k % 2 == 0:\n ans = (k / 2) ** 2\nelse:\n ans = ((k - 1) / 2) * ((k - 1) / 2 + 1)', 'k = int(input())\nprint((k // 2) * ((k + 1) // 2))\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s111159720', 's325793136', 's591467103'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [123, 112, 50] |
p03264 | u131405882 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\nprint((K//2)*((K-1)//2)/2)', 'K = int(input())\nif K % 2 == 0:\n print((K/2)**2/2)\nelse:\n print((K-1)*(K+1)/8)\n', 'K = int(input())\nprint(K*(K-1)/2)', 'K = int(input())\nif K % 2 == 0:\n print((K/2)**2)\nelse:\n print((K-1)*(K+1)/4)', 'K = int(input())\nif K % 2 == 0:\n print((K//2)**2)\nelse:\n print(((K+1)//2) * ((K-1)//2))'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s395211975', 's511410418', 's823887591', 's956330308', 's896346013'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0] | [43, 81, 33, 78, 93] |
p03264 | u135197221 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['def main():\n n = int(input())\n\n ans = 0\n for a, b in (list(combinations(range(1, n+1), 2))):\n if (a%2==0 and b%2 != 0) or (b%2==0 and a%2!=0):\n ans += 1\n\n print(ans)\n\n\nmain()', 'from itertools import combinations\n\n\ndef main():\n n = int(input())\n\n ans = 0\n for a, b in (list(combinations(range(1, n+1), 2))):\n if (a%2==0 and b%2 != 0) or (b%2==0 and a%2!=0):\n ans += 1\n\n print(ans)\n\n\nmain()'] | ['Runtime Error', 'Accepted'] | ['s644188742', 's068375882'] | [9148.0, 9208.0] | [22.0, 31.0] | [204, 241] |
p03264 | u139880922 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = (int(input())\nprint(( k // 2 ) * ( k - k // 2 ))', 'k = int(input())\nprint(( k // 2 ) * ( k - k // 2 ))'] | ['Runtime Error', 'Accepted'] | ['s244364656', 's487700264'] | [2940.0, 2940.0] | [17.0, 17.0] | [52, 51] |
p03264 | u143189168 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nif k%2 == 0:\n print((k/2)*(k/2))\nelse:\n print(((k-1)/2)*((k+1)/2))\n', 'k = int(input())\nif k%2==0:\n print((k/2)*(k/2))\nelse:\n print(((k-1)/2)*((k+1)/2))', 'k = int(input())\nif k%2 == 0:\n print(int((k/2)*(k/2)))\nelse:\n print(int(((k-1)/2)*((k+1)/2)))\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s788613153', 's878710329', 's527740323'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [90, 87, 100] |
p03264 | u143318682 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['# -*- coding: utf-8 -*-\nK = int(input())\nprint((K // 2) ** 2 - K % 2)', '# -*- coding: utf-8 -*-\nK = int(input())\n\n\nprint((K // 2) * (K // 2 + K % 2))'] | ['Wrong Answer', 'Accepted'] | ['s502229604', 's917148540'] | [2940.0, 2940.0] | [17.0, 17.0] | [69, 77] |
p03264 | u163320134 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['n=int(input())\nif n%2==0:\n print((n/2)**2)\nelse:\n print(int(n/2)*((n+1)/2))', 'n=int(input())\nif n%2==0:\n print((n/2)**2)\nelse:\n print((n*(n+1))/2)', 'n=int(input())\nif n%2==0:\n print((n/2)*(n/2))\nelse:\n print(int(n/2)*((n+1)/2))', 'n=int(input())\nif n%2==0:\n print((n/2)**2)\nelse:\n print(int(n/2)*((n+1)/2))', 'n=int(input())\nif n%2==0:\n print(int(n/2)**2)\nelse:\n print(int(n/2)*int((n+1)/2))'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s081741234', 's245314786', 's554942271', 's852705102', 's273390560'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [77, 70, 80, 77, 83] |
p03264 | u163791883 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nprint((k/2)**2 if k%2==0 else ((k+1)/2)*((k+1)/2-1))', 'k = int(input())\nprint((k/2)**2 if k%2==0 else (k/2)*(k/2-1))', 'k = int(input())\nprint(((k+1)//2)*(k//2))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s091165624', 's838857884', 's109370772'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [69, 61, 41] |
p03264 | u166092298 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input.strip())\nnum1 = K // 2\nnum2 = K - num1\nprint(num1 * num2)', 'K = int(input().strip())\nnum1 = K // 2\nnum2 = K - num1\nprint(num1 * num2)'] | ['Runtime Error', 'Accepted'] | ['s964250159', 's552717371'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 73] |
p03264 | u167908302 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['#coding:utf-8\nk = int(input())\nprint((k/2) * ((k+1)/2))', '#coding:utf-8\nk = int(input())\nprint((k//2) * ((k+1)//2))'] | ['Wrong Answer', 'Accepted'] | ['s295521948', 's703896232'] | [2940.0, 2940.0] | [17.0, 17.0] | [55, 57] |
p03264 | u173329233 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nprint(int((k/2)**2)) if k%2 == 0 else print(int(k/2)**2 - 1/4))\n', 'k = int(input())\nprint(int((k/2)**2)) if k%2 == 0 else print(int((k/2)**2 - 1/4))\n'] | ['Runtime Error', 'Accepted'] | ['s559515640', 's767274940'] | [2940.0, 2940.0] | [18.0, 18.0] | [81, 82] |
p03264 | u175590965 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['a = int(input())\n\nprint((k//2)*((k+1)//2))', 'a = int(input())\nprint((a//2)*((a+1)//2))'] | ['Runtime Error', 'Accepted'] | ['s897873047', 's563961193'] | [2940.0, 2940.0] | [17.0, 18.0] | [42, 41] |
p03264 | u185037583 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = input()\nif k % 2 == 1:\n print(k//2 * (k//2+1))\nelse:\n print(k//2 * k//2)\n', 'k = input()\nif k % 2 == 1:\n print((k//2) * (k//2+1))\nelse:\n print((k//2) * (k//2))\n', 'k = map(int, input().split())\nif k%2==1:\n print((k//2) * (k//2+1))\nelse:\n print((k//2) * (k//2))\n', 'k = map(int, input().split())\nif k%2==1:\n print((k//2) * (l//2+1))\nelse:\n print((k//2) *(k//2))', 'k = int(input())\nif k % 2 == 1:\n print(k//2 * (k//2+1))\nelse:\n print(k//2 * k//2)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s103394104', 's148545196', 's637597092', 's897759893', 's838094887'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 18.0] | [83, 89, 99, 97, 88] |
p03264 | u192541825 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['n=int(input())\na=n//2+1\nb=n/2\nprint(a*b)', 'n=int(input())\na=n//2\nif n%2!=0:\n a+=1\nb=n//2\nprint(a*b)'] | ['Wrong Answer', 'Accepted'] | ['s873931218', 's941207103'] | [2940.0, 2940.0] | [17.0, 17.0] | [40, 59] |
p03264 | u192588826 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nif k%2 == 0:\n print((k**2)/4)\nelse:\n print(((k-1)/2)*((k+1)/2))', 'k = int(input())\nif k%2 == 0:\n print((k**2)//4)\nelse:\n print(((k-1)//2)*((k+1)//2))'] | ['Wrong Answer', 'Accepted'] | ['s931397821', 's864724314'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 89] |
p03264 | u194894739 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nif k % 2 == 0:\n print((k//2)**2)\nelse:\n print((k//2-1)(k//2))\n', 'k = int(input())\nif k % 2 == 0:\n print((k//2)**2)\nelse:\n print((k//2+1)*(k//2))\n'] | ['Runtime Error', 'Accepted'] | ['s584467671', 's821818901'] | [2940.0, 2940.0] | [17.0, 18.0] | [85, 86] |
p03264 | u206570055 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['import math\ninstr = intput()\nK = int(instr)\n\nCOdd = math.ceil(K / 2)\nCEven = int(K / 2)\n\nans = COdd * CEven\nprint(ans)', 'import math\ninstr = input()\nK = int(instr)\n\nCOdd = math.ceil(K / 2)\nCEven = int(K / 2)\n\nans = COdd * CEven\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s682935168', 's602950842'] | [3060.0, 2940.0] | [17.0, 18.0] | [118, 117] |
p03264 | u207799478 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nif(k % 2 == 0):\n print(int((k/2)*(k/2)))\nelif(k % 2 != 0):\n print(int(((k+2-1)/2)*k-((k+2-1)/2)))\n', 'k = int(input())\nif(k % 2 == 0):\n print(int((k/2)*(k/2)))\nelse:\n print(int(((k+2-1)/2)*k-((k+2-1)/2)))\n', 'k = int(input())\na = (k+1)//2\nb = k//2\nprint(a*b)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s166605292', 's317085640', 's407806795'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [121, 109, 50] |
p03264 | u209620426 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['import math\n\nk = int(input())\n\nif k%2:\n print(math.floor(k/2)*math.cei(k/2))\nelse:\n print((k/2)*2)', 'import math\n\nk = 50\n\nif k%2:\n print(math.floor(k/2)*math.ceil(k/2))\nelse:\n print(int((k/2)**2))', 'import math\n\nk = int(input())\n\nif k%2:\n print(math.floor(k/2)*math.ceil(k/2))\nelse:\n print(int((k/2)**2))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s054415301', 's435216119', 's898783224'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [104, 101, 111] |
p03264 | u217086212 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['a = int(input())\nif a % 2 == 0:\n print(a//2 * a//2)\nelse:\n print((a//2+1) * a//2)', 'a = int(input())\nif a % 2 == 0:\n print((a//2) * (a//2))\nelse:\n print((a//2+1) * (a//2))'] | ['Wrong Answer', 'Accepted'] | ['s407534773', 's258332700'] | [2940.0, 2940.0] | [18.0, 17.0] | [87, 93] |
p03264 | u217940964 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ["#!/usr/bin/env python3\nimport sys\n\n\ndef solve(K: int):\n if K % 2 == 0:\n print((K//2)**2)\n else:\n solve((K+1)//2 * (K-1)//2)\n return\n\n\n# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n K = int(next(tokens)) # type: int\n solve(K)\n\nif __name__ == '__main__':\n main()\n", "#!/usr/bin/env python3\nimport sys\n\n\ndef solve(K: int):\n if K % 2 == 0:\n print((K//2)**2)\n else:\n print(((K+1) * (K-1))//4)\n return\n\n\n# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n K = int(next(tokens)) # type: int\n solve(K)\n\nif __name__ == '__main__':\n main()\n"] | ['Wrong Answer', 'Accepted'] | ['s827407875', 's370004106'] | [3060.0, 2940.0] | [18.0, 17.0] | [578, 577] |
p03264 | u223646582 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = input()\n\nprint((K+1)//2 * K//2)', 'K = input()\nprint(((K+1)//2) * (K//2))', 'K = int(input())\n\nprint((K+1)//2 * K//2)', 'K = int(input())\nprint(((K+1)//2) * (K//2))'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s147824375', 's469054154', 's836232915', 's469730451'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [35, 38, 40, 43] |
p03264 | u225388820 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k=int(input())\nprint((k+1)//2*k//2)', 'k=int(input())\nprint(((k+1)//2)*(k//2))'] | ['Wrong Answer', 'Accepted'] | ['s963828714', 's100217354'] | [2940.0, 2940.0] | [17.0, 17.0] | [35, 39] |
p03264 | u227082700 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['a=int(input());print(a*(a+1)//4)\n', 'a=int(input());print(a*(a+1)//2)', 'a=int(input());print((a//2)*((a+1)//2))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s246366179', 's542489450', 's857993393'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [33, 32, 39] |
p03264 | u229518917 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ["x1,y1,x2,y2=map(int,input().split())\nprint(x2-(y2-y1),y2-(x1-x2),x1-(y2-y1),y1-(x1-x2),end='')", 'K=int(input())\nprint(int((K/2)**2) if K%2==0 else int(K/2)*(int(K/2)+1))'] | ['Runtime Error', 'Accepted'] | ['s977693671', 's569264973'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 72] |
p03264 | u231261695 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\ncount1 = 0\ncount2 = 0\nfor i in range(k):\n if i % 2 == 0:\n count1 += 1\n else:\n count2 += 1\nprint(count1 * count2', 'k = int(input())\ncount1 = 0\ncount2 = 0\nfor i in range(k):\n if i % 2 == 0:\n count1 += 1\n else:\n count2 += 1\nprint(count1 * count2)'] | ['Runtime Error', 'Accepted'] | ['s366197893', 's607149712'] | [2940.0, 2940.0] | [17.0, 17.0] | [148, 149] |
p03264 | u235105786 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['n=int(input())\nprint (((n>>1+(1 if n&1 else 0))*(n>>1)))', 'n=int(input())\nprint (((n>>1)+(1 if n&1 else 0))*(n>>1))'] | ['Wrong Answer', 'Accepted'] | ['s305045883', 's027150387'] | [2940.0, 2940.0] | [17.0, 18.0] | [56, 56] |
p03264 | u240519147 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = input()\ndef myfunc(K):\n count = 0\n for i in range(1, K+1):\n if i%2==0:\n # print(i)\n for i in range(1, K+1):\n if i%2==1:\n # print(" ", i)\n count +=1\n print(count)', 'K = input()\nK = int(K)\ncount = 0\n\nfor i in range(1, K+1):\n if i%2==0:\n # print(i)\n for i in range(1, K+1):\n if i%2==1:\n # print(" ", i)\n count +=1\n\nprint(count)'] | ['Wrong Answer', 'Accepted'] | ['s207255943', 's427483450'] | [2940.0, 3060.0] | [17.0, 18.0] | [216, 196] |
p03264 | u243699903 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['n = int(input())\nprint((n//2)**2)\n', 'n = int(input())\nprint((n//2)*(n//2+n%2))\n'] | ['Wrong Answer', 'Accepted'] | ['s581206693', 's216881548'] | [2940.0, 2940.0] | [17.0, 17.0] | [34, 42] |
p03264 | u244836567 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['a=input()\na=int(a)\nif a%2==0:\n print(int((a/2)**2))\nelse:\n print(int(a/2)*2(int(int(a/2)+1)))\n', 'a=input()\na=int(a)\nif a%2==0:\n print(int((a/2)**2))\nelse:\n print(int(a/2)*2(int(a/2)+1))\n', 'a=input()\na=int(a)\nif a%2==0:\n print(int((a/2)**2))\nelse:\n print(int(a/2)*(int(int(a/2)+1)))\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s404907266', 's898771722', 's685910292'] | [9156.0, 9068.0, 9148.0] | [29.0, 31.0, 29.0] | [96, 91, 95] |
p03264 | u245870380 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\nans = 0\nfor i in range(1,K):\n ans = ans + (i+1)//2\n print(ans)', 'K = int(input())\nans = 0\nfor i in range(1,K):\n ans = ans + (i+1)//2\nprint(ans) '] | ['Wrong Answer', 'Accepted'] | ['s050691856', 's231042763'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 85] |
p03264 | u249727132 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['N = int(input().split())\n\nprint((N//2) * (N//2 + N%2)', 'N = int(input().split())\n\nprint("%d"%((N / 2) * ((N + 1) / 2)))', 'N = int(input().split())\nans = 0\nif N%2 == 0:\n ans = (N/2) ** 2\nelse:\n ans = (N/2) ** 2 - 1/4\nprint(ans)', 'N = int(input().split())\nans = 0\nif N%2 == 0:\n ans = N/2 ** 2\nelse:\n ans = (N/2 + 1/2) * (N/2 - 1/2)\nprint(ans)', 'K=int(input())\nprint((K//2)*((K+1)//2))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s399311324', 's519289776', 's781156410', 's907580662', 's706848478'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0, 18.0, 18.0] | [53, 63, 110, 117, 39] |
p03264 | u250944591 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k=int(input())\nif k%2==0:\n ans=k**2\nelse:\n ans=k*(k+1)', 'k=int(input())\nif k%2==0:\n ans=(k//2)**2\nelse:\n ans=(k//2)*(k//2+1)', 'k=int(input())\nif k%2==0:\n ans=(k//2)**2\nelse:\n ans=(k//2)*(k//2+1)\nprint(ans)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s500357694', 's856177850', 's407739199'] | [9020.0, 9160.0, 9080.0] | [27.0, 28.0, 32.0] | [56, 69, 80] |
p03264 | u251017754 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['N, K = map(int, input().split())\nans = 0\nfor i in range(1,N + 1):\n for j in range(1,N + 1):\n for k in range(1,N + 1):\n if ((i + j) % K == 0) and ((j + k) % K == 0) and ((k + i) % K == 0):\n ans += 1\nprint(ans)', 'K = int(input())\nif K % 2 == 0:\n print(int(K * K / 4))\nelse:\n print(int((K * K - 1) / 4))'] | ['Runtime Error', 'Accepted'] | ['s440547357', 's861192728'] | [3060.0, 2940.0] | [17.0, 18.0] | [224, 91] |
p03264 | u252964975 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ["n=int(input())\nif n%2==0:\n print('{:.0f}'.format((n/2)**2/2))\nelse:\n print('{:.0f}'.format((n+1)/2*(n-1)/2/2))", "n=int(input())\nif n%2==0:\n print('{:.0f}'.format((n/2)**2))\nelse:\n print('{:.0f}'.format((n+1)/2*(n-1)/2))"] | ['Wrong Answer', 'Accepted'] | ['s355712802', 's724893190'] | [3060.0, 2940.0] | [18.0, 17.0] | [112, 108] |
p03264 | u264265458 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['import math\na=int(input())\nif a%2==0:\n print(int(a*a/4))\nelse:\n print(math.ceil(a)*math.floor(a))', 'import math\na=int(input())\nif a%2==0:\n print(int(a*a/4))\nelse:\n print(math.ceil(a/2)*math.floor(a/2))'] | ['Wrong Answer', 'Accepted'] | ['s567739781', 's844466528'] | [2940.0, 2940.0] | [17.0, 18.0] | [99, 103] |
p03264 | u266171694 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\n\neven = K // 2\nodd = K - enve\nprint(even * odd)', 'K = int(input())\n\neven = K // 2\nodd = K - even\nprint(even * odd)\n'] | ['Runtime Error', 'Accepted'] | ['s231897648', 's239839415'] | [2940.0, 2940.0] | [17.0, 17.0] | [64, 65] |
p03264 | u266874640 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\na = 0\nb = 0\nfor i in (1,K+1):\n if i % 2 == 0:\n a += 1\n else:\n b += 1\nprint(int(a * b))\n', 'K = int(input())\na = 0\nb = 0\nfor i in range(1,K+1):\n if i % 2 == 0:\n a += 1\n else:\n b += 1\nprint(int(a * b))\n'] | ['Wrong Answer', 'Accepted'] | ['s721556534', 's127727005'] | [2940.0, 2940.0] | [17.0, 17.0] | [124, 129] |
p03264 | u268792407 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['n=int(input())\nif n%2==0:\n print(k*k//4)\nelse:\n print((k+1)*(k-1)//4)', 'k=int(input())\nif n%2==0:\n print(k*k//4)\nelse:\n print((k+1)*(k-1)//4)\n', 'k=int(input())\nif k%2==0:\n print(k*k//4)\nelse:\n print((k+1)*(k-1)//4)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s321631747', 's837632275', 's540886155'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [71, 72, 72] |
p03264 | u278446060 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['N,K = map(int, input().split())\n\nans = int(N/K) ** 3\nif K%2 == 0:\n ans += int(N/int(K/2) - int(N/K)) ** 3\n \nprint(ans)\n', 'N = int(input())\n\nif (N % 2) == 0:\n ans = (N/2) ** 2\nelse:\n ans = int(N/2) * int(N/2 + 1)\n\nprint(int(ans))'] | ['Runtime Error', 'Accepted'] | ['s773213758', 's455151803'] | [2940.0, 2940.0] | [17.0, 17.0] | [125, 112] |
p03264 | u280552586 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nprint((k//2)*((k+1)//2)\n', 'k = int(input())\nprint((k//2)*((k+1)//2))\n'] | ['Runtime Error', 'Accepted'] | ['s200160079', 's542614146'] | [2940.0, 3316.0] | [18.0, 21.0] | [41, 42] |
p03264 | u283751459 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nif k %2 == 0:\n\tprint(int(k*k/2/2)\nelif k%2 ==1:\n print(int((k/2)*(k//2)/2)\n', 'k = int(input())\n\nif k %2 == 0:\n print(int(k*k/2/2)\n\n\n\n\nelse:\n print(int((k/2)*(k//2)/2)', 'k = int(input())\nif k %2 == 0:\n print(int(k*k/2/2))\nelif k%2 ==1:\n print(int((k/2)*(k//2)/2)\n', 'k = int(input())\nif k %2 == 0:\n print(int(k*k/2/2))\nelif k%2 ==1:\n print(int((k//2 + 1)*(k//2)))\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s297540101', 's803438763', 's842030463', 's551836378'] | [8936.0, 8872.0, 9020.0, 9048.0] | [26.0, 25.0, 26.0, 27.0] | [101, 90, 95, 99] |
p03264 | u287431190 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = input()\n\nif k%2==0:\n print(k*k//4)\nelse:\n print(k//2 * (k//2 + 1))', 'k = input()\n\nif k%2==0:\n s = k*k//4\n print(s)\nelse:\n s = k//2\n s1 = s*(s+1)\n print(s1)', 'k = int(input())\n\nif k%2 ==0 :\n s = k*k\n s1 = s//4\n print(s1)\nelse:\n s = k//2\n s1 = s*(s+1)\n print(s1)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s360533946', 's423740475', 's214831202'] | [3188.0, 2940.0, 3064.0] | [18.0, 17.0, 17.0] | [72, 91, 108] |
p03264 | u290187182 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ["import sys\nimport copy\nimport math\nimport bisect\nimport pprint\nimport bisect\nfrom functools import reduce\nfrom copy import deepcopy\nfrom collections import deque\n\ndef lcm(x, y):\n return (x * y) // math.gcd(x, y)\n\nif __name__ == '__main__':\n a = [int(i) for i in input().split()]\n\n if a[0] %2 ==1:\n print((a[0]//2)*(a[0]//2-1))\n else:\n print((a[0]//2)*(a[0]//2))\n", "import sys\nimport copy\nimport math\nimport bisect\nimport pprint\nimport bisect\nfrom functools import reduce\nfrom copy import deepcopy\nfrom collections import deque\n\ndef lcm(x, y):\n return (x * y) // math.gcd(x, y)\n\nif __name__ == '__main__':\n a = [int(i) for i in input().split()]\n\n if a[0] %2 ==1:\n print(a[0]*(a[0]-1))\n else:\n print(a[0]*(a[0]))\n", "import sys\nimport copy\nimport math\nimport bisect\nimport pprint\nimport bisect\nfrom functools import reduce\nfrom copy import deepcopy\nfrom collections import deque\n\ndef lcm(x, y):\n return (x * y) // math.gcd(x, y)\n\nif __name__ == '__main__':\n a = [int(i) for i in input().split()]\n\n if a[0] %2 ==1:\n print((a[0]//2)*(a[0]//2+1))\n else:\n print((a[0]//2)*(a[0]//2))\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s687023823', 's868645901', 's103325291'] | [3828.0, 3828.0, 3828.0] | [26.0, 26.0, 26.0] | [388, 372, 388] |
p03264 | u294385082 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\n\nif k%2 == 0:\n print((k//2)**2)\nelse:\n print((k/2)*((k/2)+1))', 'k = input()\nif k % 2 == 0:\n print(k*k/4)\nelse:\n print((k//2)*((k//2)+1))', 'k = int(input())\nif k%2 ==0:\n print(k*k/4)\nelse:\n print((k//2)*((k//2)-1))', 'k = int(input())\n \nif k%2 == 0:\n print((k//2)**2)\nelse:\n print((k//2)*((k//2)+1))'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s121224115', 's767501016', 's852524577', 's185671273'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [80, 74, 76, 83] |
p03264 | u303721530 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['asdf = int(input())\nif asdf % 2 == 0:\n k1 = asdf / 2\n Ans = k1 * k1\nelse:\n k2 = (asdf + 1) / 2\n k3 = k2 - 1\n Ans = k2 * k3\nprint(Ans)', "asdf = int(input('なんで'))\nif asdf % 2 == 0:\n k1 = asdf / 2\n Ans = k1 * k1\nelse:\n k2 = (asdf + 1) / 2\n k3 = k2 - 1\n Ans = K2 * k3\nprint(Ans)\n ", "x1, y1, x2, y2 = map(int, input().split(' '))\n\n\nxdif = abs(x1 - x2)\nydif = abs(y1 - y2)\n\nif x1<=x2 and y1<=y2:\n x3 = x2 - ydif\n y3 = y2 + xdif\n x4 = x3 - xdif\n y4 = y3 - xdif\nelif x1<=x2 and y1>=y2:\n x3 = x2 + ydif\n y3 = y2 + xdif\n x4 = x1 + xdif\n y4 = y1 + ydif\nelif x1>=x2 and y1<=y2:\n x3 = x2 - ydif\n y3 = y2 - xdif\n x4 = x1 - ydif\n y4 = y1 - xdif\nelse:\n x3 = x2 + ydif\n y3 = y2 - xdif\n x4 = x1 + ydif\n y4 = y1 - xdif\n \nprint(x3, y3, x4, y4)\n", 'K = int(input())\n\nif K%2 ==0:\n kx = k/2\n Ans = kx *kx\nelse:\n k1 = (K+1)/2\n k2 = k1-1\n Ans = K1*k2\nprint(Ans)\n ', "x1, y1, x2, y2 = map(int, input().split(' '))\n\n\nxdif = abs(x1 - x2)\nydif = abs(y1 - y2)\n\nif x1<=x2 and y1<=y2:\n x3 = x2 - ydif\n y3 = y2 + xdif\n x4 = x1 - ydif\n y4 = y1 + xdif\nelif x1<=x2 and y1>=y2:\n x3 = x2 + ydif\n y3 = y2 + xdif\n x4 = x1 + xdif\n y4 = y1 + ydif\nelif x1>=x2 and y1<=y2:\n x3 = x2 - ydif\n y3 = y2 - xdif\n x4 = x1 - ydif\n y4 = y1 - xdif\nelse:\n x3 = x2 + ydif\n y3 = y2 - xdif\n x4 = x1 + ydif\n y4 = y1 - xdif\n \nprint(x3, y3, x4, y4)\n", "x1, y1, x2, y2 = map(int, input().split(' '))\n\n\nxdif = abs(x1 - x2)\nydif = abs(y1 - y2)\n\nif x1<=x2 and y1<=y2:\n x3 = x2 - ydif\n y3 = y2 + xdif\n x4 = x3 + xdif\n y4 = y3 - ydif\nelif x1<=x2 and y1>=y2:\n x3 = x2 + ydif\n y3 = y2 + xdif\n x4 = x1 + xdif\n y4 = y1 + ydif\nelif x1>=x2 and y1<=y2:\n x3 = x2 - ydif\n y3 = y2 - xdif\n x4 = x1 - ydif\n y4 = y1 - xdif\nelse:\n x3 = x2 + ydif\n y3 = y2 - xdif\n x4 = x1 + ydif\n y4 = y1 - xdif\n \nprint(x3, y3, x4, y4)\n", 'AAAA = int(input( ))\n\nif AAAA % 2 == 0:\n k1 = AAAA / 2\n Ans = k1 * k1\nelse:\n k2 = (AAAA + 1) / 2\n k3 = k2 - 1\n Ans = K1 * k2\nprint(Ans)\n ', "x1, y1, x2, y2 = map(int, input().split(' '))\n\nxdif = abs(x1 - x2)\nydif = abs(y1 - y2)\n\nif x1<=x2 and y1<=y2:\n x3 = x2 - ydif\n y3 = y2 + xdif\n x4 = x1 - ydif\n y4 = y1 + xdif\nelif x1<=x2 and y1>=y2:\n x3 = x2 + ydif\n y3 = y2 + xdif\n x4 = x1 + xdif\n y4 = y1 + ydif\nelif x1>=x2 and y1<=y2:\n x3 = x2 - ydif\n y3 = y2 - xdif\n x4 = x1 - ydif\n y4 = y1 - xdif\nelse:\n x3 = x2 + ydif\n y3 = y2 - xdif\n x4 = x1 + ydif\n y4 = y1 - xdif\n \nprint(x3, y3, x4, y4)", 'asdf = int(input( ))\n\nif asdf % 2 == 0:\n k1 = asdf / 2\n Ans = k1 * k1\nelse:\n k2 = (asdf + 1) / 2\n k3 = k2 - 1\n Ans = K1 * k2\nprint(Ans)\n ', 'asdf = input()\nif asdf % 2 == 0:\n k1 = asdf / 2\n Ans = k1 * k1\nelse:\n k2 = (asdf + 1) / 2\n k3 = k2 - 1\n Ans = K2 * k3\nprint(Ans)\n ', 'K = int(input)\n\nif K%2 ==0:\n kx = k/2\n Ans = kx *kx\nelse:\n k1 = (K+1)/2\n k2 = k1-1\n Ans = K1*k2\nprint(Ans)\n ', 'asdf = int(input())\nif asdf % 2 == 0:\n k1 = asdf / 2\n Ans = k1 * k1\nelse:\n k2 = (asdf + 1) / 2\n k3 = k2 - 1\n Ans = k2 * k3\nprint(int(Ans))'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s038797633', 's092178882', 's145511674', 's314880177', 's365484345', 's392982022', 's527513972', 's758550411', 's808777605', 's840124880', 's973772302', 's591438549'] | [2940.0, 2940.0, 3064.0, 3064.0, 3064.0, 3064.0, 2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [138, 152, 513, 116, 513, 513, 143, 511, 143, 136, 114, 143] |
p03264 | u306070611 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\nif K % 2 == 1:\n ans = ((K-1)/2)*((K+1)/2)\nelse:\n ans = K*K*(1/4)\nprint(ans)', 'K = int(input())\nif K % 2 == 1:\n ans = ((K-1)/2)*((K+1)/2)\nelse:\n ans = K*K*(1/4)\nANS = int(ans)\nprint(ANS)'] | ['Wrong Answer', 'Accepted'] | ['s796943678', 's979196853'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 113] |
p03264 | u309141201 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['N, K = map(int, input().split())\ndiv = N // K\nif K % 2 == 1:\n print(div**3)\nelse:\n if div * N + K // 2 <= N:\n print(div**3 + (div + 1)**3)\n else:\n print(2 * div**3)', 'N = int(input())\nif N % 2 == 0:\n answer = (N // 2)**2\nelse:\n answer = (N // 2) * (N // 2 + 1) \n\nprint(answer)'] | ['Runtime Error', 'Accepted'] | ['s068214309', 's856019267'] | [3060.0, 2940.0] | [18.0, 17.0] | [187, 115] |
p03264 | u315703650 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nif k%2==0:\n ans = (k/2)*(k/2)\nelse:\n ans = (k/2)*(k/2-1)\nprint(int(ans))', 'k = int(input())\nif k%2==0:\n ans = (k/2)*(k/2)\nelse:\n ans = int((k+1)/2)*int(k/2)\nprint(int(ans))'] | ['Wrong Answer', 'Accepted'] | ['s606375859', 's438978920'] | [2940.0, 2940.0] | [17.0, 17.0] | [95, 103] |
p03264 | u320763652 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = input()\n\nif k%2 ==0:\n print((k/2)*(k/2))\nelse:\n print(((k-1)/2)*((k+1)/2))\n', 'k = input()\n\nif k%2 ==0:\n print((k/2)**2)\nelse:\n print(((k-1)/2)*((k+1)/2))\n', 'k = int(input())\n\nif k%2 ==0:\n print((k/2)*(k/2))\nelse:\n print(((k-1)/2)*((k+1)/2))\n', 'k = int(input())\n\n\nif k%2 ==0:\n print(int((k/2)*(k/2)))\nelse:\n print(int(((k-1)/2)*((k+1)/2)))\n'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s179612777', 's276225037', 's683460680', 's108168063'] | [2940.0, 3064.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0, 17.0] | [85, 82, 90, 101] |
p03264 | u325119213 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['def actual(k):\n x, y = divmod(k, 2)\n \n return int(x * y)\n\nk = int(input())\nprint(actual(k))\n', 'def actual(k):\n n_even = k // 2\n n_odd = (k + 1) // 2\n\n return n_even * n_odd\n\nk = int(input())\nprint(actual(k))\n'] | ['Wrong Answer', 'Accepted'] | ['s036488501', 's422678386'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 122] |
p03264 | u328364772 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k = int(input())\nif k % 2 == 0:\n print((k//2)**2)\nelse:\n print(k//2 * (k//2-1))\n', 'k = int(input())\nif k % 2 == 0:\n print((k//2)**2)\nelse:\n print(k//2 * (k//2+1))\n'] | ['Wrong Answer', 'Accepted'] | ['s413039423', 's646276494'] | [2940.0, 2940.0] | [18.0, 17.0] | [86, 86] |
p03264 | u332622654 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = input()\n\nkisu = K/2\ngusu = (K+1)/2\n\nprint(kisu * gusu)', 'K = input()\n\ngusu = int(int(K) / 2)\nkisu = int((int(K)+1) / 2)\n\nprint(int(kisu * gusu))\n'] | ['Runtime Error', 'Accepted'] | ['s971092609', 's256524716'] | [2940.0, 2940.0] | [17.0, 17.0] | [58, 88] |
p03264 | u339851548 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['n = int(input())\nif n % 2 == 0:\n print((n/2)**2)\nelse:\n print(((n-1)/2)*((n+1)/2))', 'n = int(input())\nif n % 2 == 0:\n print(int((n/2)**2))\nelse:\n print(int(((n-1)/2)*((n+1)/2)))'] | ['Wrong Answer', 'Accepted'] | ['s628081077', 's879762540'] | [2940.0, 2940.0] | [19.0, 20.0] | [88, 98] |
p03264 | u340947941 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['from math import ceil\n\nK=int(input())\nprint(ceil(K/2)*K//2)', 'from math import ceil\n\nK=int(input())\nprint(ceil(K/2)*(K//2))'] | ['Wrong Answer', 'Accepted'] | ['s461410089', 's057432459'] | [2940.0, 2940.0] | [17.0, 17.0] | [59, 61] |
p03264 | u345483150 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['k=int(input())\nif k%2==0:\n print((n//2)**2)\nelse:\n print((n**2-1)//4)', 'k=int(input())\nif k%2==0:\n print(n**2//4)\nelse:\n print((n**2-1)//4)', 'k=int(input())\nif k%2==0:\n print(n**2/4)\nelse:\n print((n**2-1)/4)', 'k=int(input())\nif k%2==0:\n print(k**2//4)\nelse:\n print((k**2-1)//4)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s174191170', 's734068675', 's968553921', 's126727153'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [71, 69, 67, 69] |
p03264 | u350049649 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['N=int(input())\n\nprint((N//2)**2 if N//2==0 else N*(N-1))', 'N=int(input())\nprint((N//2)**2 if N%2==0 else (N//2)*(N//2+1))'] | ['Wrong Answer', 'Accepted'] | ['s223807000', 's629752016'] | [2940.0, 2940.0] | [18.0, 17.0] | [56, 62] |
p03264 | u350093546 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['import math\nk=int(input())\nprint((k//2)*(math.ceil(k//2)))\n', 'import math\nk=int(input())\nprint((k//2)*(math.celi(k//2)))\n', 'import math\nk=int(input())\nprint((k//2)*(math.ceil(k/2)))\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s554513788', 's847056389', 's980363087'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [59, 59, 58] |
p03264 | u353919145 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['N=int(input("enter number")) \nCounter1=0\nCounter2=0\nfor i in range(N) :\n if i%2==0:\n Counter1+=1 \n if i%2==1:\n Counter2+=1 \nPrint(Counter1*Counter2)', 'team=input()\nx=team[0]\nflag=0\nd=0\nfor i in range(len(team))\n if team[i]==x:\n flag+=1\n else:\n x=team[i]\n flag=0\n if flag==7:\n print("yes")\n d=1\n break\nif d=0:\n print("no")\n\n \n \n \n', 'n=input (int()) \nx=0\nif n%2==0:\n x=(n/2)*((n/2)+1)\nelse:\n x=((n//2)+1)**2\nprint(x)', 'x=input (int ()) \nc=0\nif x%2==0:\n c=(x/2)*((x/2)+1)\nelse:\n c=((x//2)+1)*2\nprint(c)', 'k=int(input()) \nodd=1\neven=0\nfor i in range(2,k+1) \n if i%2==0:\n even+=1\n else:\n odd+=1\nprint(odd*even)', 'val1=int(input())\nif val1%2==0:\n print((val1/2)*(val1/2))\nelse:\n val1=val1+1\n print(((val1/2)*(val1/2))-(val1/2))', 'K = map(int, input())\nif K%2 ==0:\n print((K/2) ** 2)\nelse:\n print((K**2 - 1)/4)\n', 'N=int(input("enter number")) \neven=0\nodd=0\nif N%2==0:\n even=N/2\n odd=N/2\nelse:\n even=N//2\n odd=(N//2) +1\nPrint(even*odd)', 'k = int(input())\nq_even = k/2 if k%2 == 0 else int(k/2)\nq_odd = k/2 if k%2 == 0 else int(k/2)+1\nprint(int(q_odd*q_even))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s005945909', 's095766004', 's116927928', 's438685062', 's563271259', 's598767760', 's600872412', 's717687213', 's044454179'] | [3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0] | [168, 245, 88, 88, 129, 122, 86, 132, 120] |
p03264 | u359474860 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\nprint( K ** 2 // 4) if K % 2 == 0 else ((K -1)*(K+1)//4)\n', 'K = int(input())\nprint( K ** 2 // 4) if K % 2 == 0 else print(((K-1)*(K+1)//4))\n'] | ['Wrong Answer', 'Accepted'] | ['s385942219', 's772714450'] | [2940.0, 2940.0] | [18.0, 18.0] | [74, 80] |
p03264 | u363610900 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\nprint(K//2 * K//2)', 'K = int(input())\nprint((K//2) * (K-K//2))\n'] | ['Wrong Answer', 'Accepted'] | ['s521311776', 's627743334'] | [2940.0, 2940.0] | [17.0, 17.0] | [35, 42] |
p03264 | u365375535 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['K = int(input())\n\nif K%2 == 0:\n even_num = odd_num = K/2\neles:\n even_num = K/2\n odd_num = even_num + 1\n\nprint(even_num * odd_num)', 'K = int(input())\n\nif K%2 == 0:\n even_num = odd_num = K/2\nelse:\n even_num = K/2\n odd_num = even_num + 1\n\nprint(even_num * odd_num)', 'K = int(input())\n\nif K%2 == 0:\n even_num = odd_num = K//2\nelse:\n even_num = K//2\n odd_num = even_num + 1\n\nprint(even_num * odd_num)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s248666958', 's527564641', 's866409977'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [132, 132, 134] |
p03264 | u368796742 | 2,000 | 1,048,576 | Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter. | ['import math\nn = int(input())\nprint(math.ceil(n/2)*n//2)', 'import math\nn = int(input())\nprint(math.ceil(n/2)*(n//2))\n'] | ['Wrong Answer', 'Accepted'] | ['s232658348', 's753283831'] | [2940.0, 2940.0] | [17.0, 17.0] | [55, 58] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.