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 |
|---|---|---|---|---|---|
Provide tags and a correct Python 3 solution for this coding contest problem.
Your math teacher gave you the following problem:
There are n segments on the x-axis, [l_1; r_1], [l_2; r_2], β¦, [l_n; r_n]. The segment [l; r] includes the bounds, i.e. it is a set of such x that l β€ x β€ r. The length of the segment [l; r]... | instruction | 0 | 72,594 | 23 | 145,188 |
Tags: math
Correct Solution:
```
otvet = []
t = int(input())
for i in range(t):
n = int(input())
for j in range(n):
if j == 0:
min2, max1 = reversed(list(map(int, input().split())))
else:
a, b = map(int, input().split())
if a > max1:
max1 = a
... | output | 1 | 72,594 | 23 | 145,189 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Your math teacher gave you the following problem:
There are n segments on the x-axis, [l_1; r_1], [l_2; r_2], β¦, [l_n; r_n]. The segment [l; r] includes the bounds, i.e. it is a set of such x t... | instruction | 0 | 72,595 | 23 | 145,190 |
Yes | output | 1 | 72,595 | 23 | 145,191 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Your math teacher gave you the following problem:
There are n segments on the x-axis, [l_1; r_1], [l_2; r_2], β¦, [l_n; r_n]. The segment [l; r] includes the bounds, i.e. it is a set of such x t... | instruction | 0 | 72,596 | 23 | 145,192 |
Yes | output | 1 | 72,596 | 23 | 145,193 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Your math teacher gave you the following problem:
There are n segments on the x-axis, [l_1; r_1], [l_2; r_2], β¦, [l_n; r_n]. The segment [l; r] includes the bounds, i.e. it is a set of such x t... | instruction | 0 | 72,597 | 23 | 145,194 |
Yes | output | 1 | 72,597 | 23 | 145,195 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Your math teacher gave you the following problem:
There are n segments on the x-axis, [l_1; r_1], [l_2; r_2], β¦, [l_n; r_n]. The segment [l; r] includes the bounds, i.e. it is a set of such x t... | instruction | 0 | 72,598 | 23 | 145,196 |
Yes | output | 1 | 72,598 | 23 | 145,197 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Your math teacher gave you the following problem:
There are n segments on the x-axis, [l_1; r_1], [l_2; r_2], β¦, [l_n; r_n]. The segment [l; r] includes the bounds, i.e. it is a set of such x t... | instruction | 0 | 72,599 | 23 | 145,198 |
No | output | 1 | 72,599 | 23 | 145,199 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Your math teacher gave you the following problem:
There are n segments on the x-axis, [l_1; r_1], [l_2; r_2], β¦, [l_n; r_n]. The segment [l; r] includes the bounds, i.e. it is a set of such x t... | instruction | 0 | 72,600 | 23 | 145,200 |
No | output | 1 | 72,600 | 23 | 145,201 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Your math teacher gave you the following problem:
There are n segments on the x-axis, [l_1; r_1], [l_2; r_2], β¦, [l_n; r_n]. The segment [l; r] includes the bounds, i.e. it is a set of such x t... | instruction | 0 | 72,601 | 23 | 145,202 |
No | output | 1 | 72,601 | 23 | 145,203 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Your math teacher gave you the following problem:
There are n segments on the x-axis, [l_1; r_1], [l_2; r_2], β¦, [l_n; r_n]. The segment [l; r] includes the bounds, i.e. it is a set of such x t... | instruction | 0 | 72,602 | 23 | 145,204 |
No | output | 1 | 72,602 | 23 | 145,205 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polygon with 2 β
n vertices (it's convex and has equ... | instruction | 0 | 72,672 | 23 | 145,344 |
Tags: binary search, brute force, geometry, math
Correct Solution:
```
import math
import sys;input=sys.stdin.readline
T, = map(int, input().split())
for t in range(T):
n=int(input())
print(math.cos(math.pi/(4*n))/math.sin(math.pi/(2*n)))
``` | output | 1 | 72,672 | 23 | 145,345 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polygon with 2 β
n vertices (it's convex and has equ... | instruction | 0 | 72,673 | 23 | 145,346 |
Tags: binary search, brute force, geometry, math
Correct Solution:
```
from math import pi, sin, sqrt
t = int(input())
for _ in range(t):
n = int(input())
r = 0.5/sin((pi/n/2))
al = pi/n * (n//2) / 2
x = sin(al)*r*sqrt(2)
al2 = pi/n * (n//2+1) / 2
y = sin(al2)*r*sqrt(2)
print(x+y)
``` | output | 1 | 72,673 | 23 | 145,347 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polygon with 2 β
n vertices (it's convex and has equ... | instruction | 0 | 72,674 | 23 | 145,348 |
Tags: binary search, brute force, geometry, math
Correct Solution:
```
#------------------------------warmup----------------------------
import os
import sys
from io import BytesIO, IOBase
import math
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
self._fd = file.fil... | output | 1 | 72,674 | 23 | 145,349 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polygon with 2 β
n vertices (it's convex and has equ... | instruction | 0 | 72,675 | 23 | 145,350 |
Tags: binary search, brute force, geometry, math
Correct Solution:
```
import sys
import math
t=int(sys.stdin.readline())
for i in range(t):
n=int(sys.stdin.readline())
pi=math.pi
theta=0
ans=0
while 2*theta<pi:
ans+=math.cos(theta)
theta+=pi/n
k=(2*ans-1)
theta=0
while 4... | output | 1 | 72,675 | 23 | 145,351 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polygon with 2 β
n vertices (it's convex and has equ... | instruction | 0 | 72,676 | 23 | 145,352 |
Tags: binary search, brute force, geometry, math
Correct Solution:
```
import math
for q in range(int(input())):
n=int(input())
ans = 1/(2*math.sin(math.radians(180/(4*n))))
print(ans)
``` | output | 1 | 72,676 | 23 | 145,353 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polygon with 2 β
n vertices (it's convex and has equ... | instruction | 0 | 72,677 | 23 | 145,354 |
Tags: binary search, brute force, geometry, math
Correct Solution:
```
import math
for _ in range(int(input())):
x=int(input());print(1/(2*math.sin(math.pi/(4*x))))
``` | output | 1 | 72,677 | 23 | 145,355 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polygon with 2 β
n vertices (it's convex and has equ... | instruction | 0 | 72,678 | 23 | 145,356 |
Tags: binary search, brute force, geometry, math
Correct Solution:
```
from math import tan,pi,sin,cos
t = int(input())
for i in range(t):
n = int(input())
if n % 2 == 0:
print()
else:
alpha = pi/n
x = 0.5/sin(alpha/2)
ans = 2*(x*(cos(3*alpha/4)) + sin(alpha/4))
prin... | output | 1 | 72,678 | 23 | 145,357 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polygon with 2 β
n vertices (it's convex and has equ... | instruction | 0 | 72,679 | 23 | 145,358 |
Tags: binary search, brute force, geometry, math
Correct Solution:
```
from math import sin,pi
for i in range(int(input())):
n=int(input())
print(1/(2*sin(pi/(4*n))))
``` | output | 1 | 72,679 | 23 | 145,359 |
Provide tags and a correct Python 2 solution for this coding contest problem.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polygon with 2 β
n vertices (it's convex and has equ... | instruction | 0 | 72,680 | 23 | 145,360 |
Tags: binary search, brute force, geometry, math
Correct Solution:
```
from sys import stdin, stdout
from collections import Counter, defaultdict
from itertools import permutations, combinations
from math import sin,sqrt,pi
raw_input = stdin.readline
pr = stdout.write
mod=10**9+7
def ni():
return int(raw_input())
... | output | 1 | 72,680 | 23 | 145,361 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polyg... | instruction | 0 | 72,681 | 23 | 145,362 |
Yes | output | 1 | 72,681 | 23 | 145,363 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polyg... | instruction | 0 | 72,682 | 23 | 145,364 |
Yes | output | 1 | 72,682 | 23 | 145,365 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polyg... | instruction | 0 | 72,683 | 23 | 145,366 |
Yes | output | 1 | 72,683 | 23 | 145,367 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polyg... | instruction | 0 | 72,684 | 23 | 145,368 |
Yes | output | 1 | 72,684 | 23 | 145,369 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polyg... | instruction | 0 | 72,685 | 23 | 145,370 |
No | output | 1 | 72,685 | 23 | 145,371 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polyg... | instruction | 0 | 72,686 | 23 | 145,372 |
No | output | 1 | 72,686 | 23 | 145,373 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polyg... | instruction | 0 | 72,687 | 23 | 145,374 |
No | output | 1 | 72,687 | 23 | 145,375 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd.
You are given a regular polyg... | instruction | 0 | 72,688 | 23 | 145,376 |
No | output | 1 | 72,688 | 23 | 145,377 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Peter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it does not work like regular snow blowing machines. In order to make it work, you need to tie... | instruction | 0 | 72,916 | 23 | 145,832 |
Tags: binary search, geometry, ternary search
Correct Solution:
```
def main():
n, a, b = map(int, input().split())
l, res = [], []
for _ in range(n):
u, v = input().split()
l.append((int(u) - a, int(v) - b))
x0, y0 = l[-1]
for x1, y1 in l:
res.append(x1 * x1 + y1 * y1)
... | output | 1 | 72,916 | 23 | 145,833 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Peter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it does not work like regular snow blowing machines. In order to make it work, you need to tie... | instruction | 0 | 72,917 | 23 | 145,834 |
Tags: binary search, geometry, ternary search
Correct Solution:
```
import math
def dist(p_x, p_y, p0_x, p0_y, p1_x, p1_y):
v_x = p1_x - p0_x
v_y = p1_y - p0_y
w_x = p_x - p0_x
w_y = p_y - p0_y
c1 = w_x * v_x + w_y * v_y
if c1 <= 0:
return math.hypot(p_x - p0_x, p_y - p0_y)
c2 = v_... | output | 1 | 72,917 | 23 | 145,835 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Peter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it does not work like regular snow blowing machines. In order to make it work, you need to tie... | instruction | 0 | 72,918 | 23 | 145,836 |
Tags: binary search, geometry, ternary search
Correct Solution:
```
import math
n, px, py = map(int, input().split())
xs, ys, l = list(), list(), list()
for _ in range(n):
x, y = map(int, input().split())
xs.append(x - px)
ys.append(y - py)
x0, y0 = xs[-1], ys[-1]
for x, y in zip(xs, ys):
l.append(x * x + y * y)
d... | output | 1 | 72,918 | 23 | 145,837 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Peter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it does not work like regular snow blowing machines. In order to make it work, you need to tie... | instruction | 0 | 72,919 | 23 | 145,838 |
Tags: binary search, geometry, ternary search
Correct Solution:
```
import math
import sys
def calculate_area(n, x, y, vertices):
r_max = -sys.maxsize
r_min = sys.maxsize
last_d = -1
for v in vertices:
d = distance_two_points(v, (x, y))
if d > r_max:
r_max = d
if d ... | output | 1 | 72,919 | 23 | 145,839 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Peter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it does not work like regular snow blowing machines. In order to make it work, you need to tie... | instruction | 0 | 72,920 | 23 | 145,840 |
Tags: binary search, geometry, ternary search
Correct Solution:
```
#!/usr/bin/python3
import math
class StdIO:
def read_int(self):
return int(self.read_string())
def read_ints(self, sep=None):
return [int(i) for i in self.read_strings(sep)]
def read_float(self):
return float(self.read_string())
def read... | output | 1 | 72,920 | 23 | 145,841 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Peter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it does not work like regular snow blowing machines. In order to make it work, you need to tie... | instruction | 0 | 72,921 | 23 | 145,842 |
Tags: binary search, geometry, ternary search
Correct Solution:
```
import math
n, a, b = [int(x) for x in input().split()]
distances = []
x, y = [int(x) for x in input().split()]
distances.append(math.hypot(x - a, y - b))
prevx, prevy = x, y
firstx, firsty = x, y
for i in range(n-1):
x, y = [int(x) for x in input... | output | 1 | 72,921 | 23 | 145,843 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Peter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it does not work like regular snow blowing machines. In order to make it work, you need to tie... | instruction | 0 | 72,922 | 23 | 145,844 |
Tags: binary search, geometry, ternary search
Correct Solution:
```
from math import pi
def getl(p1, p2):
x1, y1 = p1
x2, y2 = p2
return(pow((x1-x2)**2+(y1-y2)**2, 0.5))
def geth(a, b, c):
z = getl(c,b)
return abs((b[1] - c[1])*a[0]+(c[0]-b[0])*a[1]+b[0]*c[1]-c[0]*b[1]) / z
def getp(a, b):
... | output | 1 | 72,922 | 23 | 145,845 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Peter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it does not work like regular snow blowing machines. In order to make it work, you need to tie... | instruction | 0 | 72,923 | 23 | 145,846 |
Tags: binary search, geometry, ternary search
Correct Solution:
```
from math import pi
def vadd(v1, v2):
return v1[0]+v2[0], v1[1]+v2[1]
def vsub(v1, v2):
return v1[0]-v2[0], v1[1]-v2[1]
def smul(s, v):
return s*v[0], s*v[1]
def dot(v1, v2):
return v1[0]*v2[0] + v1[1]*v2[1]
def vmag2(v):
retu... | output | 1 | 72,923 | 23 | 145,847 |
Provide tags and a correct Python 2 solution for this coding contest problem.
Peter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it does not work like regular snow blowing machines. In order to make it work, you need to tie... | instruction | 0 | 72,924 | 23 | 145,848 |
Tags: binary search, geometry, ternary search
Correct Solution:
```
from sys import stdin, stdout
from collections import Counter, defaultdict
from itertools import permutations, combinations
from bisect import bisect
raw_input = stdin.readline
pr = stdout.write
import math
def in_num():
return int(raw_input())
... | output | 1 | 72,924 | 23 | 145,849 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Peter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it does not work like regular snow blowing mach... | instruction | 0 | 72,930 | 23 | 145,860 |
No | output | 1 | 72,930 | 23 | 145,861 |
Provide a correct Python 3 solution for this coding contest problem.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary in size. You have been ordered by your boss to count the ... | instruction | 0 | 73,195 | 23 | 146,390 |
"Correct Solution:
```
rect = 0
hish = 0
try:
while True:
a, b, c = map(float, input().split(","))
if a*a + b*b == c*c:
rect += 1
if a == b:
hish += 1
except:
pass
print(rect)
print(hish)
``` | output | 1 | 73,195 | 23 | 146,391 |
Provide a correct Python 3 solution for this coding contest problem.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary in size. You have been ordered by your boss to count the ... | instruction | 0 | 73,196 | 23 | 146,392 |
"Correct Solution:
```
import sys
rect = 0
rhom = 0
for line in sys.stdin:
try:
a, b, c = [int(i) for i in line.split(',')]
if a**2 + b**2 == c**2:
rect += 1
elif a == b:
rhom += 1
except:
break
print(rect)
print(rhom)
``` | output | 1 | 73,196 | 23 | 146,393 |
Provide a correct Python 3 solution for this coding contest problem.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary in size. You have been ordered by your boss to count the ... | instruction | 0 | 73,197 | 23 | 146,394 |
"Correct Solution:
```
s = 0
t = 0
while 1:
try:
a,b,c = map(int,input().split(","))
if a**2 + b**2 == c**2:
s += 1
elif a == b :
t += 1
except EOFError:
print(s)
print(t)
break
``` | output | 1 | 73,197 | 23 | 146,395 |
Provide a correct Python 3 solution for this coding contest problem.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary in size. You have been ordered by your boss to count the ... | instruction | 0 | 73,198 | 23 | 146,396 |
"Correct Solution:
```
s=0
h=0
while True:
try:
a,b,c =map(int,input().split(","))
except:break
if a**2+b**2==c**2:
s = s+1
elif a==b:
h = h+1
print(s)
print(h)
``` | output | 1 | 73,198 | 23 | 146,397 |
Provide a correct Python 3 solution for this coding contest problem.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary in size. You have been ordered by your boss to count the ... | instruction | 0 | 73,199 | 23 | 146,398 |
"Correct Solution:
```
cho = 0
hishi = 0
while True:
try:
a, b, c = map(int, input().split(','))
except:
break
if a**2 + b**2 == c**2 and a!=b:
cho += 1
elif a**2 + b**2 != c**2 and a==b:
hishi += 1
print(cho)
print(hishi)
``` | output | 1 | 73,199 | 23 | 146,399 |
Provide a correct Python 3 solution for this coding contest problem.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary in size. You have been ordered by your boss to count the ... | instruction | 0 | 73,200 | 23 | 146,400 |
"Correct Solution:
```
rect_cnt = dia_cnt = 0
while True:
try:
a, b, c = map(int, input().split(","))
rect_cnt += (a ** 2 + b ** 2 == c ** 2)
dia_cnt += (a == b)
except EOFError:
break
print(rect_cnt)
print(dia_cnt)
``` | output | 1 | 73,200 | 23 | 146,401 |
Provide a correct Python 3 solution for this coding contest problem.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary in size. You have been ordered by your boss to count the ... | instruction | 0 | 73,201 | 23 | 146,402 |
"Correct Solution:
```
# -*- coding: utf-8 -*-
import sys
import os
rectangle = 0
diamond = 0
parallelogram = 0
for s in sys.stdin:
a, b, c = map(int, s.split(','))
if a**2 + b**2 == c**2:
rectangle += 1
elif a == b:
diamond += 1
else:
parallelogram += 1
print(rectangle)
pri... | output | 1 | 73,201 | 23 | 146,403 |
Provide a correct Python 3 solution for this coding contest problem.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary in size. You have been ordered by your boss to count the ... | instruction | 0 | 73,202 | 23 | 146,404 |
"Correct Solution:
```
rec = rho = 0
while True:
try:
a, b, c = map(int, input().split(','))
except:
break
if a ** 2 + b ** 2 == c ** 2:
rec += 1
if a == b:
rho += 1
print(rec, rho, sep='\n')
``` | output | 1 | 73,202 | 23 | 146,405 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary i... | instruction | 0 | 73,203 | 23 | 146,406 |
Yes | output | 1 | 73,203 | 23 | 146,407 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary i... | instruction | 0 | 73,204 | 23 | 146,408 |
Yes | output | 1 | 73,204 | 23 | 146,409 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary i... | instruction | 0 | 73,205 | 23 | 146,410 |
Yes | output | 1 | 73,205 | 23 | 146,411 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary i... | instruction | 0 | 73,206 | 23 | 146,412 |
Yes | output | 1 | 73,206 | 23 | 146,413 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary i... | instruction | 0 | 73,207 | 23 | 146,414 |
No | output | 1 | 73,207 | 23 | 146,415 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a factory that inputs the data of the side and diagonal lengths to the machine and cuts out the plastic plate. At this factory, we cut out only parallelogram molds, although they vary i... | instruction | 0 | 73,208 | 23 | 146,416 |
No | output | 1 | 73,208 | 23 | 146,417 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.