message stringlengths 2 20.2k | message_type stringclasses 2
values | message_id int64 0 1 | conversation_id int64 757 108k | cluster float64 4 4 | __index_level_0__ int64 1.51k 217k |
|---|---|---|---|---|---|
Provide tags and a correct Python 3 solution for this coding contest problem.
Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at moment 0 and turn power off at moment M. Moreover, the lamp allows you to set a program of... | instruction | 0 | 42,902 | 4 | 85,804 |
Tags: greedy
Correct Solution:
```
n,m=map(int,input().split())
a=[int(x) for x in input().split()];b=[]
a.insert(0,0)
if n%2==0:
a.insert(n+1,m)
k=sum((-1)**(i+1)*a[i] for i in range(n+2))
else:
k=sum((-1)**(i+1)*a[i] for i in range(n+1))
l=m-k+a[1]-1
b+=[k,l]
for i in range(1,(n+1)//2):
l+=a[2... | output | 1 | 42,902 | 4 | 85,805 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at moment 0 and turn power off at moment M. Moreover, the lamp allows you to set a program of... | instruction | 0 | 42,903 | 4 | 85,806 |
Tags: greedy
Correct Solution:
```
f=lambda:map(int,input().split())
n,m=f()
a=list(f())
a=[0]+a+[m]
time_int,light,dark=[],0,0
for i in range(len(a)-1):
t=a[i+1]-a[i]
time_int.append(t)
if i % 2==0:
light+=t
else:
dark+=t
left_light=0
for i in range(len(time_int)):
if i % 2 != 0:
... | output | 1 | 42,903 | 4 | 85,807 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at moment 0 and turn power off at moment M. Mo... | instruction | 0 | 42,904 | 4 | 85,808 |
Yes | output | 1 | 42,904 | 4 | 85,809 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at moment 0 and turn power off at moment M. Mo... | instruction | 0 | 42,905 | 4 | 85,810 |
Yes | output | 1 | 42,905 | 4 | 85,811 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at moment 0 and turn power off at moment M. Mo... | instruction | 0 | 42,906 | 4 | 85,812 |
Yes | output | 1 | 42,906 | 4 | 85,813 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at moment 0 and turn power off at moment M. Mo... | instruction | 0 | 42,907 | 4 | 85,814 |
Yes | output | 1 | 42,907 | 4 | 85,815 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at moment 0 and turn power off at moment M. Mo... | instruction | 0 | 42,908 | 4 | 85,816 |
No | output | 1 | 42,908 | 4 | 85,817 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at moment 0 and turn power off at moment M. Mo... | instruction | 0 | 42,909 | 4 | 85,818 |
No | output | 1 | 42,909 | 4 | 85,819 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at moment 0 and turn power off at moment M. Mo... | instruction | 0 | 42,910 | 4 | 85,820 |
No | output | 1 | 42,910 | 4 | 85,821 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at moment 0 and turn power off at moment M. Mo... | instruction | 0 | 42,911 | 4 | 85,822 |
No | output | 1 | 42,911 | 4 | 85,823 |
Provide a correct Python 3 solution for this coding contest problem.
problem
A mysterious $ X $ [cm] plant grows in one place. This plant has the following mysterious properties.
* Say "nobiro" to this plant and it will grow $ A $ [cm].
* Say "tidime" to this plant and it will grow $ B $ [cm].
* If you say "karero" ... | instruction | 0 | 43,775 | 4 | 87,550 |
"Correct Solution:
```
#!/usr/bin/env python3
x, a, b = map(int, input().split())
n = int(input())
for _ in range(n):
s = input()
if s == 'nobiro':
x = max(0, x + a)
elif s == 'tidime':
x = max(0, x + b)
else:
x = 0
print(x)
``` | output | 1 | 43,775 | 4 | 87,551 |
Provide a correct Python 3 solution for this coding contest problem.
problem
A mysterious $ X $ [cm] plant grows in one place. This plant has the following mysterious properties.
* Say "nobiro" to this plant and it will grow $ A $ [cm].
* Say "tidime" to this plant and it will grow $ B $ [cm].
* If you say "karero" ... | instruction | 0 | 43,778 | 4 | 87,556 |
"Correct Solution:
```
x, a, b = (int(y) for y in input().split())
n = int(input())
for i in range(n):
s = input()
if s[0] == "n" :
x = max(0,x + a)
elif s[0] == "t" :
x = max(0,x + b)
else:
x = 0
print(x)
``` | output | 1 | 43,778 | 4 | 87,557 |
Provide a correct Python 3 solution for this coding contest problem.
The goddess of programming is reviewing a thick logbook, which is a yearly record of visitors to her holy altar of programming. The logbook also records her visits at the altar.
The altar attracts programmers from all over the world because one visi... | instruction | 0 | 44,608 | 4 | 89,216 |
"Correct Solution:
```
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(0,-1),(1,0),(0,1),(-1,0)]
ddn = [(0,-1),(1,-1),(1,0),(1,1),(0,1),(-1,-1),(-1,0),(-1,1)]
def LI(): return [int... | output | 1 | 44,608 | 4 | 89,217 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Eugeny loves listening to music. He has n songs in his play list. We know that song number i has the duration of ti minutes. Eugeny listens to each song, perhaps more than once. He listens to so... | instruction | 0 | 44,887 | 4 | 89,774 |
Yes | output | 1 | 44,887 | 4 | 89,775 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Eugeny loves listening to music. He has n songs in his play list. We know that song number i has the duration of ti minutes. Eugeny listens to each song, perhaps more than once. He listens to so... | instruction | 0 | 44,888 | 4 | 89,776 |
Yes | output | 1 | 44,888 | 4 | 89,777 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Eugeny loves listening to music. He has n songs in his play list. We know that song number i has the duration of ti minutes. Eugeny listens to each song, perhaps more than once. He listens to so... | instruction | 0 | 44,889 | 4 | 89,778 |
Yes | output | 1 | 44,889 | 4 | 89,779 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Eugeny loves listening to music. He has n songs in his play list. We know that song number i has the duration of ti minutes. Eugeny listens to each song, perhaps more than once. He listens to so... | instruction | 0 | 44,890 | 4 | 89,780 |
Yes | output | 1 | 44,890 | 4 | 89,781 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Eugeny loves listening to music. He has n songs in his play list. We know that song number i has the duration of ti minutes. Eugeny listens to each song, perhaps more than once. He listens to so... | instruction | 0 | 44,891 | 4 | 89,782 |
No | output | 1 | 44,891 | 4 | 89,783 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Eugeny loves listening to music. He has n songs in his play list. We know that song number i has the duration of ti minutes. Eugeny listens to each song, perhaps more than once. He listens to so... | instruction | 0 | 44,892 | 4 | 89,784 |
No | output | 1 | 44,892 | 4 | 89,785 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Eugeny loves listening to music. He has n songs in his play list. We know that song number i has the duration of ti minutes. Eugeny listens to each song, perhaps more than once. He listens to so... | instruction | 0 | 44,893 | 4 | 89,786 |
No | output | 1 | 44,893 | 4 | 89,787 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Eugeny loves listening to music. He has n songs in his play list. We know that song number i has the duration of ti minutes. Eugeny listens to each song, perhaps more than once. He listens to so... | instruction | 0 | 44,894 | 4 | 89,788 |
No | output | 1 | 44,894 | 4 | 89,789 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so eager to the coming year 2016.
Limak wants to... | instruction | 0 | 44,961 | 4 | 89,922 |
Tags: implementation
Correct Solution:
```
def main():
number, of, quantifier = input().split()
number = int(number)
months = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
weeks = {
'mon': 1,
'tue': 2,
'wed': 3,
'thu': 4,
'fri': 5,
'sat': 6,
'... | output | 1 | 44,961 | 4 | 89,923 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so eager to the coming year 2016.
Limak wants to... | instruction | 0 | 44,962 | 4 | 89,924 |
Tags: implementation
Correct Solution:
```
# import sys
# sys.stdin = open("test.in","r")
# sys.stdout = open("test.out","w")
# a=list(map(int,input().split()))
a = input().split()
a[0] = int(a[0])
if a[2]=='week':
if a[0]<5 or a[0]==7:
print('52')
else:
print('53')
else:
if a[0]<30:
print('12')
elif a[0]<31:... | output | 1 | 44,962 | 4 | 89,925 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so eager to the coming year 2016.
Limak wants to... | instruction | 0 | 44,963 | 4 | 89,926 |
Tags: implementation
Correct Solution:
```
x = input().split()
day = int(x[0])
wom = x[2]
if wom == "week":
if day == 5 or day ==6:
print(53)
else:
print(52)
else:
if day <30:
print(12)
elif day < 31:
print(11)
else:
print(7)
``` | output | 1 | 44,963 | 4 | 89,927 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so eager to the coming year 2016.
Limak wants to... | instruction | 0 | 44,964 | 4 | 89,928 |
Tags: implementation
Correct Solution:
```
n, s, s1 = input().split()
if s1 == "week":
a = [4, 5, 6, 7, 1, 2, 3]
x = a[int(n) - 1]
ans = 0
while x <= 366:
ans += 1
x += 7
else:
a = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
ans = 0
for i in a:
if int(n) <= i:
... | output | 1 | 44,964 | 4 | 89,929 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so eager to the coming year 2016.
Limak wants to... | instruction | 0 | 44,965 | 4 | 89,930 |
Tags: implementation
Correct Solution:
```
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 28 07:25:01 2019
@author: avina
"""
s = input().split()
a = int(s[0])
if s[-1] == 'week':
if a == 6 or a == 5:
print(53)
else:
print(52)
else:
if a > 29:
if a == 31:
print(7)
... | output | 1 | 44,965 | 4 | 89,931 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so eager to the coming year 2016.
Limak wants to... | instruction | 0 | 44,966 | 4 | 89,932 |
Tags: implementation
Correct Solution:
```
s = input()
if s[5:] == 'week':
if s[0] == '6' or s[0] == '5':
print(53)
else:
print(52)
else:
if int(s[:2]) == 30:
print(11)
elif int(s[:2]) == 31:
print(7)
else:
print(12)
``` | output | 1 | 44,966 | 4 | 89,933 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so eager to the coming year 2016.
Limak wants to... | instruction | 0 | 44,967 | 4 | 89,934 |
Tags: implementation
Correct Solution:
```
days_in_month = map(int, "31 29 31 30 31 30 31 31 30 31 30 31".split())
s = input().split()
n = int(s[0])
if s[2] == "month":
ans = 0
for el in days_in_month:
if n <= el:
ans += 1
print(ans)
else:
if n in [5, 6]:
print(53)
... | output | 1 | 44,967 | 4 | 89,935 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so eager to the coming year 2016.
Limak wants to... | instruction | 0 | 44,968 | 4 | 89,936 |
Tags: implementation
Correct Solution:
```
import os
import sys
debug = True
if debug and os.path.exists("input.in"):
input = open("input.in", "r").readline
else:
debug = False
input = sys.stdin.readline
def inp():
return (int(input()))
def inlt():
return (list(map(int, input().split())))
de... | output | 1 | 44,968 | 4 | 89,937 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so... | instruction | 0 | 44,969 | 4 | 89,938 |
Yes | output | 1 | 44,969 | 4 | 89,939 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so... | instruction | 0 | 44,970 | 4 | 89,940 |
Yes | output | 1 | 44,970 | 4 | 89,941 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so... | instruction | 0 | 44,971 | 4 | 89,942 |
Yes | output | 1 | 44,971 | 4 | 89,943 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so... | instruction | 0 | 44,972 | 4 | 89,944 |
Yes | output | 1 | 44,972 | 4 | 89,945 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so... | instruction | 0 | 44,973 | 4 | 89,946 |
No | output | 1 | 44,973 | 4 | 89,947 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so... | instruction | 0 | 44,974 | 4 | 89,948 |
No | output | 1 | 44,974 | 4 | 89,949 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so... | instruction | 0 | 44,975 | 4 | 89,950 |
No | output | 1 | 44,975 | 4 | 89,951 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.
Limak is a little polar bear. He enjoyed this year a lot. Now, he is so... | instruction | 0 | 44,976 | 4 | 89,952 |
No | output | 1 | 44,976 | 4 | 89,953 |
Provide tags and a correct Python 3 solution for this coding contest problem.
You've got a list of program warning logs. Each record of a log stream is a string in this format:
"2012-MM-DD HH:MM:SS:MESSAGE" (without the quotes).
String "MESSAGE" consists of spaces, uppercase and lowercase English letters and chara... | instruction | 0 | 45,668 | 4 | 91,336 |
Tags: binary search, brute force, implementation, strings
Correct Solution:
```
# import atexit
# import io
# import sys
#
# _INPUT_LINES = sys.stdin.read().splitlines()
# input = iter(_INPUT_LINES).__next__
# _OUTPUT_BUFFER = io.StringIO()
# sys.stdout = _OUTPUT_BUFFER
#
#
# @atexit.register
# def write():
# sys._... | output | 1 | 45,668 | 4 | 91,337 |
Provide tags and a correct Python 3 solution for this coding contest problem.
You've got a list of program warning logs. Each record of a log stream is a string in this format:
"2012-MM-DD HH:MM:SS:MESSAGE" (without the quotes).
String "MESSAGE" consists of spaces, uppercase and lowercase English letters and chara... | instruction | 0 | 45,669 | 4 | 91,338 |
Tags: binary search, brute force, implementation, strings
Correct Solution:
```
n, m = map(int, input().split(" "))
messages = []
months = [0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
while True:
try:
s = input()
messages.append(s)
except:
break
# print(messages)
length = le... | output | 1 | 45,669 | 4 | 91,339 |
Provide tags and a correct Python 3 solution for this coding contest problem.
You've got a list of program warning logs. Each record of a log stream is a string in this format:
"2012-MM-DD HH:MM:SS:MESSAGE" (without the quotes).
String "MESSAGE" consists of spaces, uppercase and lowercase English letters and chara... | instruction | 0 | 45,670 | 4 | 91,340 |
Tags: binary search, brute force, implementation, strings
Correct Solution:
```
import atexit
import io
import sys
_INPUT_LINES = sys.stdin.read().splitlines()
input = iter(_INPUT_LINES).__next__
_OUTPUT_BUFFER = io.StringIO()
sys.stdout = _OUTPUT_BUFFER
@atexit.register
def write():
sys.__stdout__.write(_OUTPUT... | output | 1 | 45,670 | 4 | 91,341 |
Provide tags and a correct Python 3 solution for this coding contest problem.
You've got a list of program warning logs. Each record of a log stream is a string in this format:
"2012-MM-DD HH:MM:SS:MESSAGE" (without the quotes).
String "MESSAGE" consists of spaces, uppercase and lowercase English letters and chara... | instruction | 0 | 45,671 | 4 | 91,342 |
Tags: binary search, brute force, implementation, strings
Correct Solution:
```
import atexit
import io
import sys
_INPUT_LINES = sys.stdin.read().splitlines()
input = iter(_INPUT_LINES).__next__
_OUTPUT_BUFFER = io.StringIO()
sys.stdout = _OUTPUT_BUFFER
@atexit.register
def write():
sys.__stdout__.write(_OUTPUT... | output | 1 | 45,671 | 4 | 91,343 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
You've got a list of program warning logs. Each record of a log stream is a string in this format:
"2012-MM-DD HH:MM:SS:MESSAGE" (without the quotes).
String "MESSAGE" consists of spaces, up... | instruction | 0 | 45,672 | 4 | 91,344 |
No | output | 1 | 45,672 | 4 | 91,345 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
You've got a list of program warning logs. Each record of a log stream is a string in this format:
"2012-MM-DD HH:MM:SS:MESSAGE" (without the quotes).
String "MESSAGE" consists of spaces, up... | instruction | 0 | 45,673 | 4 | 91,346 |
No | output | 1 | 45,673 | 4 | 91,347 |
Provide a correct Python 3 solution for this coding contest problem.
The volume of access to a web service varies from time to time in a day. Also, the hours with the highest volume of access varies from service to service. For example, a service popular in the United States may receive more access in the daytime in t... | instruction | 0 | 46,128 | 4 | 92,256 |
"Correct Solution:
```
from itertools import cycle
while True:
n = int(input())
if not n:
break
qs = {}
for i in range(n):
d, t, *q = (int(s) for s in input().split())
q = q[t:] + q[:t]
if d not in qs:
qs[d] = q
else:
qs[d] = [a + b for a,... | output | 1 | 46,128 | 4 | 92,257 |
Provide a correct Python 3 solution for this coding contest problem.
The volume of access to a web service varies from time to time in a day. Also, the hours with the highest volume of access varies from service to service. For example, a service popular in the United States may receive more access in the daytime in t... | instruction | 0 | 46,129 | 4 | 92,258 |
"Correct Solution:
```
import sys
readline = sys.stdin.readline
write = sys.stdout.write
def gcd(m, n):
while n:
m, n = n, m % n
return m
def lcm(m, n):
return m // gcd(m, n) * n
def solve():
N = int(readline())
if N == 0:
return False
pp = [13, 17, 19, 23]
E = [[0]*i for i... | output | 1 | 46,129 | 4 | 92,259 |
Provide a correct Python 3 solution for this coding contest problem.
Welcome to PC Koshien, players. Physical condition management is important to participate in the event. It is said that at the turn of the season when the temperature fluctuates greatly, it puts a strain on the body and it is easy to catch a cold. Th... | instruction | 0 | 46,971 | 4 | 93,942 |
"Correct Solution:
```
for x in range(7):
a,b=list(map(int,input().split()))
print(a-b)
``` | output | 1 | 46,971 | 4 | 93,943 |
Provide a correct Python 3 solution for this coding contest problem.
Welcome to PC Koshien, players. Physical condition management is important to participate in the event. It is said that at the turn of the season when the temperature fluctuates greatly, it puts a strain on the body and it is easy to catch a cold. Th... | instruction | 0 | 46,972 | 4 | 93,944 |
"Correct Solution:
```
# coding: utf-8
# Your code here!
for i in range(7):
a,b=map(int,input().split())
K = a-b
print(K)
``` | output | 1 | 46,972 | 4 | 93,945 |
Provide a correct Python 3 solution for this coding contest problem.
Welcome to PC Koshien, players. Physical condition management is important to participate in the event. It is said that at the turn of the season when the temperature fluctuates greatly, it puts a strain on the body and it is easy to catch a cold. Th... | instruction | 0 | 46,973 | 4 | 93,946 |
"Correct Solution:
```
list=[]
for i in range(7):
a,b=map(int,input().split())
list.append((a,b))
print(a-b)
``` | output | 1 | 46,973 | 4 | 93,947 |
Provide a correct Python 3 solution for this coding contest problem.
Welcome to PC Koshien, players. Physical condition management is important to participate in the event. It is said that at the turn of the season when the temperature fluctuates greatly, it puts a strain on the body and it is easy to catch a cold. Th... | instruction | 0 | 46,974 | 4 | 93,948 |
"Correct Solution:
```
xy = [map(int, input().split()) for _ in range(7)]
x, y = [list(i) for i in zip(*xy)]
for i in range(7):
print(abs(x[i] - y[i]))
``` | output | 1 | 46,974 | 4 | 93,949 |
Provide a correct Python 3 solution for this coding contest problem.
Welcome to PC Koshien, players. Physical condition management is important to participate in the event. It is said that at the turn of the season when the temperature fluctuates greatly, it puts a strain on the body and it is easy to catch a cold. Th... | instruction | 0 | 46,975 | 4 | 93,950 |
"Correct Solution:
```
for i in range(1,8):
a,b=map(int,input().split())
print(a-b)
``` | output | 1 | 46,975 | 4 | 93,951 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.