message stringlengths 2 44.5k | message_type stringclasses 2
values | message_id int64 0 1 | conversation_id int64 276 109k | cluster float64 23 23 | __index_level_0__ int64 552 217k |
|---|---|---|---|---|---|
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Three companies decided to order a billboard with pictures of their logos. A billboard is a big square board. A logo of each company is a rectangle of a non-zero area.
Advertisers will put up ... | instruction | 0 | 87,075 | 23 | 174,150 |
Yes | output | 1 | 87,075 | 23 | 174,151 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Three companies decided to order a billboard with pictures of their logos. A billboard is a big square board. A logo of each company is a rectangle of a non-zero area.
Advertisers will put up ... | instruction | 0 | 87,076 | 23 | 174,152 |
Yes | output | 1 | 87,076 | 23 | 174,153 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Three companies decided to order a billboard with pictures of their logos. A billboard is a big square board. A logo of each company is a rectangle of a non-zero area.
Advertisers will put up ... | instruction | 0 | 87,077 | 23 | 174,154 |
Yes | output | 1 | 87,077 | 23 | 174,155 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Three companies decided to order a billboard with pictures of their logos. A billboard is a big square board. A logo of each company is a rectangle of a non-zero area.
Advertisers will put up ... | instruction | 0 | 87,078 | 23 | 174,156 |
Yes | output | 1 | 87,078 | 23 | 174,157 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Three companies decided to order a billboard with pictures of their logos. A billboard is a big square board. A logo of each company is a rectangle of a non-zero area.
Advertisers will put up ... | instruction | 0 | 87,079 | 23 | 174,158 |
No | output | 1 | 87,079 | 23 | 174,159 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Three companies decided to order a billboard with pictures of their logos. A billboard is a big square board. A logo of each company is a rectangle of a non-zero area.
Advertisers will put up ... | instruction | 0 | 87,080 | 23 | 174,160 |
No | output | 1 | 87,080 | 23 | 174,161 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Three companies decided to order a billboard with pictures of their logos. A billboard is a big square board. A logo of each company is a rectangle of a non-zero area.
Advertisers will put up ... | instruction | 0 | 87,081 | 23 | 174,162 |
No | output | 1 | 87,081 | 23 | 174,163 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Three companies decided to order a billboard with pictures of their logos. A billboard is a big square board. A logo of each company is a rectangle of a non-zero area.
Advertisers will put up ... | instruction | 0 | 87,082 | 23 | 174,164 |
No | output | 1 | 87,082 | 23 | 174,165 |
Provide a correct Python 3 solution for this coding contest problem.
We understand that reading English is a great pain to many of you. So we’ll keep this problem statememt simple. Write a program that reports the point equally distant from a set of lines given as the input. In case of no solutions or multiple solutio... | instruction | 0 | 87,469 | 23 | 174,938 |
"Correct Solution:
```
import sys
readline = sys.stdin.readline
write = sys.stdout.write
EPS = 1e-9
def line_cross_point(P1, P2, Q1, Q2):
x0, y0 = P1; x1, y1 = P2
x2, y2 = Q1; x3, y3 = Q2
dx0 = x1 - x0; dy0 = y1 - y0
dx1 = x3 - x2; dy1 = y3 - y2
s = (y0-y2)*dx1 - (x0-x2)*dy1
sm = dx0*dy1 - dy... | output | 1 | 87,469 | 23 | 174,939 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
You are given a Young diagram.
Given diagram is a histogram with n columns of lengths a_1, a_2, …, a_n (a_1 ≥ a_2 ≥ … ≥ a_n ≥ 1).
<image> Young diagram for a=[3,2,2,2,1].
Your goal is to fin... | instruction | 0 | 87,693 | 23 | 175,386 |
Yes | output | 1 | 87,693 | 23 | 175,387 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
You are given a Young diagram.
Given diagram is a histogram with n columns of lengths a_1, a_2, …, a_n (a_1 ≥ a_2 ≥ … ≥ a_n ≥ 1).
<image> Young diagram for a=[3,2,2,2,1].
Your goal is to fin... | instruction | 0 | 87,694 | 23 | 175,388 |
Yes | output | 1 | 87,694 | 23 | 175,389 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
You are given a Young diagram.
Given diagram is a histogram with n columns of lengths a_1, a_2, …, a_n (a_1 ≥ a_2 ≥ … ≥ a_n ≥ 1).
<image> Young diagram for a=[3,2,2,2,1].
Your goal is to fin... | instruction | 0 | 87,695 | 23 | 175,390 |
Yes | output | 1 | 87,695 | 23 | 175,391 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
You are given a Young diagram.
Given diagram is a histogram with n columns of lengths a_1, a_2, …, a_n (a_1 ≥ a_2 ≥ … ≥ a_n ≥ 1).
<image> Young diagram for a=[3,2,2,2,1].
Your goal is to fin... | instruction | 0 | 87,696 | 23 | 175,392 |
Yes | output | 1 | 87,696 | 23 | 175,393 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
You are given a Young diagram.
Given diagram is a histogram with n columns of lengths a_1, a_2, …, a_n (a_1 ≥ a_2 ≥ … ≥ a_n ≥ 1).
<image> Young diagram for a=[3,2,2,2,1].
Your goal is to fin... | instruction | 0 | 87,697 | 23 | 175,394 |
No | output | 1 | 87,697 | 23 | 175,395 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
You are given a Young diagram.
Given diagram is a histogram with n columns of lengths a_1, a_2, …, a_n (a_1 ≥ a_2 ≥ … ≥ a_n ≥ 1).
<image> Young diagram for a=[3,2,2,2,1].
Your goal is to fin... | instruction | 0 | 87,698 | 23 | 175,396 |
No | output | 1 | 87,698 | 23 | 175,397 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
You are given a Young diagram.
Given diagram is a histogram with n columns of lengths a_1, a_2, …, a_n (a_1 ≥ a_2 ≥ … ≥ a_n ≥ 1).
<image> Young diagram for a=[3,2,2,2,1].
Your goal is to fin... | instruction | 0 | 87,699 | 23 | 175,398 |
No | output | 1 | 87,699 | 23 | 175,399 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
You are given a Young diagram.
Given diagram is a histogram with n columns of lengths a_1, a_2, …, a_n (a_1 ≥ a_2 ≥ … ≥ a_n ≥ 1).
<image> Young diagram for a=[3,2,2,2,1].
Your goal is to fin... | instruction | 0 | 87,700 | 23 | 175,400 |
No | output | 1 | 87,700 | 23 | 175,401 |
Provide tags and a correct Python 3 solution for this coding contest problem.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle with sides parallel to the coordinate axes.
For e... | instruction | 0 | 87,833 | 23 | 175,666 |
Tags: implementation
Correct Solution:
```
for _ in range(int(input())) :
n=int(input());a=[]
l=[[0 for i in range(n)] for j in range(n)]
for i in range(n) :
s=input()
for j in range(n) :
if(s[j]=="*") :
a.append([i,j])
l[i][j]=s[j]
x1=a[0][0];y1=a... | output | 1 | 87,833 | 23 | 175,667 |
Provide tags and a correct Python 3 solution for this coding contest problem.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle with sides parallel to the coordinate axes.
For e... | instruction | 0 | 87,834 | 23 | 175,668 |
Tags: implementation
Correct Solution:
```
test =int(input())
while test>0:
n = int(input())
arr =[]
for i in range(n):
arr.append(list(input()))
x=y=0
x1=y1=0
count=1
for i in range(n):
for j in range(n):
if count==1 and arr[i][j]=="*":
x=j
... | output | 1 | 87,834 | 23 | 175,669 |
Provide tags and a correct Python 3 solution for this coding contest problem.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle with sides parallel to the coordinate axes.
For e... | instruction | 0 | 87,835 | 23 | 175,670 |
Tags: implementation
Correct Solution:
```
# cook your dish here
for _ in range(int(input())):
n = int(input())
arr = []
for i in range(n):
temp = list(input())
arr.append(temp)
pos1 = -1
pos2 = -1
for i in range(n):
for j in range(n):
if arr[i][j] == "*":
... | output | 1 | 87,835 | 23 | 175,671 |
Provide tags and a correct Python 3 solution for this coding contest problem.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle with sides parallel to the coordinate axes.
For e... | instruction | 0 | 87,836 | 23 | 175,672 |
Tags: implementation
Correct Solution:
```
import sys
import math
input = sys.stdin.readline
mod=(10**9)+7
############ ---- Input Functions ---- ############
def inp():
return(int(input()))
def inlt():
return(list(map(int,input().split())))
def insr():
s = input()
return(list(s[:len(s) - 1]))
def invr()... | output | 1 | 87,836 | 23 | 175,673 |
Provide tags and a correct Python 3 solution for this coding contest problem.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle with sides parallel to the coordinate axes.
For e... | instruction | 0 | 87,837 | 23 | 175,674 |
Tags: implementation
Correct Solution:
```
n = int(input())
for z in range(n):
t = int(input())
x = []
y = []
l = [list(str(input())) for _ in range(t)]
d = {}
for i in range(t):
for j in range(t):
if l[i][j] == '*':
x.append(i)
y.append(j)
... | output | 1 | 87,837 | 23 | 175,675 |
Provide tags and a correct Python 3 solution for this coding contest problem.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle with sides parallel to the coordinate axes.
For e... | instruction | 0 | 87,838 | 23 | 175,676 |
Tags: implementation
Correct Solution:
```
import sys
sys.setrecursionlimit(10**6)
def main(t):
n = int(input())
matrix = []
row = 0
track = []
for i in range(n):
col = 0
k = input()
for i in k:
if i=='*':
track.append(row)
track.a... | output | 1 | 87,838 | 23 | 175,677 |
Provide tags and a correct Python 3 solution for this coding contest problem.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle with sides parallel to the coordinate axes.
For e... | instruction | 0 | 87,839 | 23 | 175,678 |
Tags: implementation
Correct Solution:
```
t = int(input())
for x in range(t):
n = int(input())
a = [list(input()) for i in range(n)]
c = [(i,j) for i in range(n) for j in range(n) if a[i][j]=='*']
# c00 = x0 c01 = y0 c10 = x1 c11 = y1
if c[0][0] == c[1][0]:
if c[0][0] < n-1:
c... | output | 1 | 87,839 | 23 | 175,679 |
Provide tags and a correct Python 3 solution for this coding contest problem.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle with sides parallel to the coordinate axes.
For e... | instruction | 0 | 87,840 | 23 | 175,680 |
Tags: implementation
Correct Solution:
```
def solve():
n = int(input())
#n,m,k = input().split()
#n = int(n)
#m = int(m)
#k = int(k)
idx1=-1
idy1=-1
idx2=-1
idy2=-1
mark = True
for i in range(n):
a = input()
for j in range(n):
if (a[j]=='*'):
... | output | 1 | 87,840 | 23 | 175,681 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle wit... | instruction | 0 | 87,841 | 23 | 175,682 |
Yes | output | 1 | 87,841 | 23 | 175,683 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle wit... | instruction | 0 | 87,842 | 23 | 175,684 |
Yes | output | 1 | 87,842 | 23 | 175,685 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle wit... | instruction | 0 | 87,843 | 23 | 175,686 |
Yes | output | 1 | 87,843 | 23 | 175,687 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle wit... | instruction | 0 | 87,844 | 23 | 175,688 |
Yes | output | 1 | 87,844 | 23 | 175,689 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle wit... | instruction | 0 | 87,845 | 23 | 175,690 |
No | output | 1 | 87,845 | 23 | 175,691 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle wit... | instruction | 0 | 87,846 | 23 | 175,692 |
No | output | 1 | 87,846 | 23 | 175,693 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle wit... | instruction | 0 | 87,847 | 23 | 175,694 |
No | output | 1 | 87,847 | 23 | 175,695 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a square field of size n × n in which two cells are marked. These cells can be in the same row or column.
You are to mark two more cells so that they are the corners of a rectangle wit... | instruction | 0 | 87,848 | 23 | 175,696 |
No | output | 1 | 87,848 | 23 | 175,697 |
Provide a correct Python 3 solution for this coding contest problem.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle ABC is an integer.
Constraints
* 1 \leq |AB|,|BC|,|CA| ... | instruction | 0 | 88,193 | 23 | 176,386 |
"Correct Solution:
```
A = list(map(int, input().split()))
print((A[0]*A[1])//2)
``` | output | 1 | 88,193 | 23 | 176,387 |
Provide a correct Python 3 solution for this coding contest problem.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle ABC is an integer.
Constraints
* 1 \leq |AB|,|BC|,|CA| ... | instruction | 0 | 88,194 | 23 | 176,388 |
"Correct Solution:
```
h, w, n = map(int, input().split())
print(int(h*w/2))
``` | output | 1 | 88,194 | 23 | 176,389 |
Provide a correct Python 3 solution for this coding contest problem.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle ABC is an integer.
Constraints
* 1 \leq |AB|,|BC|,|CA| ... | instruction | 0 | 88,195 | 23 | 176,390 |
"Correct Solution:
```
n, h, m = map(int, input().split(' '))
print(int(n*h/2))
``` | output | 1 | 88,195 | 23 | 176,391 |
Provide a correct Python 3 solution for this coding contest problem.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle ABC is an integer.
Constraints
* 1 \leq |AB|,|BC|,|CA| ... | instruction | 0 | 88,196 | 23 | 176,392 |
"Correct Solution:
```
a=sorted(map(int,input().split()))
print(a[0]*a[1]//2)
``` | output | 1 | 88,196 | 23 | 176,393 |
Provide a correct Python 3 solution for this coding contest problem.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle ABC is an integer.
Constraints
* 1 \leq |AB|,|BC|,|CA| ... | instruction | 0 | 88,197 | 23 | 176,394 |
"Correct Solution:
```
l =[int(i) for i in input().split()]
print(l[0]*l[1]//2)
``` | output | 1 | 88,197 | 23 | 176,395 |
Provide a correct Python 3 solution for this coding contest problem.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle ABC is an integer.
Constraints
* 1 \leq |AB|,|BC|,|CA| ... | instruction | 0 | 88,198 | 23 | 176,396 |
"Correct Solution:
```
a,b,_=map(int,input().split());print(a*b//2)
``` | output | 1 | 88,198 | 23 | 176,397 |
Provide a correct Python 3 solution for this coding contest problem.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle ABC is an integer.
Constraints
* 1 \leq |AB|,|BC|,|CA| ... | instruction | 0 | 88,199 | 23 | 176,398 |
"Correct Solution:
```
a, b, c = map(int, input().split())
s = a*b//2
print(s)
``` | output | 1 | 88,199 | 23 | 176,399 |
Provide a correct Python 3 solution for this coding contest problem.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle ABC is an integer.
Constraints
* 1 \leq |AB|,|BC|,|CA| ... | instruction | 0 | 88,200 | 23 | 176,400 |
"Correct Solution:
```
#116a
a,b,c=map(int,input().split())
print(a*b//2)
``` | output | 1 | 88,200 | 23 | 176,401 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle A... | instruction | 0 | 88,201 | 23 | 176,402 |
Yes | output | 1 | 88,201 | 23 | 176,403 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle A... | instruction | 0 | 88,202 | 23 | 176,404 |
Yes | output | 1 | 88,202 | 23 | 176,405 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle A... | instruction | 0 | 88,203 | 23 | 176,406 |
Yes | output | 1 | 88,203 | 23 | 176,407 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle A... | instruction | 0 | 88,204 | 23 | 176,408 |
Yes | output | 1 | 88,204 | 23 | 176,409 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle A... | instruction | 0 | 88,205 | 23 | 176,410 |
No | output | 1 | 88,205 | 23 | 176,411 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle A... | instruction | 0 | 88,206 | 23 | 176,412 |
No | output | 1 | 88,206 | 23 | 176,413 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle A... | instruction | 0 | 88,207 | 23 | 176,414 |
No | output | 1 | 88,207 | 23 | 176,415 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a right triangle ABC with ∠ABC=90°.
Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.
It is guaranteed that the area of the triangle A... | instruction | 0 | 88,208 | 23 | 176,416 |
No | output | 1 | 88,208 | 23 | 176,417 |
Provide a correct Python 3 solution for this coding contest problem.
Problem
Find the area of a regular N / K polygon inscribed in a circle with a radius of 1.
However, a regular N / K polygon is defined as "the outermost figure that takes N points on the circumference at equal intervals and connects each point ev... | instruction | 0 | 88,307 | 23 | 176,614 |
"Correct Solution:
```
# AOJ 1593: Star
# Python3 2018.7.13 bal4u
import math
PI = 3.1415926535897932384626433832795
# area = n*r^2*sin(180/n)*cos(180k/n)*sec(180(k-1)/n), for n/k star
N, K = map(int, input().split())
print(N*math.sin(PI/N)*math.cos(K*PI/N)/math.cos((K-1)*PI/N))
``` | output | 1 | 88,307 | 23 | 176,615 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.