content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class Solution: def finalPrices(self, prices: List[int]) -> List[int]: res = [] for i in range(len(prices)): for j in range(i+1,len(prices)): if prices[j]<=prices[i]: res.append(prices[i]-prices[j]) break if j==len(prices)-1: res.append(prices[i]) res.append(prices[-1]) return res
class Solution: def final_prices(self, prices: List[int]) -> List[int]: res = [] for i in range(len(prices)): for j in range(i + 1, len(prices)): if prices[j] <= prices[i]: res.append(prices[i] - prices[j]) break if j == len(prices) - 1: res.append(prices[i]) res.append(prices[-1]) return res
N, M = map(int, input().split()) for i in range(1, M + 1): if i % 2 == 1: j = (i - 1) // 2 print(1 + j, M + 1 - j) else: j = (i - 2) // 2 print(M + 2 + j, 2 * M + 1 - j)
(n, m) = map(int, input().split()) for i in range(1, M + 1): if i % 2 == 1: j = (i - 1) // 2 print(1 + j, M + 1 - j) else: j = (i - 2) // 2 print(M + 2 + j, 2 * M + 1 - j)
summary = 0 i = 0 while i < 5: summary = summary + i print(summary) i = i + 1
summary = 0 i = 0 while i < 5: summary = summary + i print(summary) i = i + 1
"#\n# PySNMP MIB module XXX-MIB (http://snmplabs.com/pysmi)\n# ASN.1 source file:///Users/davwang4/D(...TRUNCATED)
"(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', '(...TRUNCATED)
"# Copyright (c) 2009 The Chromium Authors. All rights reserved.\n# Use of this source code is gover(...TRUNCATED)
"{'conditions': [['OS!=\"win\"', {'variables': {'config_h_dir': '.'}}, {'variables': {'config_h_dir'(...TRUNCATED)
"# def mul(a):\n# \treturn lambda b:b*a\n\n# singler = mul(1) # addition = lambda b:b*1\n# double(...TRUNCATED)
"class Student:\n\n def __init__(self, fname):\n self.fname = fname\n\n def greet(self,(...TRUNCATED)
"class MyError(Exception):\n pass\n\n\nclass PropertyContainer(object):\n def __init__(self):\(...TRUNCATED)
"class Myerror(Exception):\n pass\n\nclass Propertycontainer(object):\n\n def __init__(self):\(...TRUNCATED)
"# code....\na = 1\nb = 2\nc = 3\ns = a+b+c\nr = s/3\nprint(r)\n# code....\n\n'''\ndef average():\n (...TRUNCATED)
"a = 1\nb = 2\nc = 3\ns = a + b + c\nr = s / 3\nprint(r)\n'\\ndef average():\\n a=1\\n b=2\\n (...TRUNCATED)
"'''\nThis is the Settings File for the Mattermost-Octane Bridge.\nYou can change various variables (...TRUNCATED)
"\"\"\"\nThis is the Settings File for the Mattermost-Octane Bridge.\nYou can change various variabl(...TRUNCATED)
"def hello_world(request):\n request_json = request.get_json()\n name = 'World'\n if reques(...TRUNCATED)
"def hello_world(request):\n request_json = request.get_json()\n name = 'World'\n if reques(...TRUNCATED)

Dataset Card for "tinycode-b-nocomment"

~851m tokens with GPT-2 tokenizer

Downloads last month
2
Edit dataset card