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
|
---|---|---|---|---|---|---|---|---|---|---|
p03264 | u698479721 | 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)\nm = K//2\nprint(m*(K-m))', 'K = int(input())\nm = K//2\nprint(m*(K-m))'] | ['Runtime Error', 'Accepted'] | ['s906514988', 's926405581'] | [2940.0, 2940.0] | [17.0, 17.0] | [38, 40] |
p03264 | u698538366 | 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):\nz=((n//2)*2)-(n-1)//2\nif(n%2==0):\nreturn (n//2)*2\nelif(n==1):\nreturn 0\nelse:\nreturn z\n\n', 'def get(n):\n z=((n//2)**2)+(n-1)//2\n if(n%2==0):\n return (n//2)**2\n elif(n==1):\n return 0\n else:\n return z\n \nn=int(input())\nx=get(n)\nprint(x)'] | ['Runtime Error', 'Accepted'] | ['s598809826', 's333770909'] | [2940.0, 2940.0] | [17.0, 44.0] | [99, 177] |
p03264 | u698771758 | 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+x2-x1,y2-y1+x1,x2-x1+y1)', 'a=int(input())\nprint(int(a/2)*int((a+1)/2))'] | ['Runtime Error', 'Accepted'] | ['s535315853', 's039705387'] | [2940.0, 2940.0] | [17.0, 18.0] | [79, 43] |
p03264 | u701318346 | 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))', 'K = int(input())\nif K % 2 == 0:\n print((K // 2) **2)\nelse:\n print(((K + 1)// 2) * (K // 2))\n'] | ['Wrong Answer', 'Accepted'] | ['s341159046', 's191970870'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 94] |
p03264 | u705418271 | 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*k//4)\nelse:\n print((k+1)*(k-1)//2)', 'n=int(input())\nm=n//2\nif n%2==1:\n print(m*(m+1))\nelse:\n print(m**2)'] | ['Wrong Answer', 'Accepted'] | ['s193594870', 's807118973'] | [9048.0, 9048.0] | [29.0, 27.0] | [71, 69] |
p03264 | u706181322 | 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_1,y_1,x_2,y_2=tuple(map(int,input().split()))\n\nbe=[x_2-x_1,y_2-y_1]\nza3=[x_2+(-1)*be[1],y_2+be[0]]\nza4=[x_1+(-1)*be[1],y_1+be[0]]\n\nprint(za3[0],za3[1],za4[0],za4[1])', 'n=int(input())\nif n % 2==0:\n\tprint((n//2)**2)\nelse:\n\tm=(n+1)//2\n\tprint(m*(n-m))'] | ['Runtime Error', 'Accepted'] | ['s047470883', 's421015859'] | [3060.0, 2940.0] | [18.0, 18.0] | [167, 79] |
p03264 | u707659359 | 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\n\ng =0\nk =0\n\nif (K % 2) == 0:\n g=K/2\n k=K/2\nelse:\n g=(K-1)/2\n k=g+1\n\nprint(g*k)', 'K = int(input())\n\n\ng =0\nk =0\n\nif (K % 2) == 0:\n g=K/2\n k=K/2\nelse:\n g=(K-1)/2\n k=g+1\n\nprint(int(g*k))'] | ['Wrong Answer', 'Accepted'] | ['s256589725', 's349900409'] | [2940.0, 2940.0] | [17.0, 17.0] | [108, 113] |
p03264 | u712868001 | 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 A=K*K//4\n print(A)\nelse:\n B=(K-1)*K//4\n print(B)', 'K=int.input()\nif K%2==0\n A=K*K//4\n print(A)\nelse:\n B=(K-1)*K//4\n print(B)', 'K=int(input())\nif K%2==0:\n A=K*K//4\n print(A)\nelse:\n B=(K-1)*K//4\n print(B)', 'K=int(input())\nif K%2==0:\n A=K*K//4\n print(A)\nelse:\n B=(K-1)*(K+1)//4\n print(B)'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s734135142', 's830858292', 's924202386', 's343881515'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [78, 77, 79, 83] |
p03264 | u723583932 | 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. | ['#abc108 a\nk=int(input())\nans=0\nfor i in range(2,k+1):\n for j in range(2,k+1):\n if i%2==0 and j%2==1:\n cnt+=1\nprint(ans)\n', '#abc108 a\nk=int(input())\nans=0\nfor i in range(2,k+1):\n for j in range(2,k+1):\n if i%2==0 and j%2==1:\n ans+=1\nprint(ans)\n', '#abc108 a\nk=int(input())\nans=0\nfor i in range(1,k+1):\n for j in range(1,k+1):\n if i%2==0 and j%2==1:\n ans+=1\nprint(ans)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s066951651', 's141949541', 's417858562'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 19.0] | [141, 141, 140] |
p03264 | u729133443 | 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());print(n*(n+1)//4)', 'n=int(input());print(n*(n-1)//4)', 'print(int(input())**2//4)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s078378638', 's657522135', 's528149373'] | [2940.0, 2940.0, 9060.0] | [17.0, 17.0, 29.0] | [32, 32, 25] |
p03264 | u731028462 | 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())\nprint((a/2)*(a-(a/2)))', 'a = int(input())\nprint((a//2)*(a-(a//2)))'] | ['Wrong Answer', 'Accepted'] | ['s337277812', 's008434072'] | [2940.0, 2940.0] | [17.0, 17.0] | [39, 41] |
p03264 | u736729525 | 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\neven = N // 2\nodd = N - even\nprint(event * odd)', 'N = int(input())\n\neven = N // 2\nodd = N - even\nprint(even * odd)'] | ['Runtime Error', 'Accepted'] | ['s797928985', 's639808392'] | [2940.0, 2940.0] | [17.0, 17.0] | [65, 64] |
p03264 | u737715061 | 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)/2)*((k-1)/2+1))', 'k = int(input())\nif k % 2 == 0:\n print(int((k/2)**2))\nelse:\n l = k-1\n m = int(l/2)\n print(int(m*(m+1)))\n'] | ['Wrong Answer', 'Accepted'] | ['s850840946', 's094329771'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 108] |
p03264 | u740047492 | 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(inout())\nif k%2==0:\n print((k/2)**2)\nelif k%2==1:\n print((k/2)*(k/2+1))', 'k=int(input())\nif k%2==0:\n print((k/2)**2)\nelif k%2==1:\n print((k/2)*(k/2+1))', 'k=int(input())\nif k%2==0:\n print(int((k/2))**2)\nelif k%2==1:\n print(int((k/2))*int((k/2+1)))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s262637144', 's970399423', 's923089277'] | [2940.0, 2940.0, 3060.0] | [17.0, 18.0, 19.0] | [79, 79, 94] |
p03264 | u743164083 | 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)*((n+1)/2))\n', 'n = int(input())\nprint(-(-n//2)+((n+1)//2))\n', 'n = int(input())\nprint(-(-n//2)*((n+1)//2))\n', 'n = int(input())\nprint((n//2)*((n+1)//2))\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s112697695', 's485090294', 's864639833', 's826602694'] | [2940.0, 2940.0, 2940.0, 3064.0] | [17.0, 18.0, 17.0, 18.0] | [40, 44, 44, 42] |
p03264 | u747873993 | 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*K/4)\nelse:\n print((K-1)*(K-1)/4)', 'K=int(input())\nif K%2==0:\n print(K*K/4)\nelse:\n print((K+1)*(K-1)/4)', 'K=int(input())\nif K%2==0:\n print(K/2*K/2)\nelse:\n print(K/2*(K-1)/2)', 'K=int(input())\nif K%2==0:\n print(int(K*K/4))\nelse:\n print(int((K+1)*(K-1)/4))'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s021638210', 's745896227', 's807816150', 's330760544'] | [3064.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [69, 69, 69, 79] |
p03264 | u748540356 | 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**2-1)/4)', 'N=int(input())\nif N%2==0:\n print(int((N/2)**2))\nelse:\n print(int((N**2-1)/4))'] | ['Wrong Answer', 'Accepted'] | ['s290616094', 's214538824'] | [2940.0, 2940.0] | [17.0, 18.0] | [69, 79] |
p03264 | u754076673 | 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 S = K / 2\nelse:\n S = (K - 1) / 2\n\nX = S * (K - S)\n\nprint(X)\n', 'K = int(input())\n\nif K % 2 == 0:\n S = round((K / 2))\nelse:\n S = round((K - 1) / 2)\n\nX = S * (K - S)\n\nprint(X)\n'] | ['Wrong Answer', 'Accepted'] | ['s623420950', 's387336847'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 116] |
p03264 | u754511616 | 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())\nprint((a-1)*a)', 'a=int(input)\nif a%2==0:\n print(a*a)\nelse:\n print((a-1)*a)', 'a=int(input())\nif a%2==0:\n print(int(a*a/4))\nelse:\n print(int(((a+1)*(a-1))/4))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s812866328', 's852920296', 's316119889'] | [9112.0, 9016.0, 9112.0] | [23.0, 24.0, 27.0] | [29, 59, 81] |
p03264 | u756420279 | 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\n\nK = int(input())\n\nif K % 2 == 0:\n print((K//2)**2)\nelse:\n print(((K-1)/2)*((K-1)/2 + 1))', '#!/usr/bin/env python3\n\nK = int(input())\n\nif K % 2 == 0:\n print((K//2)**2)\nelse:\n print(int(((K-1)/2)*((K-1)/2 + 1)))'] | ['Wrong Answer', 'Accepted'] | ['s408769988', 's363136810'] | [2940.0, 2940.0] | [17.0, 17.0] | [118, 123] |
p03264 | u757274384 | 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\nn = k // 2\nif n % 2 == 0:\n print(k**2)\nelse:\n print(k * (k + 1))', 'k = int(input())\n\nn = k // 2\nif k % 2 == 0:\n print(k**2)\nelse:\n print(k * (k + 1))\n', 'k = int(input())\n\nn = k // 2\nif k % 2 == 0:\n print(n**2)\nelse:\n print(n * (n + 1))\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s386417400', 's699814067', 's058781058'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [84, 85, 85] |
p03264 | u762540523 | 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());print((n+1)//2*n//2)', 'n=int(input());print((n+1)//2*(n//2))'] | ['Wrong Answer', 'Accepted'] | ['s672036808', 's248040084'] | [2940.0, 3064.0] | [17.0, 18.0] | [35, 37] |
p03264 | u767432305 | 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=K/2\n ans=even**2\n else:\n even=K//2\n ans=even**2+1\nprint(ans)', 'K=int(input())\n\nif K%2==0:\n even=K/2\n ans=even**2\nelse:\n even=K//2\n ans=even*(even+1)\nprint(int(ans))\n'] | ['Runtime Error', 'Accepted'] | ['s596493143', 's077334019'] | [2940.0, 3188.0] | [17.0, 18.0] | [116, 114] |
p03264 | u771532493 | 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((L//2)**2)\nelse:\n print(L//2*(L//2+1))', 'K=int(input())\nif K%2==0:\n print((K//2)**2)\nelse:\n print(K//2*(K//2+1))'] | ['Runtime Error', 'Accepted'] | ['s222021616', 's187152291'] | [2940.0, 2940.0] | [16.0, 17.0] | [73, 73] |
p03264 | u777028980 | 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\nB=N%2\nC=int(A*(A+B))\nprint(C)', 'N=int(input())\nA=int(N/2)\nB=N%2\nC=int(A*(A+B))\nprint(C)'] | ['Wrong Answer', 'Accepted'] | ['s699381412', 's891874740'] | [2940.0, 2940.0] | [18.0, 18.0] | [50, 55] |
p03264 | u777394984 | 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())\nprint(a//2+(a+1)//2)', 'k=int(input())\nprint(int(k/2)+int((k+1)/2))', 'a=int(input())\nprint(int(a/2+(a+1)/2))\n', 'a=int(input())\nprint(int(a/2*(a+1)/2))\n', 'k=int(input())\nprint(int(k/2)*int((k+1)/2))'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s158846805', 's404457680', 's778819883', 's793263395', 's227817655'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [35, 43, 39, 39, 43] |
p03264 | u778700306 | 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())\na = k / 2\nb = k - a\nprint(a*b)', '\nk=int(input())\na = k // 2\nb = k - a\nprint(a*b)'] | ['Wrong Answer', 'Accepted'] | ['s216566765', 's717577157'] | [2940.0, 2940.0] | [17.0, 17.0] | [46, 47] |
p03264 | u782654209 | 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'] | ['s349056421', 's781946806'] | [2940.0, 2940.0] | [17.0, 17.0] | [37, 43] |
p03264 | u785578220 | 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 a = ((a/2)**2)\nelse:\n a = ((a/2)*(a//2+1))\nprint(int(a))', 'a = int(input())\nif a%2==0:\n a = ((a/2)**2)\nelse:\n a = ((a//2)*((a//2)+1))\nprint(int(a))'] | ['Wrong Answer', 'Accepted'] | ['s177783775', 's864132857'] | [2940.0, 2940.0] | [18.0, 18.0] | [91, 94] |
p03264 | u787679173 | 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\nnum_odd = K // 2 if K % 2 == 0 else K // 2 + 1\nnum_even = K // 2\n\nprint(num_odd * num_even)', 'K = int(input())\n\nnum_odd = K // 2 if K % 2 == 0 else K // 2 + 1\nnum_even = K // 2\n\nprint(num_odd * num_even)'] | ['Runtime Error', 'Accepted'] | ['s776670599', 's694860782'] | [2940.0, 2940.0] | [17.0, 17.0] | [104, 109] |
p03264 | u790877102 | 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\n\nif K%2 == 0:\n\tprint(K//2)*(K//2)\nelse:\n\tprint(K*K-1)//4\n', 'K = int(input())\n\n\nif K % 2 == 0:\n\tprint((K//2)**2)\nelse:\n\tprint((K//2)*((K//2)+1)', 'k = int(input())\n\n\nif k % 2 == 0:\n print((k//2)**2)\nelse:\n print((k//2)*((k//2)+1)\n', 'K = int(input())\n\n\nif K%2 = 0:\n\tprint(K/2)*(K/2)\nelse:\n\tprint(K*K-1)/4\n', 'K = int(input())\n\n\nif K%2 == 0:\n\tprint ((K/2)*(K/2))\nelse:\n\tprint ((K*K-1)/4)\n', 'K = int(input())\n\n\nif K % 2 == 0:\n print((K//2)**2)\nelse:\n print((K//2)*((K//2)+1)\n', 'K = int(input())\n\n\nif K%2 == 0:\n\tprint ((K/2)**2)\nelse:\n\tprint ((K*K-1)/4)\n', 'k = int(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\nans=0\n\nif K%2 = 0:\n\tans=(K/2)*(K/2)\nelse:\n\tans=(K*K-1)/4\n\nprint(ans)', 'k = int(input())\n\nif k % 2 == 0:\n print((k//2)**2)\nelse:\n print((k//2)*((k//2)+1)', 'K = int(input())\n\nif K%2 == 0:\n\tprint ((K//2)**2)\nelse:\n\tprint ((K//2)*((K//2)+1)\n', 'K = int(input())\n\n\nif K%2 == 0:\n\tprint ((K//2)**2)\nelse:\n\tprint ((K//2)*((K//2)+1)\n', 'K = int(input())\n\nif K%2 == 0:\n\tprint ((K//2)**2)\nelse:\n\tprint (((K//2)*((K//2)+1))\n', 'K = int(input())\n\n\nif K%2 == 0:\n\tprint(K/2)*(K/2)\nelse:\n\tprint(K*K-1)/4\n', 'k = int(input())\n\nif k % 2 == 0:\n print((k//2)**2)\nelse:\n print((k//2)*((k//2)+1))\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s044741796', 's107034378', 's171181480', 's178478471', 's202449964', 's332631060', 's473516386', 's585245589', 's612747032', 's626127856', 's663653768', 's673654166', 's694269099', 's951986171', 's669751694'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.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, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [75, 82, 91, 71, 78, 91, 75, 92, 86, 89, 82, 83, 84, 72, 91] |
p03264 | u797550216 | 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\nc=0\n\nfor i in range(1,k+1):\n\tfor j in range(1,K+1)\n\t\tif i % 2 ==0:\n\t\t\tif j % 2 == 1:\n\t\t\t\tc += 1\nprint(c)', 'k = int(input())\n\nc=0\n\nfor i in range(1,k+1):\n\tfor j in range(1,k+1):\n\t\tif i % 2 ==0:\n\t\t\tif j % 2 == 1:\n\t\t\t\tc += 1\nprint(c)\n'] | ['Runtime Error', 'Accepted'] | ['s323605433', 's907415287'] | [2940.0, 2940.0] | [17.0, 21.0] | [122, 124] |
p03264 | u801359367 | 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_1,y_1,x_2,y_2 = list(map(int,input().split()))\n\nA = x_2 - x_1 \nB = y_2 - y_1\n\nprint(x_2-B,y_2+A,x_1-B,y_1+A)', 'N = int(input())\nprint(int((N/2)**2))'] | ['Runtime Error', 'Accepted'] | ['s855065498', 's938416525'] | [2940.0, 2940.0] | [17.0, 17.0] | [110, 37] |
p03264 | u804048521 | 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/4))\nelse:\n print(int(((K+1)/2)*(K/2)))', 'K = int(input())\nif K % 2 == 0:\n print(int((K**2)/4))\nelse:\n print(int(((K+1)/2)*(K/2)))', 'K = int(input())\nif K % 2 == 0:\n print(int((K**2)/4))\nelse:\n print(int(((K+1)/2)*((K-1)/2)))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s243706511', 's973618288', 's468115237'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [88, 90, 94] |
p03264 | u807772568 | 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//2)*(n//2-1))\n', 'import math\nn = int(input())\n\nif n % 2 == 0:\n print(math.factorial(n//2)**2)\nelse:\n print(math.factorial(n//2)*math.factorial(n//2-1))', 'n = int(input())\n\nif n % 2 == 0:\n print((n//2)**2)\nelse:\n print((n//2)*(n//2-1))\n', 'n = int(input())\n\nif n % 2 == 0:\n print((n//2)**2)\nelse:\n print((n//2)*(n//2+1))\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s087522248', 's282248790', 's521556142', 's793081136'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 20.0, 18.0, 18.0] | [82, 136, 83, 83] |
p03264 | u809108154 | 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+1)*(k-1)/4)', 'k = int(input())\n\nif k%2==0:\n print(int((k/2)**2))\nelse:\n print(int((k+1)*(k-1)/4))'] | ['Wrong Answer', 'Accepted'] | ['s340585133', 's017221523'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 85] |
p03264 | u810066979 | 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())\neve=0\nodd=0\nfor i in range(1,K+1,1):\n\tif i%2==0:\n\t\teve+=1\n\telse:\n\t\todd+=1\nprint(eve,odd)', 'K=int(input())\neve=0\nodd=0\nfor i in range(1,K+1,1):\n\tif i%2==0:\n\t\teve+=1\n\telse:\n\t\todd+=1\nprint(eve*odd)'] | ['Wrong Answer', 'Accepted'] | ['s281848148', 's091227693'] | [2940.0, 2940.0] | [17.0, 17.0] | [103, 103] |
p03264 | u813102292 | 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*(K-1))', 'K = int(input())\nif K%2 == 0:\n print(int(K/2)**2)\nelse:\n print(int((K+1)/2*((K+1)/2-1)))'] | ['Wrong Answer', 'Accepted'] | ['s839847215', 's421876618'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 94] |
p03264 | u816631826 | 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 k")) \nx=0\nif n%2==0:\n x=(n/2)**2\nelse:\n x=((n//2)+1)*(n//2)\nprint(x)', '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)', 'from sys import stdin,stdout\n\ndef main():\n line=stdin.readline()\n parts=line.split()\n a=int(parts[0])\n par=int(a/2)\n impar=int(a/2)+a%2\n stdout.write(par*impar)\nmain()', 'n=int(input("enter k")) \nif n%2==0:\n x=(n/2)**2\nelse:\n x=((n//2)+1)*(n//2)\nprint(x)', 'x =int(input())\n\ny=x//2\n\nif (y%2==0):\n print (y**2)\nelif print ((y**2)+1)', 'k=input()\npair=0\nfor i in range(1,k+1):\n for j in range (2,k+1)\n if i%2==0 and j%2!=0:\n pair+=1\n ELIF i%2!=0 and j%2==0 :\n pair+=1\n else:\n pass\nprint(pair)\n \n\n\n', 'k = int(input())\nif k%2 == 0:\n print((k/2)*(k/2))\n\nelse:\n print(((k-1)/2)*(((k-1)/2)-k))', 'N=int(input("enter number")) \neven=0\nodd=0\nif N%2==0:\n even=N/2\n odd=N/2\nelif N=0:\n even=1\n odd=1\nelse:\n even=N//2\n odd=(N//2) +1\nPrint(even*odd)\nComment in Mark', 'k = int(input())\n\neven = k%2 == 0\nans = k >> 1\n\nif even:\n ans **= 2\nelse:\n ans *= (ans+1)\n\nprint(ans)'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s008026513', 's051701291', 's431748523', 's546699537', 's669828545', 's721252164', 's758241171', 's899516467', 's262210345'] | [2940.0, 2940.0, 9088.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 3064.0] | [17.0, 17.0, 23.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [93, 124, 185, 89, 76, 255, 94, 179, 107] |
p03264 | u820351940 | 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 * (k // 2) // 2)\n', 'k = int(input())\ncnt = 0\nfor i in range(1, k + 1):\n for j in range(1, k + 1):\n if i % 2 != j % 2:\n cnt += 1\nprint(cnt // 2)\n'] | ['Wrong Answer', 'Accepted'] | ['s651862003', 's567207800'] | [2940.0, 2940.0] | [18.0, 20.0] | [42, 145] |
p03264 | u821775079 | 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//2+1)*K//2)', 'K=int(input())\nif K%2==0:\n print(K//2*K//2)\nelse:\n print((K//2+1)*(K//2))'] | ['Wrong Answer', 'Accepted'] | ['s528315966', 's746605186'] | [2940.0, 3064.0] | [17.0, 17.0] | [73, 75] |
p03264 | u823044869 | 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//2*(n//2-1))\n', 'n = int(input())\n\nif n%2 == 0:\n print((n//2)**2)\nelif n > n//2*2:\n print(n//2*(n//2+1))\nelse:\n print(n//2*(n//2-1))\n'] | ['Wrong Answer', 'Accepted'] | ['s392452756', 's639212894'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 119] |
p03264 | u829249049 | 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*K/4)\nelse:\n print((K+1)*(K-1)/4)', 'K=int(input())\nif K%2==0:\n print(int(K*K/4))\nelse:\n print(int((K+1)*(K-1)/4))'] | ['Wrong Answer', 'Accepted'] | ['s019415977', 's285454368'] | [2940.0, 2940.0] | [17.0, 17.0] | [69, 79] |
p03264 | u835924161 | 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))', 'n=int(input())\nprint((k//2)*(k//2+1))', 'k=int(input())\nprint((k//2)*((k+1)//2))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s401335331', 's424410419', 's902264616'] | [8944.0, 9100.0, 8972.0] | [27.0, 24.0, 31.0] | [39, 37, 39] |
p03264 | u838786721 | 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 = [int(i) for i in input().split()]\n\ncnt = 0\n\nfor a in range(1,N+1):\n for b in range(1,N+1):\n if (a+b) % K !=0:\n continue\n else:\n for c in range(1,N+1):\n if (a+c) % K !=0 || (b+c) % K !=0:\n continue\n cnt = cnt+1\n\nprint(cnt)', 'k = int(input())\nq = k // 2\nm = k % 2\n\nk_odd = q + m\nk_even = q\n\nans = k_odd * k_even\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s814876409', 's772481275'] | [2940.0, 2940.0] | [17.0, 17.0] | [316, 98] |
p03264 | u845427284 | 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())\nylen = y2 - y1\nxlen = x2 - x1\n\nx3 = x2 - ylen\ny3 = y2 + xlen\nx4 = x3 - xlen\ny4 = y3 - ylen\n\nprint(str(x3) + " " + str(y3) + " " + str(x4) + " " + str(y4)) ', 'K = int(input())\n \nif K % 2 == 0:\n answer = (K / 2)**2\nelse:\n answer = ((K + 1) / 2)**2\n \nprint(int(answer))', 'K = int(input())\n\nif K % 2 == 0:\n answer = (K % 2)^2\nelse:\n answer = ((K + 1) % 2))^2\n\nprint(answer)', 'K = int(input())\n \nif K % 2 == 0:\n answer = (K / 2)**2\nelse:\n answer = ((K + 1) / 2)**2 - ((K + 1) / 2)\n \nprint(int(answer))'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s035469299', 's669445560', 's933984271', 's557691181'] | [3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [195, 110, 102, 126] |
p03264 | u853900545 | 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 = K // 2\nprint(a)\nif K%2 ==1:\n print(a * (a+1))\nelse:\n print(a ** 2)', 'K = int(input())\na = K // 2\nif K%2 ==1:\n print(a * (a+1))\nelse:\n print(a ** 2)'] | ['Wrong Answer', 'Accepted'] | ['s662214625', 's942721764'] | [2940.0, 3316.0] | [17.0, 22.0] | [93, 84] |
p03264 | u855380359 | 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*k/4)\nelse:\n print(k**2/4-1/4)', 'k = int(input())\n \nif k%2 == 0:\n print(int(k*k/4))\nelse:\n print(int(k**2/4-1/4))'] | ['Wrong Answer', 'Accepted'] | ['s086505323', 's558785762'] | [9100.0, 9160.0] | [31.0, 28.0] | [71, 82] |
p03264 | u857673087 | 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% == 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'] | ['Runtime Error', 'Accepted'] | ['s814566957', 's831271368'] | [2940.0, 2940.0] | [17.0, 18.0] | [85, 92] |
p03264 | u859897687 | 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//4+a//2if a%2>0else a*a//4)', 'a=int(input());print(a*a-a)', 'a=int(input())//2;print(a*a-a if a%2>0else a*a)', 'a=int(input());print(a//2*(a//2+1)if a%2>0else a*a//4)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s129727186', 's167849588', 's829440738', 's569621996'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 19.0] | [52, 27, 47, 54] |
p03264 | u860657719 | 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(int((K/2)**2))\nelse:\n print(int((K//2+1)*(K//2)))\n'] | ['Runtime Error', 'Accepted'] | ['s411924741', 's215224837'] | [3316.0, 3316.0] | [54.0, 19.0] | [85, 95] |
p03264 | u870518235 | 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)*(1+(N-1)/2))', 'N = int(input())\nif N % 2 ==0:\n print(int((N/2)**2))\nelse:\n print(int(((N-1)/2)*(1+(N-1)/2)))'] | ['Wrong Answer', 'Accepted'] | ['s582763134', 's987123842'] | [9072.0, 9236.0] | [27.0, 27.0] | [85, 95] |
p03264 | u871596687 | 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+1)/2*(K-1)/2)\n', 'K = int(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(int((K/2)**2))\nelse:\n print(int((K+1)/2*(K-1)/2))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s035921561', 's447768304', 's552943812'] | [2940.0, 3060.0, 2940.0] | [17.0, 19.0, 17.0] | [84, 88, 93] |
p03264 | u878138257 | 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-1)/2)*((a+1)/2))', 'a = int(input())\nif a%2==0:\n print(int((a/2)**2))\nelse:\n print(int(((a-1)/2)**2)\n', 'a = int(input())\nif a%2==0:\n print(int((a/2)**2))\nelse:\n print(int(((a-1)/2)**2))\n', 'a = int(input())\nif a%2==0:\n print(int((a/2)**2))\nelse:\n print(int(((a-1)/2)*((a+1)/2)))\n'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s453281079', 's578332273', 's898580975', 's077479553'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [83, 83, 84, 91] |
p03264 | u879680932 | 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/2 * (K/2-1))\n\n', 'K = int(input())\nif K%2 == 0: # is even\n print(int((K/2)*(K/2)))\nelse:\n print(int((K//2)*(K//2+1)))'] | ['Wrong Answer', 'Accepted'] | ['s878311699', 's712682696'] | [3060.0, 2940.0] | [17.0, 17.0] | [80, 101] |
p03264 | u883048396 | 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. | ['iK = int(input())\nif iK % 2 == 0:\n iN = int(iK / 2)\n print(iN * iN)\nelse :\n iN = int(iK - 1)/2\n print(iN * (iN + 1))\n', 'iK = int(input())\nif iK % 2 == 0:\n iN = int(iK / 2)\n print(iN * iN)\nelse :\n iN = int((iK - 1)/2)\n print(iN * (iN + 1))'] | ['Wrong Answer', 'Accepted'] | ['s783520122', 's936570417'] | [2940.0, 2940.0] | [17.0, 17.0] | [121, 122] |
p03264 | u887207211 | 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\nprint(K//2)*((K+1)//2)\n', 'K = int(input())\nprint((K+1)//2*K//2)', 'K = int(input())\n\n(K//2)*((K+1)//2)\n', 'K = int(input())\nprint((K+1)//2*(K//2))'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s353516774', 's429473987', 's825631866', 's707824034'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [41, 37, 36, 39] |
p03264 | u890807039 | 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)*((n+1)/2))', 'n = int(input())\nprint(int((n/2))*int((n+1)/2))\n'] | ['Wrong Answer', 'Accepted'] | ['s624752210', 's288440249'] | [2940.0, 2940.0] | [17.0, 17.0] | [39, 48] |
p03264 | u894359385 | 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())\nEven = []\nOdd = []\nfor i in range(1,N+1):\n if i % 2 == 0:\n Even.append(i)\n else:\n Odd.append(i)\nprint(Even * Odd)', 'N = int(input())\nif N % 2 == 0:\n print((N//2)**2)\nelse:\n print((N//2) * (N//2+1))'] | ['Runtime Error', 'Accepted'] | ['s981084162', 's125947256'] | [2940.0, 2940.0] | [17.0, 17.0] | [150, 87] |
p03264 | u901598613 | 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)*(n//2+1)\nelse:\n print((n//2)**2)', 'n=int(input())\nif n%2==0:\n print((n//2)*(n//2+1))\nelse:\n print((n//2)**2)', 'n=int(input())\nif n%2==1:\n print((n//2)*(n//2+1))\nelse:\n print((n//2)**2)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s715724118', 's795280400', 's695968188'] | [9012.0, 9160.0, 9168.0] | [28.0, 22.0, 24.0] | [78, 79, 79] |
p03264 | u906481659 | 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\tprint((K/2)*(K/2))\nelse:\n\tprint((k-1)*(k-1)/4)', 'K = int(input())\n\nif K%2==0:\n\tprint((K/2)*(K/2))\nelse:\n\tprint((K-1)*(K+1)/4)', 'K = int(input())\n\nif K%2==0:\n\tprint(round((K/2)*(K/2)))\nelse:\n\tprint(round((K-1)*(K+1)/4))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s303090075', 's777567225', 's461551144'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [76, 76, 90] |
p03264 | u914330401 | 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())\nprint(k//2 * (k+1)//2)', 'a = int(input())\nprint((k//2) * ((k+1)//2))\n', 'a = int(input())\nprint(int(k/2) * int((k+1)/ 2))\n', 'a = int(input())\nprint(int(a/2) * int((a+1)/ 2))\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s773423598', 's791013263', 's988699076', 's749174146'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [39, 44, 49, 49] |
p03264 | u917558625 | 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*K//4)\nelse:\n print(K*(K//2+1)//2)', 'K=int(input())\nif K%2==0:\n print(K*K//4)\nelse:\n print((K//2)*(K//2+1))'] | ['Wrong Answer', 'Accepted'] | ['s534586263', 's430908252'] | [9112.0, 9056.0] | [25.0, 27.0] | [70, 72] |
p03264 | u918009437 | 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 == 0:\n print(0)\nelse:\n even = k//2\n if k%2==0:\n odd = k-1\n else:\n odd = k\n print(str(even*odd))', 'k = int(input())\n\nif k == 0:\n print(0)\nelse:\n even = k//2\n if k%2==0:\n odd = k-1\n else\n odd = k\n print(str(even*odd))\n', 'k = int(input())\n\nif k == 0:\n print(0)\nelse:\n even = k//2\n if k%2==0:\n odd = k-1\n else:\n odd = k\n print(str(even*odd))\n', 'k = int(input())\n\nif k == 0:\n print(0)\nelse:\n if k%2==0:\n even = k\n odd = k-1\n else:\n even = k - 1\n odd = k\n print(str((even//2)*((odd+1)//2)))\n'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s349990649', 's373309299', 's523452196', 's107002907'] | [2940.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [127, 129, 130, 160] |
p03264 | u920694585 | 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) * (n % 2))', 'n = int(input())\nif n % 2 == 0:\n n //= 2\n print(n * n)\nelse:\n a = n // 2\n print(a * (n-a))'] | ['Wrong Answer', 'Accepted'] | ['s994160180', 's006210179'] | [2940.0, 2940.0] | [16.0, 18.0] | [42, 102] |
p03264 | u924406834 | 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+1))', 'K = int(input())\nif K % 2 == 1:\n print((K//2)*(K//2+1))\nelse:\n print((K//2)*(K//2))'] | ['Wrong Answer', 'Accepted'] | ['s292594926', 's592300204'] | [2940.0, 2940.0] | [17.0, 17.0] | [37, 89] |
p03264 | u924828749 | 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)//4)\nelse:\n print(((n-1)//2) * (n // 2))\n', 'n = int(input())\nif n % 2 == 0:\n print((n**2)//4)\nelse:\n print(((n-1)//2) * ((n+1) // 2))'] | ['Wrong Answer', 'Accepted'] | ['s271162079', 's401122128'] | [9020.0, 9064.0] | [28.0, 30.0] | [88, 91] |
p03264 | u928784113 | 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())\nif K % 2 == 0:\n print((K//2)*(K//2))\nelse:\n print((K+1//2) * ((K-1)//2))', '# -*- coding: utf-8 -*-\nK = int(input())\nif K % 2 == 0:\n print((K//2)*(K//2))\nelse:\n print((K //2) * ((K-1)//2))', 'x1,y1,x2,y2 = map(int,input().split())\nx3 = y1 - y2\ny3 = abs(x1 - x2)\nx4 = abs(y2 - y3)\ny4 = abs(x2 - x3)\nprint(x3,y3,x4,y4)', '# -*- coding: utf-8 -*-\nK = int(input())\nif K % 2 == 0:\n print((K//2)*(K//2))\nelif K % 2 == 1:\n print((K+1//2) * ((K-1)//2))', 'x1,x2,y1,y2 = map(int,input().split())\nx3 = x2 + (y1 - y2)\ny3 = y2 + (x2 - x1)\nx4 = y1 + (x2 - x1)\ny4 = x1 + (y1 - y2)\nprint(x3,y3,x4,y4)', '# -*- coding: utf-8 -*-\nK = int(input())\nif K % 2 == 0:\n print((K//2)*(K//2))', '# -*- coding: utf-8 -*-\nK = int(input())\nif K % 2 == 0:\n print((K//2)*(K//2))\nelif K % 2 == 1:\n print(((K+1)//2)*((K-1)//2))'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s307735618', 's337547784', 's412234045', 's580283071', 's926173965', 's963382232', 's322866814'] | [2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0] | [19.0, 17.0, 17.0, 17.0, 18.0, 17.0, 18.0] | [115, 114, 124, 126, 137, 78, 126] |
p03264 | u940279019 | 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/2+1)))', 'K = int(input())\nif(K%2 == 0):\n print(int((K/2)**2))\nelse:\n print(int((K/2)*(K/2+1)))', 'K = int(input())\nif(K%2 == 0):\n print(int((K/2)**2))\nelse:\n print(int(((K-1)/2)*((K+1)/2)))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s077818253', 's140894702', 's789031655'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [86, 87, 93] |
p03264 | u942767171 | 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*k//4)\nelse :\n print(k*(k+1)//4)', 'k = int(input())\n\nif k%2==0 :\n print(k*k//4)\nelse :\n print((k+1)*(k-1)//4)'] | ['Wrong Answer', 'Accepted'] | ['s622173537', 's162329934'] | [3316.0, 2940.0] | [20.0, 17.0] | [74, 78] |
p03264 | u946090308 | 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 if (k%2) == 0:\n o = (k*(k+1))/2\n e = (k*(k-1))/2\n print(o+e)\n else:\n o = (k*(k-1))/2\n e = (k*(k-1))/2\n print(o+e)', 'k = int(input()) \nif (k%2) == 1:\n oe = ((k+1) * (k-3)) / 8\n print(2 * oe)\nelse:\n o = (k+2) * (k-2)/8\n e = k * (k-4) / 8\n print(o+e)', 'k = int(input()) \nif (k%2) == 0:\n o = (k*(k+1))/8\n e = (k*(k-1))/8\n print(o+e)\nelse:\n o = (k*(k-1))/ 4\n e = ((k-1)*(k-2))/4\n print(o+e)', '\nk = int(input()) \n\nif (k%2) == 0:\n o = (k-1) * (k+1) / 8\n \n print(2 * o)\n\nelse:\n o = k * (k+2) / 8\n e = (k-2) ** 2 / 8\n print(o+e)', 'k = int(input())\nprint(k // 2)', '\nk = int(input()) \n\nif (k%2) == 1:\n o = (k-1) * (k+1) / 8\n \n print(2 * o)\n\nelse:\n o = k * (k+2) / 8\n e = (k-2) ** 2 / 8\n print(o+e)', 'k = int(input())\nprint(k, k-1)', 'k = int(input())\nprint(k, k-1)', 'k = int(input()) \nif (k%2) == 1:\n oe = ((k+3) * (k-1)) / 8\n print(2 * oe)\nelse:\n o = (k+4) * (k)/8\n e = (k+2) * (k-2) / 8\n print(o+e)', 'k = int(input())\nprint((k+1) * (K // 2) / 2)', 'k = int(input()) \nif (k%2) == 1:\n oe = ((k+1) * (k-3)) / 8\n print(2 * oe)\nelse:\n o = (k+2) * (k-1)/8\n e = (k*(k-4))/8\n print(o+e)', 'k = int(input()) \nif (k%2) == 1:\n oe = ((k+1) * (k-3)) / 8 \n print(2 * oe)\nelse:\n o = (k*2) * (k-1)/8\n e = (k*(k-4))/8\n print(o+e)', '\nk = int(input()) \n\nif (k%2) == 1:\n o = (k-1) * (k+1) / 8\n \n print(int(2*o))\n\nelse:\n o = k * (k+2) / 8\n e = k * (k-2) / 8\n print(int(o+e))'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s044589128', 's096238727', 's114853870', 's184438367', 's273568828', 's316743421', 's399467174', 's665853822', 's790863754', 's899929545', 's908825329', 's937717133', 's476969237'] | [2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 18.0, 17.0, 18.0, 18.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 24.0] | [187, 153, 160, 230, 30, 230, 30, 30, 155, 44, 151, 152, 266] |
p03264 | u951601135 | 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())\na=abs(x1-x2)\nb=abs(y1-y2)\nif(y1<=y2):\n if(x1<=x2):\n print(x2-b,y2+a,x1-b,y1+a)\n else:\n print(x2-b,y2-a,x1-b,y1-a)\nelse:\n if(x1<=x2):\n print(x2+a,y2-b,x1+a,y1-b)\n else:\n print(x2+b,y2+a,x1+b,y1-a)', 'K=int(input())\nprint((K//2)*((K + 2 - 1) // 2))'] | ['Runtime Error', 'Accepted'] | ['s110633700', 's654608600'] | [3064.0, 2940.0] | [18.0, 18.0] | [248, 47] |
p03264 | u957957759 | 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 n%2==0:\n print(int(n*n/4))\nelse:\n print(int((n-1)*(n+1)/4))', 'k=int(input())\nif n%2==0:\n print(n*n/4)\nelse:\n print((n-1)*(n+1)/4)', 'n=int(input())\nif n%2==0:\n print(int((n*n)/4))\nelse:\n print(int(((n-1)*(n+1))/4))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s256676860', 's804159615', 's915989066'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [83, 73, 87] |
p03264 | u960171798 | 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)/4)\n ', 'K = int(input())\nif K%2 == 0:\n print((K/2)**2)\nelse:\n print((K-1)*(K+1)/4)\n \n', 'K = int(input())\nif K%2 == 0:\n print(int((K/2)**2))\nelse:\n print(int((K-1)(K+1)/4))\n \n', 'k = int(input())\nif k%2==1:\n print((k//2)*(k//2+1))\nelse:\n print((k//2)**2)\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s449778469', 's459019159', 's942463455', 's361950527'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [78, 80, 89, 78] |
p03264 | u965033073 | 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 / 4)\nelse:\n print(a * (a - 1) / 4)', 'k = int(input())\nans = 0\nif k%2 == 1:\n n = (k+1)/2\n ans = n * (n-1)\nelse:\n ans = (k/2)*(k/2)\nprint(int(ans))\n'] | ['Wrong Answer', 'Accepted'] | ['s833224421', 's389180083'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 118] |
p03264 | u970738863 | 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 A = (K/2)*(K/2)\nelse:\n A = ((K-1)/2)*((K+1)/2)\n\nprint(A)', 'K = int(input())\nif K%2 == 0:\n A = (K/2)*(K/2)\nelse:\n A = ((K-1)/2)*((K+1)/2)\n\nprint(A)\n', 'K = int(input())\nif K%2 == 0:\n A = (K/2)*(K/2)\nelse:\n A = ((K-1)/2)*((K+1)/2)\n\nprint(int(A))\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s432936683', 's507227272', 's072677241'] | [3064.0, 3316.0, 2940.0] | [17.0, 21.0, 17.0] | [92, 94, 99] |
p03264 | u973108807 | 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 + 1) * k//2)', 'k = int(input())\nprint((k//2+k%2) * (k//2))'] | ['Wrong Answer', 'Accepted'] | ['s597773131', 's751589961'] | [2940.0, 2940.0] | [17.0, 17.0] | [41, 43] |
p03264 | u973840923 | 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\nif k%2==1:\n ans = (n//k)**3\nelse:\n even = n//k\n odd = (2*n)//k - even\n ans = even**3 + odd**3\nprint(ans)', 'list = [i for i in range(1, K + 1)]\nodd = list[1::2]\neven = list[0::2]\n\ncnt = 0\n\nfor i in odd:\n for j in even:\n cnt += 1\n\nprint(cnt)', 'def factoring(K):\n list = [i for i in range(1, K + 1)]\n odd = list[1::2]\n even = list[0::2]\n\n cnt = 0\n\n for i in odd:\n for j in even:\n cnt += 1\n return print(cnt)', 'K = int(input())\n\nlist = [x for x in range(1,K+1)]\n\nlist_odd = list[1::2]\nlist_even = list[0::2]\n\ncnt = 0\n\nfor i in list_odd:\n for j in list_even:\n cnt += 1\n\nprint(cnt)'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s152587200', 's266364427', 's811787983', 's727767738'] | [2940.0, 2940.0, 2940.0, 3060.0] | [16.0, 17.0, 17.0, 17.0] | [149, 142, 198, 178] |
p03264 | u980492406 | 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/4)\nelse :\n print((a+1)/2*(a-1)/2)\n ', 'a = int(input())\nif a%2 == 0 :\n print(a**2)\nelse :\n prin((a+1)/2*(a-1)/2)\n ', 'a = int(input())\nif a%2 == 0 :\n print(a**2)\nelse :\n print((a+1)/2*(a-1)/2)\n ', 'a = int(input())\nif a%2 == 0 :\n print(int(a**2/4))\nelse :\n print(int((a+1)/2*(a-1)/2))\n '] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s078287074', 's206174290', 's421718062', 's043671498'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [86, 83, 84, 96] |
p03264 | u982594421 | 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, b = a // 2 + a % 2, a // 2\nprint(a * b)\n\n', 'k = int(input())\na, b = k // 2 + k % 2, k // 2\nprint(a * b)'] | ['Runtime Error', 'Accepted'] | ['s887058221', 's087394587'] | [2940.0, 2940.0] | [17.0, 17.0] | [61, 59] |
p03264 | u983918956 | 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())\nx3 = x2+y1-y2\ny3 = -x1+x2+y2\nx4 = x1+y1-y2\ny4 = -x1+x2+y1\nprint(x3,y3,x4,y4)', 'K = int(input())\nif K % 2 == 0:\n ans = (K // 2)**2\nelif K % 2 == 1:\n a = K // 2\n b = a + 1\n ans = a * b\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s426736787', 's930102294'] | [2940.0, 2940.0] | [18.0, 18.0] | [115, 118] |
p03264 | u989385104 | 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*K/2)\nelse:\n print((K-1)*(K+1)/4)', 'x1, y1, x2, y2 = map(int, input().split())\n\ny3 = y2 + x2- x1\ny4 = x2 - x1 + y1\nx3 = y1 - y2 + x2\nx4 = y1 - y2 + x1\n\nprint(x3, y3, x4, y4)\n', 'K = int(input())\n \nif K % 2 == 0:\n print(int(K/2*K/2))\nelse:\n print(int((K-1)*(K+1)/4))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s151455345', 's473282963', 's338876924'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [78, 138, 89] |
p03264 | u992910889 | 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==1:\n print((N//2+1)*N//2)\nelse:\n print((N//2)**2)', 'N=int(input())\nif N%2==1:\n print((N//2+1)*N//2)', 'N=int(input())\nif N%2==1:\n print((N//2+1)*(N//2))\nelse:\n print((N//2)**2)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s027341811', 's721889597', 's194730981'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [77, 50, 79] |
p03264 | u994521204 | 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)*(n//2-1)//2)\nif n%2==1:\n print(((n-1)//2)*((n+1)//2)//2)', 'n=int(input())\nif n%2==0:\n print((n//2)*(n//2))\nif n%2==1:\n print(((n-1)//2)*((n+1)//2))'] | ['Wrong Answer', 'Accepted'] | ['s743286427', 's824604769'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 90] |
p03265 | u004208081 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['1, y1, x2, y2 = list(map(int, input().split()))\n\nxx = x2 - x1\nyy = y2 - y1\n\nx3 = x2 - yy\ny3 = y2 + xx\nx4 = x3 - xx\ny4 = y3 - yy\n\nprint(x3, y3, x4, y4)', 'x1, y1, x2, y2 = list(map(int, input().split()))\n\nxx = x2 - x1\nyy = y2 - y1\n\nx3 = x2 - yy\ny3 = y2 + xx\nx4 = x3 - xx\ny4 = y3 - yy\n\nprint(x3, y3, x4, y4)'] | ['Runtime Error', 'Accepted'] | ['s929377789', 's880946829'] | [3056.0, 3060.0] | [17.0, 17.0] | [150, 151] |
p03265 | u013408661 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['x1,y1,x2,y2=map(int,input().split())\na=x2-x1\nb=y2-y1\nx3=x2+b\ny3=y2-a\nx4=x3-a\ny4=y3-b\nprint("{} {} {} {}".format(x3,y3,x4,y4))', 'x1,y1,x2,y2=map(int,input().split())\na=x2-x1\nb=y2-y1\nx3=x2+b\ny3=y2-a\nx4=x3-a\ny4=y3-b\nprint(x3,y3,x4,y4)', 'x1,y1,x2,y2=map(int,input().split())\na=x2-x1\nb=y2-y1\nx3=x2-b\ny3=y2+a\nx4=x1-b\ny4=y1+a\nprint(x3,y3,x4,y4)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s778043687', 's838032007', 's390073376'] | [2940.0, 3060.0, 3060.0] | [17.0, 18.0, 17.0] | [125, 103, 103] |
p03265 | u019320703 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['def dis( x1,y1,x2,y2):\n\n\tdist = (x1-x2)**2 + (y1-y2)**2\n\treturn dist;\n\nx1,y1,x2,y2 = map(int,input().split())\ntemp = dis(x1,y1,x2,y2);\n\nif y1!=y2:\n\n\tslope = ( x1-x2 )/( y1 - y2 )\n\n\tL = x2;\n\tR = 99999999999999;\n\tflag=0;\n\twhile ( R-L > 1):\n\n\t\tmid = ( L + R )//2;\n\n\t\tx3 = mid;\n\t\ty3 = slope*( x3 - x2 ) + y2;\n\n\t\t\n\t\tb = dis( x2,y2,x3,y3)\n\n\t\tif b==temp:\n\t\t\tflag=1;\n\t\t\tbreak;\n\t\telif b > temp:\n\t\t\tR = mid-1;\n\t\telse:\n\t\t\tL = mid+1;\n\t\n\tif flag==0:\n\t\tmid = L;\n\t\tx3 = mid;\n\t\ty3 = slope*( x3 - x2 ) + y2;\n\n\t\tb = dis( x2,y2,x3,y3)\n\n\t\tif b==temp:\n\t\t\tx3 = L;\n\t\telse:\n\t\t\tx3 = R;\n\ty3 = int(slope*( x3 - x2 ) + y2);\n\n\tx4 = x1+x3-x2;\n\ty4 = y1+y3-y2;\n\n\tprint( x3,y3,x4,y4);\nelse:\n\n\tx3 = x2;\n\n\tL = y2;\n\tR = 9999999999999;\n\n\twhile ( R-L > 1):\n\n\t\tmid = ( L + R )//2;\n\n\t\ty3 = mid;\n\n\t\tb = dis( x2,y2,x3,y3)\n\n\t\tif b==temp:\n\t\t\tflag=1;\n\t\t\tbreak;\n\t\telif b > temp:\n\t\t\tR = mid-1;\n\t\telse:\n\t\t\tL = mid+1;\n\t\n\tif flag==0:\n\t\tmid = L;\n\t\ty3 = mid;\n\n\t\tb = dis( x2,y2,x3,y3)\n\n\t\tif b==temp:\n\t\t\ty3 = L;\n\t\telse:\n\t\t\ty3 = R;\n\n\tx4 = x1+x3-x2;\n\ty4 = y1+y3-y2;\n\n\tprint( x3,y3,x4,y4);\n\n\n', 'def dis( x1,y1,x2,y2):\n\n\tdist = (x1-x2)**2 + (y1-y2)**2\n\treturn dist;\n\nx1,y1,x2,y2 = map(int,input().split())\ntemp = dis(x1,y1,x2,y2);\n\nif y1!=y2:\n\n\tif y1>y2:\n\t\tdire = 1;\n\telse:\n\t\tdire=-1;\n\n\tnum = ( x1-x2 )\n\tden = ( y2 - y1 )\n\n\tL = x2;\n\tR = 99999999999999;\n\tflag=0;\n\twhile ( R-L > 1):\n\n\t\tmid = ( L + R )//2;\n\n\t\tx3 = mid;\n\t\ty3 = ( num*( x3 - x2 ) + y2*den )//den;\n\n\t\t\n\t\tb = dis( x2,y2,x3,y3)\n\n\t\tif b==temp:\n\t\t\tflag=1;\n\t\t\tbreak;\n\t\telif b > temp:\n\t\t\tR = mid-1;\n\t\telse:\n\t\t\tL = mid+1;\n\t\n\tif flag==0:\n\t\tmid = L;\n\t\tx3 = mid;\n\t\ty3 = ( num*( x3 - x2 ) + y2*den )//den;\n\n\t\tb = dis( x2,y2,x3,y3)\n\n\t\tif b==temp:\n\t\t\tx3 = L;\n\t\telse:\n\t\t\tx3 = R;\n\t#print(x3)\n\t#print(slope)\n\ty3 = ( num*( x3 - x2 ) + y2*den )//den;\n\t#print(y3)\n\n\tif dire == -1:\n\n\t\tx3 = x2 - ( x3-x2)\n\ty3 = ( num*( x3 - x2 ) + y2*den )//den;\n\tx4 = x1+x3-x2;\n\ty4 = y1+y3-y2;\n\n\tprint( x3,y3,x4,y4);\nelse:\n\n\tx3 = x2;\n\tif x1>x2:\n\t\tdire=-1;\n\telse:\n\t\tdire=1;\n\n\tL = y2;\n\tR = 9999999999999;\n\n\twhile ( R-L > 1):\n\n\t\tmid = ( L + R )//2;\n\n\t\ty3 = mid;\n\n\t\tb = dis( x2,y2,x3,y3)\n\n\t\tif b==temp:\n\t\t\tflag=1;\n\t\t\tbreak;\n\t\telif b > temp:\n\t\t\tR = mid-1;\n\t\telse:\n\t\t\tL = mid+1;\n\t\n\tif flag==0:\n\t\tmid = L;\n\t\ty3 = mid;\n\n\t\tb = dis( x2,y2,x3,y3)\n\n\t\tif b==temp:\n\t\t\ty3 = L;\n\t\telse:\n\t\t\ty3 = R;\n\n\tif dire == -1:\n\t\ty3 = y2 - (y3-y2);\n\t\t\t\n\tx4 = x1+x3-x2;\n\ty4 = y1+y3-y2;\n\n\tprint( x3,y3,x4,y4);\n\n\n'] | ['Wrong Answer', 'Accepted'] | ['s919900066', 's509107486'] | [3188.0, 3192.0] | [18.0, 17.0] | [1035, 1308] |
p03265 | u036104576 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['x1, y1, x2, y2 = map(int, input().split())\ndx = x2 - x1\ndy = y2 - y1\n\nx3 = x2 - dy\ny3 = y2 + dx\nx4 = x3 - dx\ny4 = y3 - dy\n\nprint(x3, y3, x4, y4', 'x1, y1, x2, y2 = map(int, input().split())\ndx = x2 - x1\ndy = y2 - y1\n\nx3 = x2 - dy\ny3 = y2 + dx\nx4 = x1 - dy\ny4 = y1 + dx\n\nprint(x3, y3, x4, y4)'] | ['Runtime Error', 'Accepted'] | ['s092421208', 's466681387'] | [9032.0, 8860.0] | [24.0, 29.0] | [143, 144] |
p03265 | u039623862 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['x1,y1,x2,y2=map(int,input().split())\ndy = y2-y1\ndx = x2-x1\n\nprint(x2+dy, y2+dx, x1-dy, y1-dx)', 'x1,y1,x2,y2=map(int,input().split())\ndy = y2-y1\ndx = x2-x1\n\nprint(x2-dy, y2+dx, x1-dy, y1+dx)\n'] | ['Wrong Answer', 'Accepted'] | ['s579730044', 's813693371'] | [2940.0, 2940.0] | [17.0, 17.0] | [93, 94] |
p03265 | u053856575 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['x1,y1,x2,y2=map(int,input().split())\n\nk1=x2-x1\nk2=y2-y1\n\nprint(x2-k2,y2+k1,x3-k1,y3-k2)', 'x1,y1,x2,y2=map(int,input().split())\n\nk1=x2-x1\nk2=y2-y1\n\nprint(x2-k2,y2+k1,x2-k2-k1,y2+k1-k2)'] | ['Runtime Error', 'Accepted'] | ['s917884710', 's314224925'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 93] |
p03265 | u063073794 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['sal\nx1, y1, x2, y2 = map(int, input().split())\nx3 = x2 + y1 - y2\ny3 = y2 + x2 - x1\nx4 = x3 + y2 - y3\ny4 = y3 + x3 - x2\nprint(x3, y3, x4, y4)\n', 'x1,y1,x2,y2= map(int,input().split())\na=x2-x1\nb=y2-y1\n\nx3=x2-b\ny3=y2+a\n\nx4=x3-a\ny4=y3-b\n\nprint(x3,y3,x4,y4)\n'] | ['Runtime Error', 'Accepted'] | ['s763355201', 's391597524'] | [2940.0, 2940.0] | [17.0, 17.0] | [141, 108] |
p03265 | u075303794 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ["x_1,y_1,x_2,y_2 = map(int, input().split())\n\nprint(x_2,y_2 + abs(x_2 - x_1), x_1, y_2 + abs(x_2 - x_1), end=' ')", 'a,b,c,d = map(int, input().split())\nx = a - c\ny = d - b\nprint(c - y, d - x, a - y, b - x)\n'] | ['Wrong Answer', 'Accepted'] | ['s791054302', 's720038218'] | [2940.0, 2940.0] | [17.0, 17.0] | [112, 90] |
p03265 | u077019541 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['x1,x2,y1,y2 = map(int,input().split())\nprint("{} {} {} {}".format(x1+abs(x1-x2),y1+abs(y1-y2),x2+abs(x1-x2),y2+abs(y1-y2)))', 'x1,y1,x2,y2 = map(int,input().split())\nxnum = x2-x1\nynum = y2-y1\nx3,y3 = x1-ynum,y1+xnum\nx4,y4 = x2-ynum,y2+xnum\nprint(x4,y4,x3,y3)'] | ['Wrong Answer', 'Accepted'] | ['s641879905', 's493484457'] | [3060.0, 2940.0] | [20.0, 17.0] | [123, 131] |
p03265 | u078214750 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['x1, y1, x2, y2 = list(map(int, input().split()))\nvector = (x2-x1, y2-y1)\nx3, y3 = x1-vector[1], y1+vector[0]\nx4, y4 = x2-vector[1], y2+vector[0]\nprint(x3, y3, x4, y4)', 'x1, y1, x2, y2 = list(map(int, input().split()))\nvector = (x2-x1, y2-y1)\nx3, y3 = x2-vector[1], y2+vector[0]\nx4, y4 = x1-vector[1], y1+vector[0]\nprint(x3, y3, x4, y4)'] | ['Wrong Answer', 'Accepted'] | ['s461492113', 's380922589'] | [9084.0, 9124.0] | [27.0, 29.0] | [166, 166] |
p03265 | u084968244 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ["import 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 print('{} {} {} {}'.format(np.round(a3[0,0]), np.round(a3[0,1]), np.round(a4[0,0]), np.round(a4[0,1])))\n", "# 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", "# 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(int(np.round(a3[0,0])), int(np.round(a3[0,1])), int(np.round(a4[0,0])), int(np.round(a4[0,1]))))\n"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s074447217', 's192192928', 's421594267'] | [19744.0, 12524.0, 21300.0] | [285.0, 151.0, 307.0] | [415, 465, 485] |
p03265 | u094565093 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ["x1,y1,x2,y2=map(int, input().split())\nvx=x2-x1\nvy=y2-y1\ntmp=vx\nvx=-vy\nvy=tmp\nx3=x2+vx\ny3=x2+vy\nvx=x3-x2\nvy=y3-y2\ntmp=vx\nvx=-vy\nvy=tmp\nx4=x3+vx\ny4=y3+vy\nprint(str(x3)+' '+str(y3)+' '+str(x4)+' '+str(y4))", 'x1,y1,x2,y2=map(int,input().split())\na=x2-x1\nb=y2-y1\nprint(x2-b,y2+a,x1-b,y1+a)'] | ['Wrong Answer', 'Accepted'] | ['s839004789', 's420631491'] | [3064.0, 2940.0] | [17.0, 17.0] | [202, 79] |
p03265 | u106297876 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['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)', '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])'] | ['Wrong Answer', 'Accepted'] | ['s907558532', 's829210741'] | [3060.0, 3064.0] | [17.0, 17.0] | [147, 168] |
p03265 | u113255362 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['Dist = abs(y1-y2)**2+abs(x1-x2)**2\ndist = Dist**0.5\nif x2 >= x1 and y2 >= y1:\n x3=x2-abs(y2-y1)\n x4=x1-abs(y2-y1)\n y3=y2+abs(x2-x1)\n y4=y1+abs(x2-x1)\nelif x2 < x1 and y2 >= y1:\n x3=x2-abs(y2-y1)\n x4=x1-abs(y2-y1)\n y3=y2-abs(x2-x1)\n y4=y1-abs(x2-x1)\nelif x2 < x1 and y1 >= y2:\n x3=x2+abs(y2-y1)\n x4=x1+abs(y2-y1)\n y3=y2-abs(x2-x1)\n y4=y1-abs(x2-x1)\nelse:\n x3=x2+abs(y2-y1)\n x4=x1+abs(y2-y1)\n y3=y2+abs(x2-x1)\n y4=y1+abs(x2-x1)\nprint(x3,y3,x4,y4)', 'x1,y1,x2,y2=map(int,input().split())\nDist = abs(y1-y2)**2+abs(x1-x2)**2\ndist = Dist**0.5\nfor i in range(-1000,1000):\n if y2 ==y1:\n x3 = x2\n x4 = x1\n y3 = int(dist)\n y4 =y3\n elif x1 == x2:\n x3 = -dist\n x4 = x3\n y3 = y2\n y4 = y1\n else:\n if Dist*(i-x2)**2==Dist*(y2-y1)**2:\n if i < x2:\n x3 = i\n y3 = y2 - (x2-x1)*(x3-x2)//(y2-y1)\n if Dist*(i-x1)**2==Dist*(y2-y1)**2:\n if i < x1:\n x4 = i\n y4 = y1 - (x2-x1)*(x4-x1)//(y2-y1)\nprint(x3,y3,x4,y4)', 'x1,y1,x2,y2=map(int,input().split())\nif x2 >= x1 and y2 >= y1:\n x3=x2-abs(y2-y1)\n x4=x1-abs(y2-y1)\n y3=y2+abs(x2-x1)\n y4=y1+abs(x2-x1)\nelif x2 < x1 and y2 >= y1:\n x3=x2-abs(y2-y1)\n x4=x1-abs(y2-y1)\n y3=y2-abs(x2-x1)\n y4=y1-abs(x2-x1)\nelif x2 < x1 and y1 >= y2:\n x3=x2+abs(y2-y1)\n x4=x1+abs(y2-y1)\n y3=y2-abs(x2-x1)\n y4=y1-abs(x2-x1)\nelse:\n x3=x2+abs(y2-y1)\n x4=x1+abs(y2-y1)\n y3=y2+abs(x2-x1)\n y4=y1+abs(x2-x1)\nprint(x3,y3,x4,y4)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s488883313', 's629753740', 's282758313'] | [9164.0, 9340.0, 9092.0] | [27.0, 30.0, 27.0] | [460, 509, 445] |
p03265 | u126823513 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['int_k = int(input())\n\nif int_k % 2 == 0:\n print((int_k // 2) ** 2)\nelse:\n print((int_k // 2) * ((int_k //2) + 1))\n', 'int_x1, int_y1, int_x2, int_y2 = map(int, input().split())\n\nint_x3 = int_y3 = int_x4 = int_y4 = 0\n\nint_x = int_x2 - int_x1\nint_y = int_y2 - int_y1\n\nprint(int_x2 - int_y, int_y2 + int_x, int_x1 - int_y, int_y1 + int_x)\n\n'] | ['Runtime Error', 'Accepted'] | ['s871391859', 's844240022'] | [2940.0, 2940.0] | [17.0, 17.0] | [120, 219] |
p03265 | u136090046 | 2,000 | 1,048,576 | There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order. (Assume that the positive x-axis points right, and the positive y-axis points up.) Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4). Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values. | ['x1, y1, x2, y2 = map(int, input().split())\n\ntmpx = x2 - x1\ntmpy = y2 - y1\nprint(tmpx, tmpy)\nif tmpx > 0 and tmpy > 0:\n x3 = x2 - tmpy\n y3 = y2 + tmpx\n x4 = x3 - tmpx\n y4 = y3 - tmpy\n\nelif tmpx == 0 and tmpy > 0:\n x3 = x2 - tmpy\n y3 = y2\n x4 = x3\n y4 = y3 + (x3-x2)\nelif tmpx == 0 and tmpy < 0:\n x3 = x2 - tmpy\n y3 = y2\n x4 = x3\n y4 = y3 + (x3-x2)\nelif tmpx > 0 and tmpy == 0:\n x3 = x2\n y3 = y2 + tmpx\n x4 = x3 - (y3-y2)\n y4 = y3\nelif tmpx < 0 and tmpy == 0:\n x3 = x2\n y3 = y2 + tmpx\n x4 = x3 - (y3-y2)\n y4 = y3\n\nelif tmpx < 0 and tmpy > 0:\n x3 = x2 - tmpy\n y3 = y2 + tmpx\n x4 = x3 - tmpx\n y4 = y3 - tmpy\nelif tmpx < 0 and tmpy < 0:\n x3 = x2 + tmpy\n y3 = y2 - tmpx\n x4 = x3 - tmpx\n y4 = y3 - tmpy\nelif tmpx > 0 and tmpy < 0:\n x3 = x2 + tmpy\n y3 = y2 - tmpy\n x4 = x3 - tmpx\n y4 = y3 - tmpy\n\nprint(x3, y3, x4, y4)\n\n\n# tmp = 0\n\n# print(tmp)\n# cnt = 0\n#\n# for k in tmp:\n# if\n# for j in tmp:\n# if j %2 == 0:\n# cnt += 1\n# print(len(tmp)*3-cnt)', 'x1, y1, x2, y2 = map(int, input().split())\n\ntmpx = x2 - x1\ntmpy = y2 - y1\n\nprint(x2-tmpy, y2+tmpx, x1-tmpy, y1+tmpx)\n'] | ['Wrong Answer', 'Accepted'] | ['s504454255', 's926187799'] | [3064.0, 2940.0] | [18.0, 17.0] | [1129, 117] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.