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 |
|---|---|---|---|---|---|
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland year consists of m months with d days each. Months are numbered from 1 to m. Berland week consists of w days. The first day of the year is also the first day of the week. Note that the l... | instruction | 0 | 70,031 | 4 | 140,062 |
Yes | output | 1 | 70,031 | 4 | 140,063 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland year consists of m months with d days each. Months are numbered from 1 to m. Berland week consists of w days. The first day of the year is also the first day of the week. Note that the l... | instruction | 0 | 70,032 | 4 | 140,064 |
Yes | output | 1 | 70,032 | 4 | 140,065 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland year consists of m months with d days each. Months are numbered from 1 to m. Berland week consists of w days. The first day of the year is also the first day of the week. Note that the l... | instruction | 0 | 70,033 | 4 | 140,066 |
No | output | 1 | 70,033 | 4 | 140,067 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland year consists of m months with d days each. Months are numbered from 1 to m. Berland week consists of w days. The first day of the year is also the first day of the week. Note that the l... | instruction | 0 | 70,034 | 4 | 140,068 |
No | output | 1 | 70,034 | 4 | 140,069 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland year consists of m months with d days each. Months are numbered from 1 to m. Berland week consists of w days. The first day of the year is also the first day of the week. Note that the l... | instruction | 0 | 70,035 | 4 | 140,070 |
No | output | 1 | 70,035 | 4 | 140,071 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland year consists of m months with d days each. Months are numbered from 1 to m. Berland week consists of w days. The first day of the year is also the first day of the week. Note that the l... | instruction | 0 | 70,036 | 4 | 140,072 |
No | output | 1 | 70,036 | 4 | 140,073 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State University works every day of the week, but classes for... | instruction | 0 | 70,761 | 4 | 141,522 |
Tags: math
Correct Solution:
```
# -*- coding:utf-8 -*-
"""
created by shuangquan.huang at 12/3/18
"""
def solve(k, a):
w = sum(a)
ans = float('inf')
if k <= w:
for start in range(7):
for end in range(start, 8):
if sum(a[start: end]) >= k:
ans =... | output | 1 | 70,761 | 4 | 141,523 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State University works every day of the week, but classes for... | instruction | 0 | 70,762 | 4 | 141,524 |
Tags: math
Correct Solution:
```
#------------------------------warmup----------------------------
import os
import sys
from io import BytesIO, IOBase
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
self._fd = file.fileno()
self.buffer = BytesIO()
self... | output | 1 | 70,762 | 4 | 141,525 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State University works every day of the week, but classes for... | instruction | 0 | 70,763 | 4 | 141,526 |
Tags: math
Correct Solution:
```
t=int(input())
for i in range(t):
n=int(input())
a=list(map(int,input().split()))
c=a.count(1)
if c>=n:
p=7
for j in range(7):
s=0
for k in range(j,7):
s=s+a[k]
if s==n:
p=min(p,k-... | output | 1 | 70,763 | 4 | 141,527 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State University works every day of the week, but classes for... | instruction | 0 | 70,764 | 4 | 141,528 |
Tags: math
Correct Solution:
```
from collections import *
import os, sys
from io import BytesIO, IOBase
def main():
for _ in range(rint()):
n, a = rint(), deque(rints())
su, ans = sum(a), float('inf')
days, mod = divmod(n, su)
if mod == 0:
days -= 1
mod = ... | output | 1 | 70,764 | 4 | 141,529 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State University works every day of the week, but classes for... | instruction | 0 | 70,765 | 4 | 141,530 |
Tags: math
Correct Solution:
```
import math as ma
import sys
from sys import exit
from decimal import Decimal as dec
from itertools import permutations
def li():
return list(map(int , input().split()))
def num():
return map(int , input().split())
def nu():
return int(input())
t=nu()
for it in range(t):
k=n... | output | 1 | 70,765 | 4 | 141,531 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State University works every day of the week, but classes for... | instruction | 0 | 70,766 | 4 | 141,532 |
Tags: math
Correct Solution:
```
import sys, os, io
def rs(): return sys.stdin.readline().rstrip()
def ri(): return int(sys.stdin.readline())
def ria(): return list(map(int, sys.stdin.readline().split()))
def ws(s): sys.stdout.write(s + '\n')
def wi(n): sys.stdout.write(str(n) + '\n')
def wia(a): sys.stdout.write(' '.j... | output | 1 | 70,766 | 4 | 141,533 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State University works every day of the week, but classes for... | instruction | 0 | 70,767 | 4 | 141,534 |
Tags: math
Correct Solution:
```
def main():
count=int(input())
for x in range(count):
lessons=int(input())
arr=input().split()
tot=0
for y in arr:
if y=="1":
tot+=1
if lessons%tot==0:
a=lessons//tot-1
b=tot
else... | output | 1 | 70,767 | 4 | 141,535 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State University works every day of the week, but classes for... | instruction | 0 | 70,768 | 4 | 141,536 |
Tags: math
Correct Solution:
```
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
def rl(proc=None):
if proc is not None:
return proc(sys.stdin.readline())
else:
return sys.stdin.readline().rstrip()
def srl(proc=None):
if proc is not None:
return list(map(proc, rl().split()))... | output | 1 | 70,768 | 4 | 141,537 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State Universi... | instruction | 0 | 70,769 | 4 | 141,538 |
Yes | output | 1 | 70,769 | 4 | 141,539 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State Universi... | instruction | 0 | 70,770 | 4 | 141,540 |
Yes | output | 1 | 70,770 | 4 | 141,541 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State Universi... | instruction | 0 | 70,771 | 4 | 141,542 |
Yes | output | 1 | 70,771 | 4 | 141,543 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State Universi... | instruction | 0 | 70,772 | 4 | 141,544 |
Yes | output | 1 | 70,772 | 4 | 141,545 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State Universi... | instruction | 0 | 70,773 | 4 | 141,546 |
No | output | 1 | 70,773 | 4 | 141,547 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State Universi... | instruction | 0 | 70,774 | 4 | 141,548 |
No | output | 1 | 70,774 | 4 | 141,549 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State Universi... | instruction | 0 | 70,775 | 4 | 141,550 |
No | output | 1 | 70,775 | 4 | 141,551 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country.
Berland State Universi... | instruction | 0 | 70,776 | 4 | 141,552 |
No | output | 1 | 70,776 | 4 | 141,553 |
Provide a correct Python 3 solution for this coding contest problem.
Takahashi is meeting up with Aoki.
They have planned to meet at a place that is D meters away from Takahashi's house in T minutes from now.
Takahashi will leave his house now and go straight to the place at a speed of S meters per minute.
Will he ... | instruction | 0 | 72,269 | 4 | 144,538 |
"Correct Solution:
```
d,t,s=map(int,input().split(" "))
if d>t*s:
print("No")
else:
print("Yes")
``` | output | 1 | 72,269 | 4 | 144,539 |
Provide a correct Python 3 solution for this coding contest problem.
Takahashi is meeting up with Aoki.
They have planned to meet at a place that is D meters away from Takahashi's house in T minutes from now.
Takahashi will leave his house now and go straight to the place at a speed of S meters per minute.
Will he ... | instruction | 0 | 72,272 | 4 | 144,544 |
"Correct Solution:
```
D,T,S=map(int,input().split())
if (D/S)>T:
print("No")
else:
print("Yes")
``` | output | 1 | 72,272 | 4 | 144,545 |
Provide a correct Python 3 solution for this coding contest problem.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," which was introduced in the program. The program explaine... | instruction | 0 | 72,420 | 4 | 144,840 |
"Correct Solution:
```
def convert1(y, m, d):
if m <= 2:
m += 12
y -= 1
mjd = int(365.25*y) + (y//400) - (y//100) + int(30.59*(m-2)) + d - 678912
return mjd
def convert2(mjd):
n = mjd + 678881
a = 4*n + 3 + 4*(3*(4*(n+1)//146097+1)//4)
b = 5*((a % 1461)//4) + 2
y, m, d = a//1... | output | 1 | 72,420 | 4 | 144,841 |
Provide a correct Python 3 solution for this coding contest problem.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," which was introduced in the program. The program explaine... | instruction | 0 | 72,421 | 4 | 144,842 |
"Correct Solution:
```
from datetime import date, timedelta
st = date(2012, 12, 21)
while True:
s = input()
if s == '#':
break
d = list(map(int, s.split('.')))
if len(d) == 3:
r = 0
while d[0] > 3000:
d[0] -= 400
r += 365*400+97
ed = date(d[0], d... | output | 1 | 72,421 | 4 | 144,843 |
Provide a correct Python 3 solution for this coding contest problem.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," which was introduced in the program. The program explaine... | instruction | 0 | 72,422 | 4 | 144,844 |
"Correct Solution:
```
from datetime import date,timedelta
a=date(2012,12,21)
while 1:
try:s=list(map(int,input().split('.')))
except:break
d=0
if len(s)<4:
while s[0]>3000:d+=365*400+97;s[0]-=400
d+=(date(s[0],s[1],s[2])-a).days
d,k=divmod(d,20)
d,w=divmod(d,18)
... | output | 1 | 72,422 | 4 | 144,845 |
Provide a correct Python 3 solution for this coding contest problem.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," which was introduced in the program. The program explaine... | instruction | 0 | 72,423 | 4 | 144,846 |
"Correct Solution:
```
import datetime
from datetime import timedelta
from datetime import date
def ad2mayan(y, m, d):
days = 0
while datetime.MAXYEAR < y:
days += 365 * 400 + 97
y -= 400
days += (date(y, m, d) - date(2012, 12, 21)).days
ki, days = days % 20, days // 20
w, day... | output | 1 | 72,423 | 4 | 144,847 |
Provide a correct Python 3 solution for this coding contest problem.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," which was introduced in the program. The program explaine... | instruction | 0 | 72,424 | 4 | 144,848 |
"Correct Solution:
```
m1 = [31,28,31,30,31,30,31,31,30,31,30,31]
m2 = [31,29,31,30,31,30,31,31,30,31,30,31]
while 1:
try:d = list(map(int, input().split(".")))
except:break
if len(d) == 3:
days = -734858
days += (d[0] - 1) * 365 + (d[0] - 1) // 4 - (d[0] - 1) // 100 + (d[0] - 1) // 400
... | output | 1 | 72,424 | 4 | 144,849 |
Provide a correct Python 3 solution for this coding contest problem.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," which was introduced in the program. The program explaine... | instruction | 0 | 72,425 | 4 | 144,850 |
"Correct Solution:
```
def Fliegel(y, m, d):
if m <= 2:
m += 12
y -= 1
return int(365.25*y) + int(30.59*(m-2)) + (y//400) - (y//100) + d - 678912
def InvFliegel(mjd):
mjd += 678881
a = 4*mjd + 3 + 4*(3*(1 + 4*(mjd+1)//146097)//4)
b = 2 + 5*((a%1461)//4)
y = a//1461
m = 3 + b... | output | 1 | 72,425 | 4 | 144,851 |
Provide a correct Python 3 solution for this coding contest problem.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," which was introduced in the program. The program explaine... | instruction | 0 | 72,426 | 4 | 144,852 |
"Correct Solution:
```
from datetime import date,timedelta
a=date(2012,12,21)
while 1:
try:s=list(map(int,input().split('.')))
except:break
d=0
if len(s)<4:
while s[0]>3000:d+=365*400+97;s[0]-=400
d+=(date(s[0],s[1],s[2])-a).days
d,k=divmod(d,20)
d,w=divmod(d,18)
... | output | 1 | 72,426 | 4 | 144,853 |
Provide a correct Python 3 solution for this coding contest problem.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," which was introduced in the program. The program explaine... | instruction | 0 | 72,427 | 4 | 144,854 |
"Correct Solution:
```
import datetime
time_std=datetime.date(2012, 12, 21)
while 1:
n=input()
if n=="#":break
n_len=list(map(int,n.split(".")))
if len(n_len)==3:
year_keep=0
while n_len[0]>9999:
year_keep+=1
n_len[0]-=400
ans=[0]*5
cal_date=dateti... | output | 1 | 72,427 | 4 | 144,855 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," w... | instruction | 0 | 72,428 | 4 | 144,856 |
No | output | 1 | 72,428 | 4 | 144,857 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," w... | instruction | 0 | 72,429 | 4 | 144,858 |
No | output | 1 | 72,429 | 4 | 144,859 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," w... | instruction | 0 | 72,430 | 4 | 144,860 |
No | output | 1 | 72,430 | 4 | 144,861 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Shinya watched a program on TV called "Maya's Great Prophecy! Will the World End in 2012?" After all, I wasn't sure if the world would end, but I was interested in Maya's "long-term calendar," w... | instruction | 0 | 72,431 | 4 | 144,862 |
No | output | 1 | 72,431 | 4 | 144,863 |
Provide a correct Python 3 solution for this coding contest problem.
Earthquakes
E869120 You are not good at earthquakes.
Specifically, if an earthquake with a seismic intensity of $ p $ occurs while you are doing a task, the performance of that task will be reduced by $ 10 \ times p $ percent.
Yesterday, there wer... | instruction | 0 | 72,460 | 4 | 144,920 |
"Correct Solution:
```
from itertools import *
from bisect import *
from math import *
from collections import *
from heapq import *
from random import *
import sys
sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return... | output | 1 | 72,460 | 4 | 144,921 |
Provide a correct Python 3 solution for this coding contest problem.
Earthquakes
E869120 You are not good at earthquakes.
Specifically, if an earthquake with a seismic intensity of $ p $ occurs while you are doing a task, the performance of that task will be reduced by $ 10 \ times p $ percent.
Yesterday, there wer... | instruction | 0 | 72,461 | 4 | 144,922 |
"Correct Solution:
```
from math import log10
from bisect import bisect_left
n=int(input())
l=[[0,0]]+[list(map(int,input().split()))for _ in range(n)]
for i in range(1,n+1):
l[i][1]=log10(1-l[i][1]/10)
for i in range(n):
l[i+1][1]+=l[i][1]
q=int(input())
for _ in range(q):
a,b=map(int,input().split())
i=bisect... | output | 1 | 72,461 | 4 | 144,923 |
Provide a correct Python 3 solution for this coding contest problem.
Earthquakes
E869120 You are not good at earthquakes.
Specifically, if an earthquake with a seismic intensity of $ p $ occurs while you are doing a task, the performance of that task will be reduced by $ 10 \ times p $ percent.
Yesterday, there wer... | instruction | 0 | 72,462 | 4 | 144,924 |
"Correct Solution:
```
import sys
input = sys.stdin.readline
N=int(input())
E=[list(map(int,input().split())) for i in range(N)]
QU=int(input())
Q=[list(map(int,input().split())) for i in range(QU)]
TIMELIST=[]
for t,a in E:
TIMELIST.append(t)
for l,r in Q:
TIMELIST.append(l)
TIMELIST.append(r)
compr... | output | 1 | 72,462 | 4 | 144,925 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages.
At first day Mister B read v0 pages, but after that he started to speed up. Every day, starting from the second, he read a ... | instruction | 0 | 72,999 | 4 | 145,998 |
Tags: implementation
Correct Solution:
```
c, v0, v1, a, l = map(int, input().split())
i = 0
k = 0
while k < c:
li = 0 if i == 0 else 1
k += min(v0 + i * a - li * l, v1 - li * l)
i += 1
print(i)
``` | output | 1 | 72,999 | 4 | 145,999 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages.
At first day Mister B read v0 pages, but after that he started to speed up. Every day, starting from the second, he read a ... | instruction | 0 | 73,000 | 4 | 146,000 |
Tags: implementation
Correct Solution:
```
c,v0,v1,a,l=map(int,input().split())
k=1
c-=v0
while c>0:
k+=1
c+=l
c-=min(v0+(k-1)*a,v1)
print(k)
``` | output | 1 | 73,000 | 4 | 146,001 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages.
At first day Mister B read v0 pages, but after that he started to speed up. Every day, starting from the second, he read a ... | instruction | 0 | 73,001 | 4 | 146,002 |
Tags: implementation
Correct Solution:
```
inp=input().split()
c=int(inp[0]) #length of the book in page
v0=int(inp[1]) # initial reading spead
v1=int(inp[2]) #max reading spead
a=int(inp[3]) #acceleration in reading speed
l=int(inp[4]) #number of pages of rereading
nbpagerest=c
day=1
while nbpagerest>=0:
if day>... | output | 1 | 73,001 | 4 | 146,003 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages.
At first day Mister B read v0 pages, but after that he started to speed up. Every day, starting from the second, he read a ... | instruction | 0 | 73,002 | 4 | 146,004 |
Tags: implementation
Correct Solution:
```
c, v, v1, a, l = map(int, input().split())
i = 0
while c > 0:
if i == 1:
v -= l
v1 -= l
i += 1
c -= v
v = min(v1, v + a)
print(i)
``` | output | 1 | 73,002 | 4 | 146,005 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages.
At first day Mister B read v0 pages, but after that he started to speed up. Every day, starting from the second, he read a ... | instruction | 0 | 73,003 | 4 | 146,006 |
Tags: implementation
Correct Solution:
```
n,v,m,a,r= map(int,input().split())
c=i=0
while i<n:
if i>1:
i-=r
i+=min(v+c*a,m)
c+=1
print(c)
``` | output | 1 | 73,003 | 4 | 146,007 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages.
At first day Mister B read v0 pages, but after that he started to speed up. Every day, starting from the second, he read a ... | instruction | 0 | 73,004 | 4 | 146,008 |
Tags: implementation
Correct Solution:
```
c,v0,v1,a,l = map(int, input().split())
nowRead = 0
day = 0
while nowRead<c:
day += 1
nowRead += min(v0 + a*(day-1), v1)
if nowRead >= c:
break
nowRead -= l
print(day)
``` | output | 1 | 73,004 | 4 | 146,009 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages.
At first day Mister B read v0 pages, but after that he started to speed up. Every day, starting from the second, he read a ... | instruction | 0 | 73,005 | 4 | 146,010 |
Tags: implementation
Correct Solution:
```
def list_input():
return list(map(int,input().split()))
def map_input():
return map(int,input().split())
def map_string():
return input().split()
c,v0,v1,a,l = map_input()
cur = 0
cnt = 0
while cur < c:
if cnt != 0:
cur += min(v1,v0+cnt*a)-l
el... | output | 1 | 73,005 | 4 | 146,011 |
Provide tags and a correct Python 3 solution for this coding contest problem.
Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages.
At first day Mister B read v0 pages, but after that he started to speed up. Every day, starting from the second, he read a ... | instruction | 0 | 73,006 | 4 | 146,012 |
Tags: implementation
Correct Solution:
```
c,v,vm,a,l=list(map(int,input().split()))
pos=v
time=1
add=v
while (pos<c):
add=min(vm,add+a)
pos+=add-l
time+=1
print(time)
``` | output | 1 | 73,006 | 4 | 146,013 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages.
At first day Mister B read v0 pages, but after that he started to speed up. ... | instruction | 0 | 73,007 | 4 | 146,014 |
Yes | output | 1 | 73,007 | 4 | 146,015 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages.
At first day Mister B read v0 pages, but after that he started to speed up. ... | instruction | 0 | 73,008 | 4 | 146,016 |
Yes | output | 1 | 73,008 | 4 | 146,017 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages.
At first day Mister B read v0 pages, but after that he started to speed up. ... | instruction | 0 | 73,009 | 4 | 146,018 |
Yes | output | 1 | 73,009 | 4 | 146,019 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.