content
stringlengths 7
1.05M
|
---|
# Problema 2
# Generar una arreglo invertido de n números y después buscar un elemento
def generateList(size):
return list(range(size,0,-1))
def searchInvertArray(array, element):
for i in range(0,len(array)):
if array[i] == element:
return True
return False
# Casos de prueba
test1 = generateList(18)
test2 = generateList(89)
print(searchInvertArray(test1,78))
print(searchInvertArray(test2,15)) |
#ID of the project
project_id = ""
#List of paths where the folders to check are
project_paths = []
#Destination of the sync, trailing slash
destination_path = ""
##################################
#Postgres database and rw user
##################################
db_host = ""
db_db = ""
db_user = ""
##################################
#How long to sleep between loops
sleep = 180
|
class Solution:
def summaryRanges(self, nums):
if not nums:
return nums
results = []
start = end = nums[0]
for i in nums:
if i != end:
rng = f"{start}->{end-1}" if start != (end - 1) else f"{start}"
results.append(rng)
start = end = i
end += 1
# we ended on a solo number.
if start == nums[-1]:
results.append(f'{start}')
# we ended on a range.
elif start != (end - 1):
results.append(f'{start}->{end-1}')
return results
|
class Solution:
def totalNQueens(self, n: int) -> int:
def dfs(row):
if row == 0:
return 1
count = 0
for col in range(n):
if col not in col_blacklist and \
row - col not in major_blacklist and \
row + col not in minor_blacklist:
col_blacklist.add(col)
major_blacklist.add(row - col)
minor_blacklist.add(row + col)
count += dfs(row - 1)
col_blacklist.remove(col)
major_blacklist.remove(row - col)
minor_blacklist.remove(row + col)
return count
col_blacklist = set()
major_blacklist = set()
minor_blacklist = set()
return dfs(n)
|
N = int(input())
R = []
for i in range(0, N*2) :
if i%2 == 0 : R.append("*")
else : R.append(" ")
for l in range(0, N) :
P1 = P2 = ""
for i in range(0, N) :
P1 += R[i]
print(P1)
for i in range(N*2-1, N-1, -1) :
P2 += R[i]
print(P2) |
#
# PySNMP MIB module SYMMCOMMONPTP (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/neermitt/Dev/kusanagi/mibs.snmplabs.com/asn1/SYMMCOMMONPTP
# Produced by pysmi-0.3.4 at Tue Jul 30 11:34:16 2019
# On host NEERMITT-M-J0NV platform Darwin version 18.6.0 by user neermitt
# Using Python version 3.7.4 (default, Jul 9 2019, 18:13:23)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint")
entPhysicalIndex, = mibBuilder.importSymbols("ENTITY-MIB", "entPhysicalIndex")
ifIndex, ifNumber = mibBuilder.importSymbols("IF-MIB", "ifIndex", "ifNumber")
NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
NotificationType, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, TimeTicks, Unsigned32, ObjectIdentity, ModuleIdentity, iso, Bits, MibIdentifier, Counter32, Gauge32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "TimeTicks", "Unsigned32", "ObjectIdentity", "ModuleIdentity", "iso", "Bits", "MibIdentifier", "Counter32", "Gauge32", "IpAddress")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
EnableValue, symmPacketService = mibBuilder.importSymbols("SYMM-COMMON-SMI", "EnableValue", "symmPacketService")
symmPTPv2 = ModuleIdentity((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1))
symmPTPv2.setRevisions(('2018-07-31 06:20',))
if mibBuilder.loadTexts: symmPTPv2.setLastUpdated('201807310620Z')
if mibBuilder.loadTexts: symmPTPv2.setOrganization('Symmetricom')
class PTPPROFILEVALUE(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))
namedValues = NamedValues(("profileTelecom2008", 1), ("profileDefault", 2), ("profileHybrid", 3), ("profileITU8265one", 4), ("profileEthernetDefault", 5), ("profileITU8275one", 6), ("profileITU8275two", 7))
class PTPTIMESCALETYPE(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("auto", 1), ("arb", 2), ("ptp", 3))
class PTPMGMTADDRTYPE(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1))
namedValues = NamedValues(("unicast", 0), ("multicast", 1))
class PTPTRANSPORTTYPE(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("ethernet", 1), ("ipv4", 2))
class PTPADDRMODETYPE(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("unicast", 0), ("multicast", 1), ("multicasthybrid", 2))
class PORTSTATEVALUE(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("enable", 1), ("disable", 2))
class G82751McAddrValue(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("mac011b19000000", 1), ("mac0180c200000e", 2))
class VLANID(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1))
namedValues = NamedValues(("none", 1))
class DateAndTime(TextualConvention, OctetString):
status = 'current'
displayHint = '2d-1d-1d,1d:1d:1d.1d,1a1d:1d'
subtypeSpec = OctetString.subtypeSpec + ConstraintsUnion(ValueSizeConstraint(8, 8), ValueSizeConstraint(11, 11), )
class TLatAndLon(TextualConvention, OctetString):
status = 'current'
displayHint = '1a1d:1d:1d.1d'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(5, 5)
fixedLength = 5
class TAntHeight(TextualConvention, OctetString):
status = 'current'
displayHint = '1a2d.1d'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(4, 4)
fixedLength = 4
class TLocalTimeOffset(TextualConvention, OctetString):
status = 'current'
displayHint = '1a1d:1d'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(3, 3)
fixedLength = 3
class TSsm(TextualConvention, Integer32):
status = 'current'
displayHint = 'x'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 255)
ptpv2Status = MibIdentifier((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1))
ptpv2StatusTable = MibTable((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 1), )
if mibBuilder.loadTexts: ptpv2StatusTable.setStatus('current')
ptpv2StatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "SYMMCOMMONPTP", "ptpv2StatusIndex"))
if mibBuilder.loadTexts: ptpv2StatusEntry.setStatus('current')
ptpv2StatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000)))
if mibBuilder.loadTexts: ptpv2StatusIndex.setStatus('current')
ptpv2StatusPortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 1, 1, 2), EnableValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ptpv2StatusPortEnable.setStatus('current')
ptpv2StatusClockID = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 1, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ptpv2StatusClockID.setStatus('current')
ptpv2StatusProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 1, 1, 4), PTPPROFILEVALUE()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ptpv2StatusProfile.setStatus('current')
ptpv2StatusClockClass = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ptpv2StatusClockClass.setStatus('current')
ptpv2StatusClockAccuracy = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 1, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ptpv2StatusClockAccuracy.setStatus('current')
ptpv2StatusTimescale = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 1, 1, 7), PTPTIMESCALETYPE()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ptpv2StatusTimescale.setStatus('current')
ptpv2StatusNumClient = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ptpv2StatusNumClient.setStatus('current')
ptpv2StatusClientLoad = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 1, 1, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ptpv2StatusClientLoad.setStatus('current')
ptpv2ClientDataTable = MibTable((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 2), )
if mibBuilder.loadTexts: ptpv2ClientDataTable.setStatus('current')
ptpv2ClientDataEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 2, 1), ).setIndexNames((0, "SYMMCOMMONPTP", "ptpv2ClientDataIndex"))
if mibBuilder.loadTexts: ptpv2ClientDataEntry.setStatus('current')
ptpv2ClientDataIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 5000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ptpv2ClientDataIndex.setStatus('current')
ptpv2ClientData = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 1, 2, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ptpv2ClientData.setStatus('current')
ptpv2Config = MibIdentifier((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2))
ptpv2CommonTable = MibTable((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1), )
if mibBuilder.loadTexts: ptpv2CommonTable.setStatus('current')
ptpv2CommonEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "SYMMCOMMONPTP", "ptpv2CommonIndex"))
if mibBuilder.loadTexts: ptpv2CommonEntry.setStatus('current')
ptpv2CommonIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000)))
if mibBuilder.loadTexts: ptpv2CommonIndex.setStatus('current')
ptpv2Profile = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 2), PTPPROFILEVALUE()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2Profile.setStatus('current')
ptpv2ClockID = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2ClockID.setStatus('current')
ptpv2Priority1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2Priority1.setStatus('current')
ptpv2Priority2 = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2Priority2.setStatus('current')
ptpv2Domain = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2Domain.setStatus('current')
ptpv2DSCPState = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 7), EnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2DSCPState.setStatus('current')
ptpv2DSCPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2DSCPValue.setStatus('current')
ptpv2State = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 9), EnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2State.setStatus('current')
ptpv2MaxClient = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1500)).clone(500)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2MaxClient.setStatus('current')
ptpv2AnnounceLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-4, 4)).clone(-3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2AnnounceLimit.setStatus('current')
ptpv2SyncLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-7, 7)).clone(-7)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2SyncLimit.setStatus('current')
ptpv2DelayLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-7, 7)).clone(-7)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2DelayLimit.setStatus('current')
ptpv2TwoStep = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 14), EnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2TwoStep.setStatus('current')
ptpv2MgmtAddrMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 15), PTPMGMTADDRTYPE()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2MgmtAddrMode.setStatus('current')
ptpv2TTL = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 16), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2TTL.setStatus('current')
ptpv2AlternateGM = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 17), EnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2AlternateGM.setStatus('current')
ptpv2TimeScale = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 18), PTPTIMESCALETYPE()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2TimeScale.setStatus('current')
ptpv2Dither = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 19), EnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2Dither.setStatus('current')
ptpv2ServiceLoadAlarmThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 1, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2ServiceLoadAlarmThreshold.setStatus('current')
ptpv2UnicastTable = MibTable((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 2), )
if mibBuilder.loadTexts: ptpv2UnicastTable.setStatus('current')
ptpv2UnicastEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "SYMMCOMMONPTP", "ptpv2UnicastIndex"))
if mibBuilder.loadTexts: ptpv2UnicastEntry.setStatus('current')
ptpv2UnicastIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000)))
if mibBuilder.loadTexts: ptpv2UnicastIndex.setStatus('current')
ptpv2UnicastNeg = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 2, 1, 2), EnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2UnicastNeg.setStatus('current')
ptpv2UnicastLeaseDurLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 1000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2UnicastLeaseDurLimit.setStatus('current')
ptpv2UnicastInterfaceRateTLV = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 2, 1, 4), EnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2UnicastInterfaceRateTLV.setStatus('current')
ptpv2UnicastLeaseExtension = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2UnicastLeaseExtension.setStatus('current')
ptpv2MulticastTable = MibTable((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 3), )
if mibBuilder.loadTexts: ptpv2MulticastTable.setStatus('current')
ptpv2MulticastEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "SYMMCOMMONPTP", "ptpv2MulticastIndex"))
if mibBuilder.loadTexts: ptpv2MulticastEntry.setStatus('current')
ptpv2MulticastIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000)))
if mibBuilder.loadTexts: ptpv2MulticastIndex.setStatus('current')
ptpv2MulticastAnnounceInt = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-4, 4))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2MulticastAnnounceInt.setStatus('current')
ptpv2MulticastSyncInt = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-7, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2MulticastSyncInt.setStatus('current')
ptpv2MulticastDelayInt = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-7, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2MulticastDelayInt.setStatus('current')
ptpv2MulticastAnnoTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 10)).clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2MulticastAnnoTimeout.setStatus('current')
ptpv2MulticastVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2MulticastVlanId.setStatus('current')
ptpv2MulticastClientTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 3600)).clone(360)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2MulticastClientTimeout.setStatus('current')
ptpv2G82751Table = MibTable((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 4), )
if mibBuilder.loadTexts: ptpv2G82751Table.setStatus('current')
ptpv2G82751Entry = MibTableRow((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "SYMMCOMMONPTP", "ptpv2G82751Index"))
if mibBuilder.loadTexts: ptpv2G82751Entry.setStatus('current')
ptpv2G82751Index = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000)))
if mibBuilder.loadTexts: ptpv2G82751Index.setStatus('current')
ptpv2G82751MulticastAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 4, 1, 2), G82751McAddrValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2G82751MulticastAddr.setStatus('current')
ptpv2G82751LocalPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2G82751LocalPriority.setStatus('current')
ptpv2ReflectorTable = MibTable((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 5), )
if mibBuilder.loadTexts: ptpv2ReflectorTable.setStatus('current')
ptpv2ReflectorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "SYMMCOMMONPTP", "ptpv2ReflectorIndex"))
if mibBuilder.loadTexts: ptpv2ReflectorEntry.setStatus('current')
ptpv2ReflectorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000)))
if mibBuilder.loadTexts: ptpv2ReflectorIndex.setStatus('current')
ptpv2ReflectorAnnounceIntv = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-3, 0))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2ReflectorAnnounceIntv.setStatus('current')
ptpv2ReflectorSyncDelayIntv = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 5, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-7, -4))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2ReflectorSyncDelayIntv.setStatus('current')
ptpv2ReflectorClientTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(60, 1000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2ReflectorClientTimeout.setStatus('current')
ptpv2ReflectorVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 2, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ptpv2ReflectorVlanID.setStatus('current')
ptpv2Conformance = ObjectIdentity((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 3))
if mibBuilder.loadTexts: ptpv2Conformance.setStatus('current')
ptpv2Compliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 3, 1))
ptpv2BasicCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 3, 1, 1)).setObjects(("SYMMCOMMONPTP", "ptpv2StatusGroup"), ("SYMMCOMMONPTP", "ptpv2ClientDataGroup"), ("SYMMCOMMONPTP", "ptpv2CommonGroup"), ("SYMMCOMMONPTP", "ptpv2UnicastGroup"), ("SYMMCOMMONPTP", "ptpv2MulticastGroup"), ("SYMMCOMMONPTP", "ptpv2G82751Group"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ptpv2BasicCompliance = ptpv2BasicCompliance.setStatus('current')
ptpv2UocGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 3, 2))
ptpv2StatusGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 3, 2, 1)).setObjects(("SYMMCOMMONPTP", "ptpv2StatusPortEnable"), ("SYMMCOMMONPTP", "ptpv2StatusClockID"), ("SYMMCOMMONPTP", "ptpv2StatusProfile"), ("SYMMCOMMONPTP", "ptpv2StatusClockClass"), ("SYMMCOMMONPTP", "ptpv2StatusClockAccuracy"), ("SYMMCOMMONPTP", "ptpv2StatusTimescale"), ("SYMMCOMMONPTP", "ptpv2StatusNumClient"), ("SYMMCOMMONPTP", "ptpv2StatusClientLoad"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ptpv2StatusGroup = ptpv2StatusGroup.setStatus('current')
ptpv2ClientDataGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 3, 2, 2)).setObjects(("SYMMCOMMONPTP", "ptpv2ClientDataIndex"), ("SYMMCOMMONPTP", "ptpv2ClientData"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ptpv2ClientDataGroup = ptpv2ClientDataGroup.setStatus('current')
ptpv2CommonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 3, 2, 3)).setObjects(("SYMMCOMMONPTP", "ptpv2Profile"), ("SYMMCOMMONPTP", "ptpv2ClockID"), ("SYMMCOMMONPTP", "ptpv2Priority1"), ("SYMMCOMMONPTP", "ptpv2Priority2"), ("SYMMCOMMONPTP", "ptpv2Domain"), ("SYMMCOMMONPTP", "ptpv2DSCPState"), ("SYMMCOMMONPTP", "ptpv2DSCPValue"), ("SYMMCOMMONPTP", "ptpv2State"), ("SYMMCOMMONPTP", "ptpv2MaxClient"), ("SYMMCOMMONPTP", "ptpv2AnnounceLimit"), ("SYMMCOMMONPTP", "ptpv2SyncLimit"), ("SYMMCOMMONPTP", "ptpv2DelayLimit"), ("SYMMCOMMONPTP", "ptpv2TwoStep"), ("SYMMCOMMONPTP", "ptpv2MgmtAddrMode"), ("SYMMCOMMONPTP", "ptpv2TTL"), ("SYMMCOMMONPTP", "ptpv2AlternateGM"), ("SYMMCOMMONPTP", "ptpv2TimeScale"), ("SYMMCOMMONPTP", "ptpv2Dither"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ptpv2CommonGroup = ptpv2CommonGroup.setStatus('current')
ptpv2UnicastGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 3, 2, 4)).setObjects(("SYMMCOMMONPTP", "ptpv2UnicastNeg"), ("SYMMCOMMONPTP", "ptpv2UnicastLeaseDurLimit"), ("SYMMCOMMONPTP", "ptpv2UnicastInterfaceRateTLV"), ("SYMMCOMMONPTP", "ptpv2UnicastLeaseExtension"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ptpv2UnicastGroup = ptpv2UnicastGroup.setStatus('current')
ptpv2MulticastGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 3, 2, 5)).setObjects(("SYMMCOMMONPTP", "ptpv2MulticastAnnounceInt"), ("SYMMCOMMONPTP", "ptpv2MulticastSyncInt"), ("SYMMCOMMONPTP", "ptpv2MulticastDelayInt"), ("SYMMCOMMONPTP", "ptpv2MulticastAnnoTimeout"), ("SYMMCOMMONPTP", "ptpv2MulticastVlanId"), ("SYMMCOMMONPTP", "ptpv2MulticastClientTimeout"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ptpv2MulticastGroup = ptpv2MulticastGroup.setStatus('current')
ptpv2G82751Group = ObjectGroup((1, 3, 6, 1, 4, 1, 9070, 1, 2, 5, 1, 1, 3, 2, 6)).setObjects(("SYMMCOMMONPTP", "ptpv2G82751MulticastAddr"), ("SYMMCOMMONPTP", "ptpv2G82751LocalPriority"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ptpv2G82751Group = ptpv2G82751Group.setStatus('current')
mibBuilder.exportSymbols("SYMMCOMMONPTP", ptpv2ReflectorAnnounceIntv=ptpv2ReflectorAnnounceIntv, PYSNMP_MODULE_ID=symmPTPv2, ptpv2Domain=ptpv2Domain, ptpv2StatusClockClass=ptpv2StatusClockClass, ptpv2StatusNumClient=ptpv2StatusNumClient, ptpv2ClientDataTable=ptpv2ClientDataTable, PTPADDRMODETYPE=PTPADDRMODETYPE, ptpv2ClientData=ptpv2ClientData, ptpv2UnicastTable=ptpv2UnicastTable, ptpv2ReflectorSyncDelayIntv=ptpv2ReflectorSyncDelayIntv, ptpv2TTL=ptpv2TTL, ptpv2Compliances=ptpv2Compliances, ptpv2G82751Index=ptpv2G82751Index, ptpv2MulticastClientTimeout=ptpv2MulticastClientTimeout, PTPMGMTADDRTYPE=PTPMGMTADDRTYPE, DateAndTime=DateAndTime, ptpv2StatusTimescale=ptpv2StatusTimescale, ptpv2Profile=ptpv2Profile, ptpv2G82751Entry=ptpv2G82751Entry, ptpv2StatusProfile=ptpv2StatusProfile, ptpv2MulticastSyncInt=ptpv2MulticastSyncInt, ptpv2State=ptpv2State, ptpv2CommonIndex=ptpv2CommonIndex, ptpv2MulticastGroup=ptpv2MulticastGroup, ptpv2StatusClockAccuracy=ptpv2StatusClockAccuracy, ptpv2TimeScale=ptpv2TimeScale, ptpv2UocGroups=ptpv2UocGroups, ptpv2ClockID=ptpv2ClockID, ptpv2UnicastInterfaceRateTLV=ptpv2UnicastInterfaceRateTLV, ptpv2G82751Group=ptpv2G82751Group, ptpv2StatusGroup=ptpv2StatusGroup, VLANID=VLANID, ptpv2MulticastIndex=ptpv2MulticastIndex, ptpv2MulticastTable=ptpv2MulticastTable, PTPTIMESCALETYPE=PTPTIMESCALETYPE, PTPTRANSPORTTYPE=PTPTRANSPORTTYPE, ptpv2StatusEntry=ptpv2StatusEntry, ptpv2ReflectorEntry=ptpv2ReflectorEntry, ptpv2MulticastVlanId=ptpv2MulticastVlanId, ptpv2UnicastEntry=ptpv2UnicastEntry, ptpv2Config=ptpv2Config, ptpv2TwoStep=ptpv2TwoStep, ptpv2CommonTable=ptpv2CommonTable, PTPPROFILEVALUE=PTPPROFILEVALUE, ptpv2DSCPState=ptpv2DSCPState, TLatAndLon=TLatAndLon, ptpv2CommonGroup=ptpv2CommonGroup, ptpv2UnicastIndex=ptpv2UnicastIndex, ptpv2G82751LocalPriority=ptpv2G82751LocalPriority, ptpv2MaxClient=ptpv2MaxClient, ptpv2G82751Table=ptpv2G82751Table, ptpv2ClientDataGroup=ptpv2ClientDataGroup, ptpv2MulticastAnnounceInt=ptpv2MulticastAnnounceInt, G82751McAddrValue=G82751McAddrValue, ptpv2AlternateGM=ptpv2AlternateGM, ptpv2Status=ptpv2Status, TSsm=TSsm, ptpv2UnicastNeg=ptpv2UnicastNeg, ptpv2StatusIndex=ptpv2StatusIndex, ptpv2ClientDataEntry=ptpv2ClientDataEntry, ptpv2BasicCompliance=ptpv2BasicCompliance, TLocalTimeOffset=TLocalTimeOffset, ptpv2ServiceLoadAlarmThreshold=ptpv2ServiceLoadAlarmThreshold, ptpv2StatusTable=ptpv2StatusTable, ptpv2MgmtAddrMode=ptpv2MgmtAddrMode, ptpv2AnnounceLimit=ptpv2AnnounceLimit, ptpv2DSCPValue=ptpv2DSCPValue, PORTSTATEVALUE=PORTSTATEVALUE, ptpv2ReflectorTable=ptpv2ReflectorTable, symmPTPv2=symmPTPv2, ptpv2ClientDataIndex=ptpv2ClientDataIndex, ptpv2UnicastGroup=ptpv2UnicastGroup, ptpv2StatusClockID=ptpv2StatusClockID, ptpv2MulticastEntry=ptpv2MulticastEntry, ptpv2ReflectorClientTimeout=ptpv2ReflectorClientTimeout, ptpv2StatusClientLoad=ptpv2StatusClientLoad, ptpv2SyncLimit=ptpv2SyncLimit, ptpv2Priority1=ptpv2Priority1, ptpv2ReflectorIndex=ptpv2ReflectorIndex, ptpv2G82751MulticastAddr=ptpv2G82751MulticastAddr, TAntHeight=TAntHeight, ptpv2DelayLimit=ptpv2DelayLimit, ptpv2ReflectorVlanID=ptpv2ReflectorVlanID, ptpv2StatusPortEnable=ptpv2StatusPortEnable, ptpv2UnicastLeaseDurLimit=ptpv2UnicastLeaseDurLimit, ptpv2MulticastDelayInt=ptpv2MulticastDelayInt, ptpv2Conformance=ptpv2Conformance, ptpv2Dither=ptpv2Dither, ptpv2Priority2=ptpv2Priority2, ptpv2UnicastLeaseExtension=ptpv2UnicastLeaseExtension, ptpv2MulticastAnnoTimeout=ptpv2MulticastAnnoTimeout, ptpv2CommonEntry=ptpv2CommonEntry)
|
class Solution:
def search(self, nums, target):
if not nums:
return -1
low, high = 0, len(nums) - 1
while low <= high:
mid = (low + high) // 2
if target == nums[mid]:
return mid
if nums[mid] < nums[high]:
# 后半部分是排好序的
if nums[mid] <= target <= nums[high]:
low = mid + 1
else:
high = mid - 1
else:
# 前半部分是排好序的
if nums[low] <= target <= nums[mid]:
high = mid - 1
else:
low = mid + 1
return -1
if __name__ == '__main__':
s = Solution()
nums = [1, 3]
target = 3
print(s.search(nums, target) == 1)
nums = [4, 5, 6, 7, 8, 1, 2]
target = 1
print(s.search(nums, target) == 5)
nums = [3, 1]
target = 1
print(s.search(nums, target) == 1)
|
class Solution:
def moveZeroes(self, nums: List[int]) -> None:
non_zeros = [i for i in range(len(nums)) if nums[i] != 0] # List comprehension to keep only numbers that are non -zero
nz = len(non_zeros)
nums[:nz] = [nums[i] for i in non_zeros] # edit the list to add non zero numbers to the list
nums[nz:] = [0] *(len(nums)-nz) #dd zeroes at the end |
DEFAULT_OCR_AUTO_OCR = True
DEFAULT_OCR_BACKEND = 'mayan.apps.ocr.backends.tesseract.Tesseract'
DEFAULT_OCR_BACKEND_ARGUMENTS = {'environment': {'OMP_THREAD_LIMIT': '1'}}
TASK_DOCUMENT_VERSION_PAGE_OCR_RETRY_DELAY = 10
TASK_DOCUMENT_VERSION_PAGE_OCR_TIMEOUT = 10 * 60 # 10 Minutes per page
|
input()
c = int(input())
a = sorted((map(int, input().split())))
a.sort(key= lambda x: x%c)
print(*a) |
"""
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.
Example 1:
Input:
11110
11010
11000
00000
Output: 1
Example 2:
Input:
11000
11000
00100
00011
Output: 3
"""
class Solution:
def numIslands(self, grid: List[List[str]]) -> int:
visited = [[False for i in range(len(grid[0]))] for j in range(len(grid))]
islands = 0
for i in range(len(grid)):
for j in range(len(grid[0])):
if grid[i][j] == "1" and not visited[i][j]:
islands += 1
self.DFS((i, j), grid, visited)
return islands
def DFS(self, current, grid, visited):
directions = [(0,1), (1,0), (0, -1), (-1, 0)]
x, y = current
if visited[x][y]:
return
visited[x][y] = True
for d in directions:
next_x = x + d[0]
next_y = y + d[1]
if (
0 <= next_x < len(grid) and
0 <= next_y < len(grid[0]) and
grid[next_x][next_y] == "1"
):
self.DFS((next_x, next_y), grid, visited)
|
def greet(name):
return "Hello {}".format(name)
print(greet("Alice"))
def greet2(name):
def greet_message():
return "Hello"
return "{} {}".format(greet_message(),name)
print(greet2("Alice"))
def change_name_greet(func):
name = "Alice"
return func(name)
print(change_name_greet(greet))
def upper(func):
def wrapper(name):
result = func(name)
return result.upper()
return wrapper
print(upper(greet)("Alice"))
|
class Helpers(object):
"""
Adds additional helper functions that aren't part of the core or extended
API.
"""
def __init__(self, api):
self.api = api
def is_promotable(self, tail):
# type: (TransactionHash) -> bool
"""
Determines if a tail transaction is promotable.
:param tail:
Transaction hash. Must be a tail transaction.
"""
return self.api.check_consistency(tails=[tail])['state']
|
class FormClosedEventArgs(EventArgs):
"""
Provides data for the System.Windows.Forms.Form.FormClosed event.
FormClosedEventArgs(closeReason: CloseReason)
"""
@staticmethod
def __new__(self, closeReason):
""" __new__(cls: type,closeReason: CloseReason) """
pass
CloseReason = property(
lambda self: object(), lambda self, v: None, lambda self: None
)
"""Gets a value that indicates why the form was closed.
Get: CloseReason(self: FormClosedEventArgs) -> CloseReason
"""
|
s = b'abc'; print(s.islower(), s)
s = b'Abc'; print(s.islower(), s)
s = b'ABC'; print(s.islower(), s)
s = b'123'; print(s.islower(), s)
s = b'(_)'; print(s.islower(), s)
s = b'(abc)'; print(s.islower(), s)
s = b'(aBc)'; print(s.islower(), s)
s = bytearray(b'abc'); print(s.islower(), s)
s = bytearray(b'Abc'); print(s.islower(), s)
s = bytearray(b'ABC'); print(s.islower(), s)
s = bytearray(b'123'); print(s.islower(), s)
s = bytearray(b'(_)'); print(s.islower(), s)
s = bytearray(b'(abc)'); print(s.islower(), s)
s = bytearray(b'(aBc)'); print(s.islower(), s)
|
class Solution:
def maxArea(self, height: List[int]) -> int:
i = 0
j = len(height)-1
res = 0
area = 0
while i < j:
area = min(height[i],height[j])*(j-i)
#print(area)
res = max(res,area)
if height[i]<height[j]:
i+=1
else:
j-=1
return res
|
explanations = {
'gamma': '''
Proportion of tree modifications that should use mutrel-informed choice for
node to move, rather than uniform choice
''',
'zeta': '''
Proportion of tree modifications that should use mutrel-informed choice for
destination to move node to, rather than uniform choice
''',
'iota': '''
Probability of initializing with mutrel-informed tree rather than fully
branching tree when beginning chain
'''
}
defaults = {
'gamma': 0.7,
'zeta': 0.7,
'iota': 0.7,
}
assert set(explanations.keys()) == set(defaults.keys())
|
def _impl(_ctx):
pass
bad_attrs = rule(implementation = _impl, attrs = {"1234isntvalid": attr.int()})
|
# Copyright (c) 2017 Hristo Iliev <github@hiliev.eu>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of the copyright holder nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
DMU_TYPE_DESC = [
"unallocated", # 0
"object directory", # 1
"object array", # 2
"packed nvlist", # 3
"packed nvlist size", # 4
"bpobj", # 5
"bpobj header", # 6
"SPA space map header", # 7
"SPA space map", # 8
"ZIL intent log", # 9
"DMU dnode", # 10
"DMU objset", # 11
"DSL directory", # 12
"DSL directory child map", # 13
"DSL dataset snap map", # 14
"DSL props", # 15
"DSL dataset", # 16
"ZFS znode", # 17
"ZFS V0 ACL", # 18
"ZFS plain file", # 19
"ZFS directory", # 20
"ZFS master node", # 21
"ZFS delete queue", # 22
"zvol object", # 23
"zvol prop", # 24
"other uint8[]", # 25
"other uint64[]", # 26
"other ZAP", # 27
"persistent error log", # 28
"SPA history", # 29
"SPA history offsets", # 30
"Pool properties", # 31
"DSL permissions", # 32
"ZFS ACL", # 33
"ZFS SYSACL", # 34
"FUID table", # 35
"FUID table size", # 36
"DSL dataset next clones", # 37
"scan work queue", # 38
"ZFS user/group used", # 39
"ZFS user/group quota", # 40
"snapshot refcount tags", # 41
"DDT ZAP algorithm", # 42
"DDT statistics", # 43
"System attributes", # 44
"SA master node", # 45
"SA attr registration", # 46
"SA attr layouts", # 47
"scan translations", # 48
"deduplicated block", # 49
"DSL deadlist map", # 50
"DSL deadlist map hdr", # 51
"DSL dir clones", # 52
"bpobj subobj" # 53
]
COMP_DESC = [
"invalid",
"lzjb",
"off",
"lzjb",
"empty",
"gzip1",
"gzip2",
"gzip3",
"gzip4",
"gzip5",
"gzip6",
"gzip7",
"gzip8",
"gzip9",
"zle",
"lz4"
]
CHKSUM_DESC = ["invalid", "fletcher2", "none", "SHA-256", "SHA-256", "fletcher2", "fletcher2", "fletcher4", "SHA-256"]
ENDIAN_DESC = ["BE", "LE"]
|
#!/usr/bin/env python3
def sleep_in(weekday, vacation):
"""
The parameter weekday is True if it is a weekday, and the parameter
vacation is True if we are on vacation. We sleep in if it is not a
weekday or we're on vacation. Return True if we sleep in.
sleep_in(False, False) → True
sleep_in(True, False) → False
sleep_in(False, True) → True
"""
return False
def monkey_trouble(a_smile, b_smile):
"""
We have two monkeys, a and b, and the parameters a_smile and b_smile
indicate if each is smiling. We are in trouble if they are both smiling or
if neither of them is smiling. Return True if we are in trouble.
monkey_trouble(True, True) → True
monkey_trouble(False, False) → True
monkey_trouble(True, False) → False
"""
return False
def sum_double(a, b):
"""
Given two int values, return their sum. Unless the two values are the same,
then return double their sum.
sum_double(1, 2) → 3
sum_double(3, 2) → 5
sum_double(2, 2) → 8
"""
return 0
def diff21(n):
"""
Given an int n, return the absolute difference between n and 21, except
return double the absolute difference if n is over 21.
diff21(19) → 2
diff21(10) → 11
diff21(21) → 0
"""
return 0
def count_evens(nums):
"""
Return the number of even ints in the given array. Note: the % "mod"
operator computes the remainder, e.g. 5 % 2 is 1.
count_evens([2, 1, 2, 3, 4]) → 3
count_evens([2, 2, 0]) → 3
count_evens([1, 3, 5]) → 0
"""
return 0
def xyz_there(s):
"""
Return True if the given string contains an appearance of "xyz" where the
xyz is not directly preceeded by a period (.). So "xxyz" counts but "x.xyz"
does not.
xyz_there('abcxyz') → True
xyz_there('abc.xyz') → False
xyz_there('xyz.abc') → True
"""
return False
def is_prime(n):
"""
Return True if the given number is prime.
is_prime(2) → True
is_prime(4) → False
is_prime(11) → True
"""
return False
|
def caesar_encode(phrase, shift):
res=[]
for i,j in enumerate(phrase.split()):
res.append("".join(chr(ord("a")+(ord(k)-ord("a")+shift+i)%26) for k in j))
return " ".join(res) |
expected_output = {
'ints': {
'Ethernet 1/1/1': {
'ip_address': 'unassigned',
'ok': True,
'method': 'unset',
'status': 'up',
'protocol': 'up'
},
'Ethernet 1/1/2': {
'ip_address': 'unassigned',
'ok': True,
'method': 'unset',
'status': 'up',
'protocol': 'up'
},
'Ethernet 1/1/3': {
'ip_address': 'unassigned',
'ok': True,
'method': 'unset',
'status': 'up',
'protocol': 'up'
},
'Ethernet 1/1/4': {
'ip_address': 'unassigned',
'ok': True,
'method': 'unset',
'status': 'up',
'protocol': 'up'
},
'Ethernet 1/1/5': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/6': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/7': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/8': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/9': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/10': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/11': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/12': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/13': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/14': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/15': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/16': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/17': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/18': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/19': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/20': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/21': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/22': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/23': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/24': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/25': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/26': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/27': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/28': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/29': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/30': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/31': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/32': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Management 1/1/1': {
'ip_address': '10.10.21.16/24',
'ok': True,
'method': 'manual',
'status': 'up',
'protocol': 'up'
},
'Vlan 1': {
'ip_address': 'unassigned',
'ok': True,
'method': 'unset',
'status': 'up',
'protocol': 'up'
}
}
} |
""" Ex - 095 - Aprimore o desafio 93 para que ele funcione com vários jogadores, incluindo um sistema
de visualização de detalhes do aproveitamento de cada jogador."""
# Como eu fiz.
# T.L.D.:
cad_joga = dict()
gol_part = list()
dad_jgdr = list()
# Area de desenvolvimeno:
while True:
# Código de cadastro dos jogadores:
cad_joga.clear()
gol_part.clear()
cad_joga['nome'] = str(input('Nome do jogador: ')).strip().title()
tot_part = int(input(f'Quantas partidas {cad_joga["nome"]} jogou: '))
for j in range(0, tot_part):
gol_part.append(int(input(f'Quantos gols na {j + 1}º partida: ')))
cad_joga['gols'] = gol_part[:]
tot_gols = sum(gol_part)
cad_joga['totGols'] = tot_gols
dad_jgdr.append(cad_joga.copy())
# Perguntar se o usuario deseja continuar o cadastro de jogadores:
while True:
resp = str(input('Quer continuar? [S/N]: ')).strip().upper()[0]
if resp in 'SN':
break
print('Erro! Por favor selecione uma das opçõe [S/N]: ')
if resp in 'N':
break
# Imprimir os dados para o usuário:
print(f'{"":-^60}')
print(f'{">JOGADORES CADASTRADOS<":^60}')
print(f'{"Código":-<10}{"Nome do Jogador":-<30}{"Total de Gols":->20}')
for i, n in enumerate(dad_jgdr):
print(f'{i+1:.<10}{n["nome"]:.<30}{n["totGols"]:.>20}')
print(f'{"":-^60}')
# Perguntar qual jogador o usuário deseja visializar as partidas detalhadas:
while True:
codigo = int(input('''Digite o código do jogador que quer visualizar
detalhadamente os gols por partida [999 para finaliza]: '''))
for i, n in enumerate(dad_jgdr):
if codigo == i + 1:
print(f'{">PARTIDA DETALHADA<":^60}')
print(f'jogador: {n["nome"]}')
print(f'{"Partida:":-<30}{"Gols:":->30}')
for c, v in enumerate(dad_jgdr[i]['gols']):
print(f'{c + 1}º partida:{v:.>49}')
print(f'{"":=^60}')
else:
print(f'{"":=^60}')
print(f'Não existe jogador com o código {codigo}!')
print(f'{"":=^60}')
if codigo == 999:
break
print(f'{"FINALIZANDO O PROGRAMA!":~^60}')
print(f'{"VOlte sempre!":_^60}')
print(f'FIM...')
|
class UnshortenerOld():
"""
Todo option selenium ?
"""
def __init__(self,
logger=None,
verbose=True,
maxItemCount=100000000,
maxDataSizeMo=10000,
dataDir=None,
seleniumBrowserCount=20,
resetBrowsersRate=0.1,
useSelenium=False,
seleniumBrowsersIsNice=True,
storeAll=False,
readOnly=False,
shortenersDomainsFilePath=None):
self.readOnly = readOnly
self.seleniumBrowsersIsNice = seleniumBrowsersIsNice
self.resetBrowsersRate = resetBrowsersRate
self.seleniumBrowserCount = seleniumBrowserCount
self.shortenersDomainsFilePath = shortenersDomainsFilePath
if self.shortenersDomainsFilePath is None:
self.shortenersDomainsFilePath = getDataDir() + "/Misc/crawling/shorteners.txt"
self.useSelenium = useSelenium
self.storeAll = storeAll
self.maxDataSizeMo = maxDataSizeMo
self.maxItemCount = maxItemCount
self.dataDir = dataDir
if self.dataDir is None:
self.dataDir = getDataDir() + "/Misc/crawling/"
self.fileName = "unshortener-database"
self.urlParser = URLParser()
self.requestCounter = 0
self.verbose = verbose
self.logger = logger
self.data = SerializableDict \
(
self.dataDir, self.fileName,
cleanMaxSizeMoReadModifiedOlder=self.maxDataSizeMo,
limit=self.maxItemCount,
serializeEachNAction=20,
verbose=True
)
self.shortenersDomains = None
self.initShortenersDomains()
self.browsers = None
def initShortenersDomains(self):
if self.shortenersDomains is None:
shorteners = fileToStrList(self.shortenersDomainsFilePath, removeDuplicates=True)
newShorteners = []
for current in shorteners:
current = current.lower()
newShorteners.append(current)
shorteners = newShorteners
self.shortenersDomains = set()
for current in shorteners:
newCurrent = self.urlParser.getDomain(current)
self.shortenersDomains.add(newCurrent)
self.shortenersDomains = list(self.shortenersDomains)
# We filter all by presence of a point:
newShortenersDomains= []
for current in self.shortenersDomains:
if "." in current:
newShortenersDomains.append(current)
self.shortenersDomains = newShortenersDomains
def getUnshortenersDomains(self):
return self.shortenersDomains
def close(self):
self.data.close()
def isShortener(self, url):
smartDomain = self.urlParser.getDomain(url)
return smartDomain in self.shortenersDomains
def isStatusCodeOk(self, statusCode):
if isinstance(statusCode, dict) and dictContains(dict, "statusCode"):
statusCode = statusCode["statusCode"]
return statusCode == 200
def generateSeleniumBrowsers(self):
# We have to reset browsers sometimes because it can take a lot of RAM:
if self.browsers is None or getRandomFloat() < self.resetBrowsersRate:
if self.browsers is not None:
for browser in self.browsers:
browser.quit()
self.browsers = []
def generateRandomBrowser(proxy):
self.browsers.append(Browser(driverType=DRIVER_TYPE.phantomjs, proxy=proxy))
allThreads = []
for i in range(self.seleniumBrowserCount):
theThread = Thread(target=generateRandomBrowser, args=(getRandomProxy(),))
theThread.start()
allThreads.append(theThread)
for theThread in allThreads:
theThread.join()
def getRandomSeleniumBrowser(self):
return random.choice(self.browsers)
def unshort(self, url, force=False, useProxy=True, timeout=20, retryIf407=True):
"""
force as False will check if the given url have to match with a known shorter service
force as True will give the last url for the request...
"""
url = self.urlParser.normalize(url)
smartDomain = self.urlParser.getDomain(url)
if not force and smartDomain not in self.shortenersDomains:
result = \
{
"force": force,
"url": url,
"message": "The domain is not a shortener service!",
"status": -1,
}
return result
if self.data.hasKey(url):
log(url + " was in the Unshortener database!", self)
return self.data.get(url)
elif self.readOnly:
result = \
{
"force": force,
"url": url,
"message": "The url is not in the database and the unshortener was set as read only.",
"status": -2,
}
return result
else:
log("Trying to unshort " + url, self)
proxy = None
if useProxy:
proxy = getRandomProxy()
seleniumFailed = False
if self.useSelenium:
self.generateSeleniumBrowsers()
browser = self.getRandomSeleniumBrowser()
result = browser.html(url)
if result["status"] == REQUEST_STATUS.refused or \
result["status"] == REQUEST_STATUS.timeout:
seleniumFailed = True
logError("Selenium failed to get " + url + "\nTrying with a HTTPBrowser...", self)
else:
result = convertBrowserResponse(result, browser, nice=self.seleniumBrowsersIsNice)
if not self.useSelenium or seleniumFailed:
httpBrowser = HTTPBrowser(proxy=proxy, logger=self.logger, verbose=self.verbose)
result = httpBrowser.get(url)
result["force"] = force
if self.storeAll or result["status"] == 200 or result["status"] == 404:
self.data.add(url, result)
del result["html"]
log("Unshort of " + result["url"] + " : " + str(result["status"]), self)
return result
|
class Solution:
def removeElement(self, nums, val):
count = 0
for i in range(len(nums)):
if nums[i] != val:
nums[count] = nums[i]
count += 1
print(count)
return(count)
obj = Solution()
obj.removeElement([3,2,2,3], 3)
obj.removeElement([0,1,2,2,3,0,4,2], 2) |
# -*- coding: utf-8 -*-
# 获取字符串中匹配子串的最后一个位置
def find_last(string, str):
last_position = -1
while True:
position = string.find(str, last_position+1)
if position == -1:
return last_position
last_position = position
# 将文件名改写成小文件名
def thumbFilePath(filepath):
lastindexofdot = find_last(filepath, '.')
filepath = filepath[:lastindexofdot]+'_thumb'+filepath[lastindexofdot:]
return filepath
|
#!/usr/bin/env python3
class Solution:
def buddStrings(self, A, B):
la, lb = len(A), len(B)
if la != lb:
return False
diff = [i for i in range(la) if A[i] != B[i]]
if len(diff) > 2 or len(diff) == 1:
return False
elif len(diff) == 0 and len(set(A)) == la:
return False
else:
i, j = diff
if A[i] != B[j] or A[j] != B[i]:
return False
return True
|
print('this is the first line of second.py')
for x in range(20):
print(x)
print('this is the chunk of code added to the fourth branch')
print('Im editing this file in GitHub to see if fetch finds it')
print('adding this code to push to the main on the remote repository') |
def count_substring(string, sub_string):
k = len(sub_string)
ans = 0
for i in range(len(string)):
if i+k > len(string):
break
if sub_string == string[i:i+k]:
ans += 1
return ans
if __name__ == '__main__':
string = input().strip()
sub_string = input().strip()
count = count_substring(string, sub_string)
print(count)
|
print("Hello World")
my_name = input("Whats your name? ")
print("Hello " + my_name)
print('Did you know that your name is ' + str(len(my_name)) + ' letters long!')
|
"""
37. How to get the nrows, ncolumns, datatype, summary stats of each column of a dataframe? Also get the array and list equivalent.
"""
"""
Difficulty Level: L2
"""
"""
Get the number of rows, columns, datatype and summary statistics of each column of the Cars93 dataset. Also get the numpy array and list equivalent of the dataframe.
"""
"""
"""
|
#py_screener.py
def screener(user_inp=None):
"""A function to square only floating points.
Returns custom exceptions if an int or complex is encountered."""
#make sure something was input
if not user_inp:
print("Ummm...did you type in ANYTHING?")
return
#If it *might* be a float (has a ".") try to type-cast it and return
if "." in user_inp:
try:
inp_as_float=float(user_inp)
if isinstance(inp_as_float, float):
square = inp_as_float**2
print( "You gave me {}. Its square is: {}".format(user_inp, square))
except:
return
try: #see if we need to return the ComplexException
if "(" in user_inp: #it might be complex if it has a (
inp_as_complex=complex(user_inp)
if isinstance(inp_as_complex, complex):
raise ComplexException(inp_as_complex)
except: #it's not complex
pass
try:
#we already tried to type-cast to float, let's try casting to int
inp_as_integer=int(user_inp)
if isinstance(inp_as_integer, int):
raise IntException(inp_as_integer)
except:
pass
#if we're here, the function hasn't returned anything or raised an exception
print("Done processing {} ".format(user_inp)) |
default_mapping = {
'Recipient Name': 'recipient_name',
'Recipient DUNS Number': 'recipient_unique_id',
'Awarding Agency': 'awarding_toptier_agency_name',
'Awarding Agency Code': 'awarding_toptier_agency_code',
'Awarding Sub Agency': 'awarding_subtier_agency_name',
'Awarding Sub Agency Code': 'awarding_subtier_agency_code',
'Funding Agency': 'funding_toptier_agency_name', # Leave in for possible future use
'Funding Agency Code': 'funding_toptier_agency_code', # Leave in for possible future use
'Funding Sub Agency': 'funding_subtier_agency_name', # Leave in for possible future use
'Funding Sub Agency Code': 'funding_subtier_agency_code', # Leave in for possible future use
'Place of Performance City Code': 'pop_city_code',
'Place of Performance State Code': 'pop_state_code',
'Place of Performance Country Code': 'pop_country_code',
'Place of Performance Zip5': 'pop_zip5',
'Period of Performance Start Date': 'period_of_performance_start_date',
'Period of Performance Current End Date': 'period_of_performance_current_end_date',
'Description': 'description',
'Last Modified Date': 'last_modified_date',
'Base Obligation Date': 'date_signed',
}
award_contracts_mapping = default_mapping.copy()
grant_award_mapping = default_mapping.copy()
loan_award_mapping = default_mapping.copy()
direct_payment_award_mapping = default_mapping.copy()
other_award_mapping = default_mapping.copy()
award_contracts_mapping.update({
'Award ID': 'piid',
'Start Date': 'period_of_performance_start_date',
'End Date': 'period_of_performance_current_end_date',
'Award Amount': 'total_obligation',
'Contract Award Type': 'type_description',
})
grant_award_mapping.update({
'Award ID': 'fain',
'Start Date': 'period_of_performance_start_date',
'End Date': 'period_of_performance_current_end_date',
'Award Amount': 'total_obligation',
'Award Type': 'type_description',
'SAI Number': 'sai_number',
'CFDA Number': 'cfda_number'
})
loan_award_mapping.update({
'Award ID': 'fain',
'Issued Date': 'action_date',
'Loan Value': 'total_loan_value',
'Subsidy Cost': 'total_subsidy_cost',
'SAI Number': 'sai_number',
'CFDA Number': 'cfda_number'
})
direct_payment_award_mapping.update({
'Award ID': 'fain',
'Start Date': 'period_of_performance_start_date',
'End Date': 'period_of_performance_current_end_date',
'Award Amount': 'total_obligation',
'Award Type': 'type_description',
'SAI Number': 'sai_number',
'CFDA Number': 'cfda_number'
})
other_award_mapping.update({
'Award ID': 'fain',
'Start Date': 'period_of_performance_start_date',
'End Date': 'period_of_performance_current_end_date',
'Award Amount': 'total_obligation',
'Award Type': 'type_description',
'SAI Number': 'sai_number',
'CFDA Number': 'cfda_number'
})
award_assistance_mapping = {**grant_award_mapping, **loan_award_mapping, **direct_payment_award_mapping,
**other_award_mapping}
non_loan_assistance_award_mapping = assistance_award_mapping = {**grant_award_mapping, **direct_payment_award_mapping,
**other_award_mapping}
|
class Reporting(object):
def __init__(self, verbose=False, debug=False):
self.verbose_flag = verbose
self.debug_flag = debug
def error(self, msg):
pass
def debug(self, msg):
pass
def verbose(self, msg):
pass
|
def iloc(records, rows=':', cols=':') -> list:
"""A Pandas .iloc-like function.
Args:
records (list): A 2-D list.
rows (str or int): The indices of rows. Default is ':'.
cols (str or int): The indices of columns. Default is ':'.
Returns:
list: The sliced records.
Examples:
>>> l = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
>>> iloc(l)
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
>>> iloc(l, rows=0)
[[1, 2, 3]]
>>> iloc(l, rows=0, cols=0)
[1]
>>> iloc(l, rows='0:1')
[[1, 2, 3]]
>>> iloc(l, rows='1:')
[[4, 5, 6], [7, 8, 9]]
>>> iloc(l, rows=':2')
[[1, 2, 3], [4, 5, 6]]
>>> iloc(l, rows=':', cols='1:')
[[2, 3], [5, 6], [8, 9]]
>>> iloc(l, rows=':', cols=0)
[1, 4, 7]
>>> iloc(l, rows=':', cols='0:1')
[1, 4, 7]
>>> iloc(l, rows=':', cols='0:2')
[[1, 2], [4, 5], [7, 8]]
"""
assert isinstance(records[0], list), 'records must be a 2-D list!'
def _parseColon(ind: str) -> int:
"""Parse colon in rows or cols.
Args:
ind (str): rows or cols
Returns:
int: Then start or/and end of the rows or cols.
Examples:
# ':'.split(':') ---- ['', '']
>>> _parseColon(':')
(0, None)
# '0'.split(':') ---- ['0]
>>> _parseColon(0)
(0, 1)
# '1:'.split(':') ---- ['1', '']
>>> _parseColon('1:')
(1, None)
# ':2'.split(':') ---- ['', '2']
>>> _parseColon(':2')
(0, 2)
# '1:2'.split(':') ---- ['1', '2']
>>> _parseColon('1:2')
(1, 2)
"""
ind = str(ind)
ind = ind.split(':', maxsplit=1)
start = ind[0]
start = int(start) if start != '' else 0
# if no ind[0], end = start+1
end = ind[1] if len(ind) == 2 else start+1
end = int(end) if end != '' else None
return start, end
# Get row_start, row_end
row_start, row_end = _parseColon(rows)
# Get col_start, col_end
col_start, col_end = _parseColon(cols)
# Slice rows
records = records[row_start:row_end]
# Slice columns
if col_end is None:
records = [record[col_start:col_end] for record in records]
elif col_end - col_start != 1:
records = [record[col_start:col_end] for record in records]
else:
records = [record[col_start] for record in records]
return records
|
"""
30 - Crie um programa que leia um número inteiro qualquer e mostre na tela se
ele é par ou ímpar
"""
num = int(input('\033[35mDigite um número qualquer: \033[m'))
if num % 2 == 0:
print(f'O número {num} é \033[34mPAR\033[m')
else:
print(f'O número {num} é \033[34mÍMPAR\033[m.')
|
class Solution:
def isValid(self, s: str) -> bool:
if not s: return True
if len(s) % 2: return False
if s[0] in ']})': return False
maps = {'(':')', '{':'}', '[':']'}
stack = []
for char in s:
if char in '({[':
stack.append(char)
else:
if not stack: return False
else:
temp = stack.pop()
if maps[temp] != char:
return False
return len(stack) == 0
|
fruits = ['pineapple', 'lemon', 'pear', 'watermelon', 'tomato', 'apple']
first, second, *middle, firstlast, last = fruits
print(f'''Первый элемент: {first}
Второй: {second}
Посередине: {middle}
Предпоследний: {firstlast}
Последний: {last}''')
|
#!/usr/bin/python3
# https://practice.geeksforgeeks.org/problems/next-sparse-binary-number/0
def sol(num):
"""
By definition of sparse number two 1s cannot be adjacent but zeroes can be
If two 1s are adjacent and we want to make a bigger number we cannot
make the either of the bits 0, so only option left is we make the third
bit 1 if it is 0 or we add an extra bit
"""
b = list(bin(num)[2:])
b.insert(0, "0")
# We might have to add an extra bit lets add it.
# Adding a zero does not change the number
#print(b)
n = len(b)
i=n-2
while i >= 1:
# Search for the sequence where two adjacents bits are set and the
# third bit to the left is not set and unset all the bits to its right
# including both the set bits
if b[i] == b[i+1] == "1" and b[i-1] == "0":
for j in range(i, n):
b[j] = '0'
b[i-1] = "1"
# Set the third bit
i-=1
num = 0
n = len(b)
#print(b)
for i in range(n):
p = n-1-i
num += int(b[i])*(2**p)
return num
print(sol(3))
print(sol(5))
print(sol(19169))
print(sol(18467))
print(sol(6334))
|
'''
A função inverte strings e coloca todas as letras em maiúsculo:
'''
def fazAlgo(string):
pos = len(string)-1
string = string.upper()
while pos >= 0:
print(string[pos], end="")
pos = pos - 1
fazAlgo("amora")
|
command = input()
kids = 0
adults = 0
while command != "Christmas":
peoples_age = int(command)
if peoples_age <= 16:
kids += 1
elif peoples_age > 16:
adults += 1
command = input()
if command == "Christmas":
total_toys_price = kids * 5
total_sweater_price = adults * 15
print(f"Number of adults: {adults}")
print(f"Number of kids: {kids}")
print(f"Money for toys: {total_toys_price}")
print(f"Money for sweaters: {total_sweater_price}") |
class Solution(object):
def findBestValue(self, arr, target):
arr.sort(reverse = True)
while arr and target >= arr[-1]*len(arr):
temp = arr[-1]
target -= arr.pop()
if not arr:
return temp
res = target / float(len(arr))
if res % 1 > 0.5:
return int(res) + 1
else:
return int(res)
arr = [2,2,2]
target = 10
res = Solution().findBestValue(arr, target)
print(res) |
# Converts RGB to GRB which is needed by the lightstrip
def Color(red, green, blue, white = 0):
"""Convert the provided red, green, blue color to a 24-bit color value.
Each color component should be a value 0-255 where 0 is the lowest intensity
and 255 is the highest intensity.
"""
return (white << 24) | (green << 16)| (red << 8) | blue
def getRGB(color):
r = 0b11111111 & (color >> 8)
g = 0b11111111 & (color >> 16)
b = 0b11111111 & color
return r, g, b
def calcGradient(color1, color2, progress = 0.5):
r1, g1, b1 = getRGB(color1)
r2, g2, b2 = getRGB(color2)
dr = (r2 - r1)
dg = (g2 - g1)
db = (b2 - b1)
return Color(r1 + int(round(dr * progress)), g1 + int(round(dg * progress)), b1 + int(round(db * progress)))
def red(n):
return Color(255, 0, 0)
def green(n):
return Color(0, 255, 0)
def blue(n):
return Color(0, 0, 255)
def clear(n):
return Color(0, 0, 0)
def color(r, g, b):
def colorFunc(n):
return Color(r, g, b)
return colorFunc
def gradient(r1, g1, b1, r2, g2, b2):
dr = (r2 - r1) / 128.0
dg = (g2 - g1) / 128.0
db = (b2 - b1) / 128.0
def gradientFunc(n):
n += 128
n = n & 255
n = abs(128 - n)
return Color(r1 + int(round(dr * n)), g1 + int(round(dg * n)), b1 + int(round(db * n)))
return gradientFunc
def gradient_cycle(r1, g1, b1, r2, g2, b2, length):
default_gradient = gradient(r1, g1, b1, r2, g2, b2)
def gradCycleFunc(n):
return default_gradient(n * 256 // length)
return gradCycleFunc
def rainbow(n):
n = n & 255
n = 255 - n
if n < 85:
return Color(255 - n * 3, 0, n * 3)
elif n < 170:
n -= 85
return Color(0, n * 3, 255 - n * 3)
else:
n -= 170
return Color(n * 3, 255 - n * 3, 0)
def rainbow_cycle(length):
def rainbowCycleFunc(n):
return rainbow(n * 256 // length)
return rainbowCycleFunc
def online_background(connection):
def onlineSetColor(n):
color = connection.getBackgroundColor()
return Color(color['red'], color['green'], color['blue'])
return onlineSetColor
def online_foreground(connection):
def onlineSetColor(n):
color = connection.getForegroundColor()
return Color(color['red'], color['green'], color['blue'])
return onlineSetColor |
"""
Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
"""
class Solution:
"""
@param: head: a ListNode
@param: val: An integer
@return: a ListNode
"""
def removeElements(self, head, val):
if head is None:
return None
# 可能链表中的所有元素val都等于val,所以需要新增一个头节点
new = ListNode(0)
new.next = head
head = new
pre = head
# 遍历链表,删除等于val的所有节点
while pre.next is not None:
if pre.next.val == val:
pre.next = pre.next.next
else:
pre = pre.next
return new.next
|
class MockRequests:
def __init__(self, ok=True, json_data=None):
self.ok = ok
self.json_data = json_data
self.get_method_called = False
def __call__(self, *args, **kwargs):
self.get_method_called = True
self.response = MockResponse(json_data=self.json_data)
return self.response
class MockResponse:
def __init__(self, ok=True, json_data=None):
self.ok = ok
self.json_method_called = False
self.json_data = json_data
def json(self):
self.json_method_called = True
return self.json_data
class MockRedis:
def __init__(self, get_data=None):
self.get_data = get_data
self.get_method_called = False
self.set_method_called = False
def get(self, *args, **kwargs):
self.get_method_called = True
return self.get_data
def set(self, *args, **kwargs):
self.set_method_called = True
def __call__(self, *args, **kwargs):
return self
|
# -*- coding: utf-8 -*-
class Solution:
def minCostToMoveChips(self, chips):
count_even, count_odd = 0, 0
for chip in chips:
if chip % 2 == 0:
count_even += 1
else:
count_odd += 1
return min(count_even, count_odd)
if __name__ == '__main__':
solution = Solution()
assert 1 == solution.minCostToMoveChips([1, 2, 3])
assert 2 == solution.minCostToMoveChips([2, 2, 2, 3, 3])
|
"""Module for user service exceptions"""
__all__ = [
'UserNotFoundException',
'UserIsExistsException',
]
class UserNotFoundException(Exception):
"""Indicates that user not found
Args:
message: Detailed message
"""
def __init__(self, message: str) -> None:
self.message = message
class UserIsExistsException(Exception):
"""Indicates that user is already exists in database
Args:
message: Detailed message
"""
def __init__(self, message: str) -> None:
self.message = message
|
def _copy_cmd(ctx, file_list, target_dir):
dest_list = []
if file_list == None or len(file_list) == 0:
return dest_list
shell_content = ""
batch_file_name = "%s-copy-files.bat" % (ctx.label.name)
bat = ctx.actions.declare_file(batch_file_name)
src_file_list = []
for (src_file, relative_dest_file) in file_list:
src_file_list.append(src_file)
dest_file = ctx.actions.declare_file("{}/{}".format(target_dir, relative_dest_file))
dest_list.append(dest_file)
shell_content += "@copy /Y \"%s\" \"%s\" >NUL\n" % (
src_file.path.replace("/", "\\"),
dest_file.path.replace("/", "\\"),
)
ctx.actions.write(
output = bat,
content = shell_content,
is_executable = True,
)
ctx.actions.run(
inputs = src_file_list,
tools = [bat],
outputs = dest_list,
executable = "cmd.exe",
arguments = ["/C", bat.path.replace("/", "\\")],
mnemonic = "CopyFile",
progress_message = "Copying files",
use_default_shell_env = True,
)
return dest_list
def _copy_bash(ctx, src_list, target_dir):
dest_list = []
for (src_file, relative_dest_file) in src_list:
dest_file = ctx.actions.declare_file("{}/{}".format(target_dir, relative_dest_file))
dest_list.append(dest_file)
ctx.actions.run_shell(
tools = [src_file],
outputs = [dest_file],
command = "cp -f \"$1\" \"$2\"",
arguments = [src_file.path, dest_file.path],
mnemonic = "CopyFile",
progress_message = "Copying files",
use_default_shell_env = True,
)
return dest_list
def copy_files(ctx, file_list, base_dest_directory, is_windows):
dest_list = []
if is_windows:
dest_list = _copy_cmd(ctx, file_list, base_dest_directory)
else:
dest_list = _copy_bash(ctx, file_list, base_dest_directory)
return dest_list
|
class Enum(object):
@classmethod
def parse(cls, value):
options = cls.options()
result = []
for k, v in options.items():
if type(v) is not int or v == 0:
continue
if value == 0 or (value & v) == v:
result.append(v)
return result
@classmethod
def options(cls):
result = {}
for key in dir(cls):
if key.startswith('_'):
continue
result[key] = getattr(cls, key)
return result
class Media(Enum):
All = 0
Movies = 1
Shows = 2
Seasons = 4
Episodes = 8
Lists = 16
__map__ = None
@classmethod
def get(cls, key):
if cls.__map__ is None:
cls.__map__ = {
Media.Movies: 'movies',
Media.Shows: 'shows',
Media.Seasons: 'seasons',
Media.Episodes: 'episodes',
Media.Lists: 'lists'
}
return cls.__map__.get(key)
class Data(Enum):
All = 0
Collection = 1
Playback = 2
Ratings = 4
Watched = 8
Watchlist = 16
# Lists
Liked = 32
Personal = 64
__attributes__ = None
__map__ = None
@classmethod
def initialize(cls):
if cls.__attributes__:
return
cls.__attributes__ = {
Data.Collection: {
'interface': 'sync/collection',
'timestamp': 'collected_at'
},
Data.Playback: {
'interface': 'sync/playback',
'timestamp': 'paused_at'
},
Data.Ratings: {
'interface': 'sync/ratings',
'timestamp': 'rated_at'
},
Data.Watched: {
'interface': 'sync/watched',
'timestamp': 'watched_at'
},
Data.Watchlist: {
'interface': 'sync/watchlist',
'timestamp': 'watchlisted_at'
},
# Lists
Data.Liked: {
'interface': 'users/likes',
'timestamp': 'updated_at'
},
Data.Personal: {
'interface': 'users/*/lists',
'timestamp': 'updated_at'
}
}
@classmethod
def get(cls, key):
if cls.__map__ is None:
cls.__map__ = {
Data.Collection: 'collection',
Data.Playback: 'playback',
Data.Ratings: 'ratings',
Data.Watched: 'watched',
Data.Watchlist: 'watchlist',
# Lists
Data.Liked: 'liked',
Data.Personal: 'personal'
}
return cls.__map__.get(key)
@classmethod
def get_interface(cls, key):
return cls.get_attribute(key, 'interface')
@classmethod
def get_timestamp_key(cls, key):
return cls.get_attribute(key, 'timestamp')
@classmethod
def get_attribute(cls, key, attribute):
cls.initialize()
attributes = cls.__attributes__.get(key)
if not attributes:
return None
return attributes.get(attribute) |
class Model:
def __init__(self):
pass
class Optimizer:
def __init__(self):
pass
|
currency = {
'GDP' : 1.3,
'EUR' : 1.08,
'USD' : 1.0,
'AUD' : 0.66,
'JPY' : 0.0090
}
while True:
intialcur = str(input('Please Enter the currency you want to convert from\n: ')).upper()
while True:
if intialcur in currency:
break
else:
intialcur = str(input('Not in list. Please Enter the currency you want to convert from\n: ')).upper()
intialvalue = input('Please enter the amount of that currency\n: ')
while True:
try:
float(intialvalue)
break
except ValueError:
intialvalue = input('Not a number. Please enter the amount of that currency\n: ')
finalcur = str(input('Enter the currency you want to convert this to\n: ')).upper()
while True:
if finalcur in currency:
break
else:
finalcur = str(input('Not in list. Please Enter the currency you want to convert from\n: ')).upper()
finalvalue = (float(currency.get(str(intialcur))) * float(intialvalue)) / float(currency.get(str(finalcur)))
print(finalvalue)
decision = input('Would you like to convert more values?').lower()
if decision == 'no':
print('Goodbye')
exit()
elif decision != 'no' and decision != 'yes':
decision = input('Would you like to convert more values? Please enter yes or no\n: ').lower() |
"""
Implementation of a specific learning rate scheduler for GANs.
"""
class DRS_LRScheduler:
"""
Learning rate scheduler for training GANs. Supports GAN specific LR scheduling
policies, such as the linear decay policy using in SN-GAN paper as based on the
original chainer implementation. However, one could safely ignore this class
and instead use the official PyTorch scheduler wrappers around a optimizer
for other scheduling policies.
Attributes:
lr_decay (str): The learning rate decay policy to use.
optD (Optimizer): Torch optimizer object for discriminator.
optG (Optimizer): Torch optimizer object for generator.
num_steps (int): The number of training iterations.
lr_D (float): The initial learning rate of optD.
lr_G (float): The initial learning rate of optG.
"""
def __init__(self,
lr_decay,
optimizers,
num_steps,
start_step=0,
**kwargs):
if lr_decay not in [None, 'None', 'linear']:
raise NotImplementedError(
"lr_decay {} is not currently supported.")
self.lr_decay = lr_decay
self.optimizers = optimizers
self.num_steps = num_steps
self.start_step = start_step
# Cache the initial learning rate for uses later
self.lrs = [opt.param_groups[0]['lr'] for opt in optimizers]
def linear_decay(self, optimizer, global_step, lr_value_range,
lr_step_range):
"""
Performs linear decay of the optimizer learning rate based on the number of global
steps taken. Follows SNGAN's chainer implementation of linear decay, as seen in the
chainer references:
https://docs.chainer.org/en/stable/reference/generated/chainer.training.extensions.LinearShift.html
https://github.com/chainer/chainer/blob/v6.2.0/chainer/training/extensions/linear_shift.py#L66
Note: assumes that the optimizer has only one parameter group to update!
Args:
optimizer (Optimizer): Torch optimizer object to update learning rate.
global_step (int): The current global step of the training.
lr_value_range (tuple): A tuple of floats (x,y) to decrease from x to y.
lr_step_range (tuple): A tuple of ints (i, j) to start decreasing
when global_step > i, and until j.
Returns:
float: Float representing the new updated learning rate.
"""
# Compute the new learning rate
v1, v2 = lr_value_range
s1, s2 = lr_step_range
if global_step <= s1:
updated_lr = v1
elif global_step >= s2:
updated_lr = v2
else:
scale_factor = (global_step - s1) / (s2 - s1)
updated_lr = v1 + scale_factor * (v2 - v1)
# Update the learning rate
optimizer.param_groups[0]['lr'] = updated_lr
return updated_lr
def step(self, log_data, global_step):
"""
Takes a step for updating learning rate and updates the input log_data
with the current status.
Args:
log_data (MetricLog): Object for logging the updated learning rate metric.
global_step (int): The current global step of the training.
Returns:
MetricLog: MetricLog object containing the updated learning rate at the current global step.
"""
for idx, (opt, init_lr) in enumerate(zip(self.optimizers, self.lrs)):
if self.lr_decay == "linear":
lr = self.linear_decay(
optimizer=opt,
global_step=global_step,
lr_value_range=(init_lr, 0.0),
lr_step_range=(self.start_step,
self.num_steps))
elif self.lr_decay in [None, "None"]:
lr = init_lr
# Update metrics log
log_data.add_metric(f'lr_{idx}', lr, group='lr', precision=6)
return log_data
|
n, a, b = map(int, input().split())
ans = 0
for i in range(1, n+1):
str_i = str(i)
sum = 0
for j in range(len(str_i)):
sum += int(str_i[j])
if a <= sum <= b:
ans +=i
print(ans)
|
VERSION = "0.0.2"
VERSION_GUI = "0.0.2"
VERSION_CUI = "0.0.0"
VERSION_AUDIOCABLE = "0.0.2"
VERSION_ROUTE = "0.0.2"
VERSION_SETINGS = "0.0.1"
CALLBACK_AUDIOCABLE_SELECTED = None
CALLBACK_ROUTE_SELECTED = None
SETTINGS = None
CONFIGURATION = None
PATH_ROOT = ""
PATH_SETTINGS = "" |
class ItemContainerGenerator(
object,
IRecyclingItemContainerGenerator,
IItemContainerGenerator,
IWeakEventListener,
):
""" Generates the user interface (UI) on behalf of its host,such as an�System.Windows.Controls.ItemsControl. """
def ContainerFromIndex(self, index):
"""
ContainerFromIndex(self: ItemContainerGenerator,index: int) -> DependencyObject
Returns the element corresponding to the item at the given index within the
System.Windows.Controls.ItemCollection.
index: The index of the desired item.
Returns: Returns the element corresponding to the item at the given index within the
System.Windows.Controls.ItemCollection or returns null if the item is not realized.
"""
pass
def ContainerFromItem(self, item):
"""
ContainerFromItem(self: ItemContainerGenerator,item: object) -> DependencyObject
Returns the System.Windows.UIElement corresponding to the given item.
item: The System.Object item to find the System.Windows.UIElement for.
Returns: A System.Windows.UIElement that corresponds to the given item. Returns null if the item does not
belong to the item collection,or if a System.Windows.UIElement has not been generated for it.
"""
pass
def GenerateBatches(self):
""" GenerateBatches(self: ItemContainerGenerator) -> IDisposable """
pass
def IndexFromContainer(self, container, returnLocalIndex=None):
"""
IndexFromContainer(self: ItemContainerGenerator,container: DependencyObject,returnLocalIndex: bool) -> int
IndexFromContainer(self: ItemContainerGenerator,container: DependencyObject) -> int
Returns the index to an item that corresponds to the specified,generated
System.Windows.UIElement.
container: The System.Windows.DependencyObject that corresponds to the item to the index to be returned.
Returns: An System.Int32 index to an item that corresponds to the specified,generated
System.Windows.UIElement or -1 if container is not found.
"""
pass
def ItemFromContainer(self, container):
"""
ItemFromContainer(self: ItemContainerGenerator,container: DependencyObject) -> object
Returns the item that corresponds to the specified,generated System.Windows.UIElement.
container: The System.Windows.DependencyObject that corresponds to the item to be returned.
Returns: A System.Windows.DependencyObject that is the item which corresponds to the specified,generated
System.Windows.UIElement. If the System.Windows.UIElement has not been generated,
System.Windows.DependencyProperty.UnsetValue is returned.
"""
pass
def __init__(self, *args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __repr__(self, *args):
""" __repr__(self: object) -> str """
pass
Items = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Items(self: ItemContainerGenerator) -> ReadOnlyCollection[object]
"""
Status = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""The generation status of the System.Windows.Controls.ItemContainerGenerator.
Get: Status(self: ItemContainerGenerator) -> GeneratorStatus
"""
ItemsChanged = None
StatusChanged = None
|
def xor_reverse(iterable):
lenght = len(iterable)
i = 0
while i < lenght // 2:
iterable[i] ^= iterable[lenght - i - 1]
iterable[lenght - i - 1] ^= iterable[i]
iterable[i] ^= iterable[lenght - i - 1]
i += 1
return iterable
|
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# pylint: disable=line-too-long
def load_arguments(commands_loader, _):
with commands_loader.argument_context('apim api policy') as c:
c.argument('api_id', options_list=['--api-id', '-a'], help='API revision identifier. Must be unique in the current API Management service instance.')
c.argument('xml', options_list=['--xml-value', '-v'], help='The XML document value inline as a non-XML encoded string.')
c.argument('xml_path', options_list=['--xml-file', '-f'], help='The path to the policy XML document.')
c.argument('xml_uri', options_list=['--xml-uri', '-u'], help='The URI of the policy XML document from an HTTP endpoint accessible from the API Management service.')
|
# Variables that contain the user credentials to access Twitter API.
ACCESS_TOKEN = "570634225-AnsM63tVCpI4yeFwpj6QfSJTwm3pUx6onf30fI2Z"
ACCESS_TOKEN_SECRET = "ykA5CW0lWpl3VDiIRqJ5rhJjsQc6fyt0pps22tLAywXUJ"
CONSUMER_KEY = "iRwp1I7vH0cBoWNIO5w0uxURN"
CONSUMER_SECRET = "5rA8XDisNbzwTueiCiZG7JXEZe5T4HRiwLbFjWMTWlyNoU35r4"
|
def split_data(input, output, validation_percentage=0.1):
num_sets = output.shape[0]
num_validation = int(num_sets * validation_percentage)
return (input[:-num_validation], output[:-num_validation]), (input[-num_validation:], output[-num_validation:])
|
class Solution:
def maxProfit(self, prices: List[int]) -> int:
# 1st solution
# O(n) time | O(1) space
profit = 0
start = prices[0]
end = start
for i, price in enumerate(prices):
if price >= end and i < len(prices) - 1:
end = price
else:
if price >= end:
profit += price - start
elif end > start:
profit += end - start
start = price
end = start
return profit
# 2nd Solution
# O(n) time | O(1) space
total = 0
for i in range(len(prices) - 1):
curProfit = prices[i + 1] - prices[i]
if curProfit > 0:
total += curProfit
return total
|
class Stat:
def __init__(self):
self.sum = {}
self.sum_square = {}
self.count = {}
def add(self, key, value):
self.count[key] = self.count.get(key, 0) + 1
self.sum[key] = self.sum.get(key, 0.0) + value
self.sum_square[key] = self.sum_square.get(key, 0.0) + value ** 2
def add_dict(self, dict):
for key in dict:
self.add(key, dict[key])
def print_stat(self):
for key in self.count:
name = key
count = self.count[key]
sum = self.sum[key]
square = self.sum_square[key]
avg = sum / count
std = (square / count - (avg) ** 2) ** 0.5
print("%s - count %d avg %.2g std %.2g" % (name, count, avg, std))
def get_count(self, keys):
return {key: self.count.get(key, 0) for key in keys}
def get_avg(self, keys):
return {key: self.sum.get(key, 0) / self.count.get(key, 0) for key in keys if self.count.get(key, 0) != 0}
def get_std(self, keys):
return {key: (self.square.get(key, 0) / self.sum.get(key, 0) - (
self.sum.get(key, 0) / self.count.get(key, 0)) ** 2) ** 0.5 for key in keys if key in self.count}
|
class Object:
"""
Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.
object()
"""
def __delattr__(self,*args):
""" __delattr__(self: object,name: str) """
pass
def __format__(self,*args):
""" __format__(self: object,formatSpec: str) -> str """
pass
def __getattribute__(self,*args):
""" __getattribute__(self: object,name: str) -> object """
pass
def __hash__(self,*args):
""" x.__hash__() <==> hash(x) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
@staticmethod
def __new__(self):
"""
__new__(cls: type,**kwargs�: dict,*args�: Array[object]) -> object
__new__(cls: type,*args�: Array[object]) -> object
__new__(cls: type) -> object
"""
pass
def __reduce_ex__(self,*args):
pass
def __reduce__(self,*args):
""" helper for pickle """
pass
def __repr__(self,*args):
""" __repr__(self: object) -> str """
pass
def __setattr__(self,*args):
""" __setattr__(self: object,name: str,value: object) """
pass
def __sizeof__(self,*args):
""" __sizeof__(self: object) -> int """
pass
def __str__(self,*args):
pass
def __subclasshook__(self,*args):
""" __subclasshook__(*args: Array[object]) -> NotImplementedType """
pass
__class__=None
|
BUY = 1
SALE = 2
OrderType = [
(BUY, 'BUY'),
(SALE, 'SALE')
] |
# A function with Behavior That varies Over Time
# A function compound value have a body and a parent frame
# The parent frame contains the balance, the local state of the withdraw function
# Non-Local Assignment & Persistent Local State
# Work for python 3
def make_withdraw(balance):
""" Return a withdraw function with a starting balance."""
def withdraw(amount):
nonlocal balance # Declare the name "balance" nonlocal at the top of the body
# of the function which it is re-assigned
if amount > balance:
return 'Insufficient funds'
balance = balance - amount #Re-bind balance in the first non-local frame in which
#it was bound previously
return balance
def deposit(amount):
nonlocal balance
balance = balance + amount
return balance
return withdraw, deposit
# nonlocal <name>
# Effect: future assignments to that name change its pre-existing binding in the first non-local frame of the current environment
# Alternative 2.7
def make_withdraw(balance):
""" Return a withdraw function with a starting balance."""
balance = [balance]
def withdraw(amount):
if amount > balance[0]:
return 'Insufficient funds'
balance[0] = balance[0] - amount
return balance[0]
def deposit(amount):
balance[0] = balance[0] + amount
return balance[0]
return withdraw, deposit
|
num = 1
val = 2
val2 = 333333
val2 = 333
val3 = 55555
|
PROFILE = {
"reciepientsFullName": "Max Mustermann",
"lastName": "Mustermann",
"title": "Mr.",
"reciepientsAddress": "Musterstraße 11",
"zipCode": "123456",
"city": "Musterhausen",
"IBAN": "DE07123412341234123412"
}
NF_FORM = {
"proc_agency": "USAG Grafenwoehr,<br>HQUSAG Grafenwoer,<br>Tax Relieve Office MWW,<br>Tax Reliev, Unit 2810",
"ocr_OrderNr": "GR-NF1-189559",
"ocr_ValidFrom": "09-2021",
"ocr_ValidUntil": "09-2022",
}
INVOICE = {
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"InvoiceNr": "A-10000-01-2109-GR-NF1-189559.1",
"Period": "August 2021",
"Date": "1.10.2021"
}
RECEITS = [
{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
},
{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
},
{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
},
{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
},
{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
},{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
}
]
TESTINPUT = {
"title": f"Sammelrechnung {INVOICE['InvoiceNr']}",
"profile": PROFILE,
"nf_form": NF_FORM,
"invoice": INVOICE,
"receits": RECEITS
} |
print('-*-'*20)
print('Analisador de triângulos ')
print('-*-'*20)
r1=float(input('Primeiro segmento:'))
r2=float(input('Segundo segmento:'))
r3=float(input('Terceiro segmento:'))
if r1<r2+r3 and r2<r1+r3 and r3<r1+r2:
print('Os segmentos acima podem formar um triangulo')
else:
print('Os segmentos acima não podem formar um triangulo')
|
# Дано предложение. Удалить из него все буквы о, стоящие на нечетных местах.
# !/usr/bin/env python3
# -*- coding: utf-8 -*-
if __name__ == '__main__':
n = str(input("Предложение - "))
m = len(n)
for i in range(1, m):
i = str(i)
if n.find(i) % 2 == 1:
n = n.replace('о', '')
print(n)
|
#--- Exercício 2 - Dicionários
#--- Escreva um programa que leia os dados de 11 jogadores
#--- Jogador: Nome, Posicao, Numero, PernaBoa
#--- Crie um dicionario para armazenar os dados
#--- Imprima todos os jogadores e seus dados
#--- Resolução Nicole Gruber
lista_jogadores=[]
for i in range(1,3):
Nome=input('Digite o nome do jogador: ')
Posicao=input('Digite a posiçao do jogador: ')
Numero=input('Digite o numero do jogador: ')
PernaBoa=input('Digite a Perna Boa do jogador: ')
dicionario = {'Nome': Nome, 'Posicao': Posicao, 'Numero': Numero, 'PernaBoa': PernaBoa}
lista_jogadores.append(dicionario)
for dicionario in lista_jogadores:
print(f"Nome={dicionario['Nome']}, Posiçao={dicionario['Posicao']}, Numero={dicionario['Numero']}, PernaBoa {dicionario['PernaBoa']}") |
oa = ord('a')
def word_score(word):
return sum((ord(letter) - oa + 1) for letter in word)
def high(s):
print(s)
return max(s.split(), key=word_score)
|
""" 01
E os 10% do garçom?**
Defina uma variável para o valor de uma refeição que custou R$ 42,54;
Defina uma variável para o valor da taxa de serviço que é de 10%;
Defina uma variável que calcula o valor total da conta e exiba-o no console com essa
formatação: R$ XXXX.XX.
"""
valor = 42.54
taxa = 10
total = valor + ((valor*taxa)/100)
print(f'O valor total é: R$ {total:.2f}') |
# table definition
table = {
'table_name' : 'adm_tax_cats',
'module_id' : 'adm',
'short_descr' : 'Sales tax categories',
'long_descr' : 'Sales tax categories',
'sub_types' : None,
'sub_trans' : None,
'sequence' : ['seq', [], None],
'tree_params' : None,
'roll_params' : None,
'indexes' : None,
'ledger_col' : None,
'defn_company' : None,
'data_company' : None,
'read_only' : False,
}
# column definitions
cols = []
cols.append ({
'col_name' : 'row_id',
'data_type' : 'AUTO',
'short_descr': 'Row id',
'long_descr' : 'Row id',
'col_head' : 'Row',
'key_field' : 'Y',
'data_source': 'gen',
'condition' : None,
'allow_null' : False,
'allow_amend': False,
'max_len' : 0,
'db_scale' : 0,
'scale_ptr' : None,
'dflt_val' : None,
'dflt_rule' : None,
'col_checks' : None,
'fkey' : None,
'choices' : None,
})
cols.append ({
'col_name' : 'created_id',
'data_type' : 'INT',
'short_descr': 'Created id',
'long_descr' : 'Created row id',
'col_head' : 'Created',
'key_field' : 'N',
'data_source': 'gen',
'condition' : None,
'allow_null' : False,
'allow_amend': False,
'max_len' : 0,
'db_scale' : 0,
'scale_ptr' : None,
'dflt_val' : '0',
'dflt_rule' : None,
'col_checks' : None,
'fkey' : None,
'choices' : None,
})
cols.append ({
'col_name' : 'deleted_id',
'data_type' : 'INT',
'short_descr': 'Deleted id',
'long_descr' : 'Deleted row id',
'col_head' : 'Deleted',
'key_field' : 'N',
'data_source': 'gen',
'condition' : None,
'allow_null' : False,
'allow_amend': False,
'max_len' : 0,
'db_scale' : 0,
'scale_ptr' : None,
'dflt_val' : '0',
'dflt_rule' : None,
'col_checks' : None,
'fkey' : None,
'choices' : None,
})
cols.append ({
'col_name' : 'tax_cat',
'data_type' : 'TEXT',
'short_descr': 'Tax category',
'long_descr' : 'Tax category',
'col_head' : 'Cat',
'key_field' : 'A',
'data_source': 'input',
'condition' : None,
'allow_null' : False,
'allow_amend': False,
'max_len' : 8,
'db_scale' : 0,
'scale_ptr' : None,
'dflt_val' : None,
'dflt_rule' : None,
'col_checks' : None,
'fkey' : None,
'choices' : None,
})
cols.append ({
'col_name' : 'descr',
'data_type' : 'TEXT',
'short_descr': 'Description',
'long_descr' : 'Description',
'col_head' : 'Description',
'key_field' : 'N',
'data_source': 'input',
'condition' : None,
'allow_null' : False,
'allow_amend': True,
'max_len' : 30,
'db_scale' : 0,
'scale_ptr' : None,
'dflt_val' : None,
'dflt_rule' : None,
'col_checks' : None,
'fkey' : None,
'choices' : None,
})
cols.append ({
'col_name' : 'seq',
'data_type' : 'INT',
'short_descr': 'Sequence',
'long_descr' : 'Sequence',
'col_head' : 'Seq',
'key_field' : 'N',
'data_source': 'seq',
'condition' : None,
'allow_null' : False,
'allow_amend': True,
'max_len' : 0,
'db_scale' : 0,
'scale_ptr' : None,
'dflt_val' : None,
'dflt_rule' : None,
'col_checks' : None,
'fkey' : None,
'choices' : None,
})
cols.append ({
'col_name' : 'scale',
'data_type' : 'INT',
'short_descr': 'No of decimals',
'long_descr' : 'No of decimals',
'col_head' : 'Scale',
'key_field' : 'N',
'data_source': 'input',
'condition' : None,
'allow_null' : False,
'allow_amend': False,
'max_len' : 0,
'db_scale' : 0,
'scale_ptr' : None,
'dflt_val' : '2',
'dflt_rule' : None,
'col_checks' : None,
'fkey' : None,
'choices' : None,
})
cols.append ({
'col_name' : 'gl_code_id',
'data_type' : 'INT',
'short_descr': 'Gl account code',
'long_descr' : 'Gl account code',
'col_head' : 'Gl acc',
'key_field' : 'N',
'data_source': 'null_if',
'condition' : [['where', '', '_param.gl_integration', 'is', '$False', '']],
'allow_null' : True, # null means 'not integrated to g/l'
'allow_amend': [['where', '', '$value', 'is', '$None', '']],
'max_len' : 0,
'db_scale' : 0,
'scale_ptr' : None,
'dflt_val' : None,
'dflt_rule' : None,
'col_checks' : [
[
'gl_code',
'G/l code required if gl integration specified',
[
['check', '(', '_param.gl_integration', 'is', '$False', ''],
['and', '', '$value', 'is', '$None', ')'],
['or', '(', '_param.gl_integration', 'is', '$True', ''],
['and', '', '$value', 'is not', '$None', ')'],
],
],
],
'fkey' : ['gl_codes', 'row_id', 'gl_code', 'gl_code', False, 'gl_codes'],
'choices' : None,
})
cols.append ({
'col_name' : 'location_row_id',
'data_type' : 'INT',
'short_descr': 'Location row id',
'long_descr' : 'Location row id. If gl integration, must be subset of gl_code_id>valid_loc_ids.',
'col_head' : 'Location',
'key_field' : 'N',
'data_source': 'dflt_if',
'condition' : [['where', '', '_param.location_row_id', 'is not', '$None', '']],
'allow_null' : False,
'allow_amend': False,
'max_len' : 0,
'db_scale' : 0,
'scale_ptr' : None,
'dflt_val' : None,
'dflt_rule' : (
'<case>'
'<compare test="[[`if`, ``, `_param.location_row_id`, `is not`, `$None`, ``]]">'
'<fld_val name="_param.location_row_id"/>'
'</compare>'
'<compare test="[[`if`, ``, `gl_code_id`, `is not`, `$None`, ``]]">'
'<case>'
'<compare test="[[`if`, ``, `gl_code_id>valid_loc_ids>is_leaf`, `is`, `$True`, ``]]">'
'<fld_val name="gl_code_id>valid_loc_ids"/>'
'</compare>'
'</case>'
'</compare>'
'<default>'
'<fld_val name="_param.dflt_loc_row_id"/>'
'</default>'
'</case>'
),
'col_checks' : [
[
'location_code',
'Invalid location',
[
['check', '', '_param.gl_integration', 'is', '$False', ''],
['or', '', '$value', '=', 'gl_code_id>valid_loc_ids', ''],
['or', '', '$value', 'pyfunc',
'db.checks.valid_loc_id,"gl_code_id"', ''],
],
],
],
'fkey' : ['adm_locations', 'row_id', 'location_id', 'location_id', False, 'locs'],
'choices' : None,
})
cols.append ({
'col_name' : 'function_row_id',
'data_type' : 'INT',
'short_descr': 'Function row id',
'long_descr' : 'Function row id. If gl integration, must be subset of gl_code_id>valid_fun_ids.',
'col_head' : 'Function',
'key_field' : 'N',
'data_source': 'dflt_if',
'condition' : [['where', '', '_param.function_row_id', 'is not', '$None', '']],
'allow_null' : False,
'allow_amend': False,
'max_len' : 0,
'db_scale' : 0,
'scale_ptr' : None,
'dflt_val' : '{_param.function_row_id}',
'dflt_rule' : (
'<case>'
'<compare test="[[`if`, ``, `_param.function_row_id`, `is not`, `$None`, ``]]">'
'<fld_val name="_param.function_row_id"/>'
'</compare>'
'<compare test="[[`if`, ``, `gl_code_id`, `is not`, `$None`, ``]]">'
'<case>'
'<compare test="[[`if`, ``, `gl_code_id>valid_fun_ids>is_leaf`, `is`, `$True`, ``]]">'
'<fld_val name="gl_code_id>valid_fun_ids"/>'
'</compare>'
'</case>'
'</compare>'
'<default>'
'<fld_val name="_param.dflt_fun_row_id"/>'
'</default>'
'</case>'
),
'col_checks' : [
[
'function_code',
'Invalid function',
[
['check', '', '_param.gl_integration', 'is', '$False', ''],
['or', '', '$value', '=', 'gl_code_id>valid_fun_ids', ''],
['or', '', '$value', 'pyfunc',
'db.checks.valid_fun_id,"gl_code_id"', ''],
],
],
],
'fkey' : ['adm_functions', 'row_id', 'function_id', 'function_id', False, 'funs'],
'choices' : None,
})
# virtual column definitions
virt = []
# cursor definitions
cursors = []
cursors.append({
'cursor_name': 'tax_cats',
'title': 'Maintain sales tax categories',
'columns': [
['tax_cat', 80, False, False],
['descr', 200, True, False],
['scale', 80, False, False],
],
'filter': [],
'sequence': [['seq', False]],
})
# actions
actions = []
|
li = []
nli = []
n = int(input())
for i in range(n):
li.append(input())
nli.append([i])
a=0
#print(nli)
for i in range(n-1):
a,b = map(int,input().split())
a-=1
b-=1
nli[a]+=nli[b]
nli[b] = []
res = ""
for i in range(n):
print(li[nli[a][i]],sep='',end='') |
"""nbgrader_schema
Revision ID: e43177bfe90b
Revises:
Create Date: 2021-09-11 04:07:31.804665+00:00
"""
# revision identifiers, used by Alembic.
revision = 'e43177bfe90b'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
pass
def downgrade():
pass
|
#!/usr/bin/env python
"""
trie.py: contains the definition and declaration of the trie class
"""
__author__ = "Shivchander Sudalairaj"
__email__ = "sudalasr@mail.uc.edu"
class Trie:
"""
Trie/Prefix Tree data structure to efficiently load the dictionary of all valid words
https://en.wikipedia.org/wiki/Trie
"""
def __init__(self):
self.trie = {}
self.terminator = '$'
def insert_word(self, word):
"""
inserts a word as a new branch or updates a branch to the trie
:param word: str - word to be added
:return: None
"""
curr_node = self.trie
for letter in word:
curr_node = curr_node.setdefault(letter, {})
curr_node[self.terminator] = word
def word_exists(self, word):
"""
walks through the trie to check if the word is present
:param word: word to be searched
:return: bool - whether the word is found
"""
curr_node = self.trie
for ch in word:
if ch not in curr_node:
return False
curr_node = curr_node[ch]
if self.terminator in curr_node:
return curr_node['$'] == word
else:
return False
|
names = ['John', 'Mary']
print(names)
names[0], names[1] = names[1], names[0]
print(names) |
#utf-8
#Exercício 14 do curso em vídeo de Python
celsius = float((input('Informe a temperatura em °C: ')))
#transformando de celsius para fahrenheit
fahr = (celsius * 9/5) + 32
print('A temperatura de {}°C corresponde a {}°F!'.format(celsius, fahr))
|
number = int(input())
for numbers in range(1111, 9999):
is_Magic = True
number_as_string = str(numbers)
for digit in number_as_string:
if int(digit) == 0:
is_Magic = False
break
elif number % int(digit) != 0:
is_Magic = False
break
if is_Magic:
print(f"{number_as_string}", end=" ") |
total = contV = mv = 0
nomeMB = ' '
while True:
print('-'*20)
print('LOJA SUPER BARATÃO')
print('-'*20)
nome = str(input('Nome do produto: '))
valor = float(input('Preço: R$'))
total += valor
if valor >= 1000:
contV +=1
if mv == 0 or valor < mv:
mv = valor
nomeMB = nome
resp = ' '
while resp not in 'SN':
resp = str(input('Quer continuar? [S/N] ')).upper().strip()[0]
if resp in 'Nn':
break
print('-'*10,'FIM DO PROGRAMA','-'*10)
print(f'''O valor total foi de {total:.2f}
temos {contV} custando mais de 1.000.00
O produto mais barato foi {nomeMB} que custa R${mv:.2f}''')
|
idvelho = 0
nmvelho = ''
idade = 0
media = 0
contM = 0
sexo = ''
for p in range(1, 5) :
print('---- {}° PESSOA ----'.format(p))
nome = str(input('Nome: '))
idade = int(input('Idade: '))
media += idade
sexo = str(input('Sexo [M/F]: '))
if p == 1 and sexo in 'Mm' :
idvelho = idade
nmvelho = nome
if sexo in 'Mm' and idade > idvelho :
idvelho = idade
nmvelho = nome
if sexo in 'Ff' and idade < 20 :
contM += 1
print('-=' * 20)
print('A média de idade do grupo é de {} anos'.format(media / 4))
print('O homem mais velho tem {} anos e se chama {}.'.format(idvelho, nmvelho.title()))
print('{} mulheres tem menos de 20 anos.'.format(contM))
|
def myfnc(x):
print("inside myfnc", x)
x = 10
print("inside myfnc", x)
x = 20
myfnc(x)
print(x)
|
class PDL1netTester:
"""
class represents a PDL1 net Tester
"""
def __init__(self):
pass
def test(self):
pass
# TODO: add here function to show results and compare different settings result
|
class Solution:
def reverse(self, x: int) -> int:
self.setLimit(x)
result = 0
while x != 0:
tail: int = self.mod10(x)
if self.overflow(result, tail):
return 0
result = result * 10 + tail
x = self.divide10(x)
return result
def mod10(self, x: int) -> int:
return x % 10 if x >= 0 else -(-x % 10)
def divide10(self, x: int) -> int:
return x // 10 if x >= 0 else -(-x // 10)
def overflow(self, body: int, tail: int) -> bool:
if self.sign > 0:
return body > self.limitInt32Body or (body == self.limitInt32Body and tail > self.limitInt32Tail)
else:
return body < self.limitInt32Body or (body == self.limitInt32Body and tail < self.limitInt32Tail)
def setLimit(self, x: int):
self.sign: int = 1 if x >= 0 else -1
self.limitInt32: int = 0x7fffffff if self.sign > 0 else -0x80000000
self.limitInt32Tail: int = self.mod10(self.limitInt32)
self.limitInt32Body: int = self.divide10(self.limitInt32)
if __name__ == '__main__':
s = Solution()
print(s.reverse(-10)) |
del_items(0x80114B24)
SetType(0x80114B24, "int NumOfMonsterListLevels")
del_items(0x800A49E4)
SetType(0x800A49E4, "struct MonstLevel AllLevels[16]")
del_items(0x80114820)
SetType(0x80114820, "unsigned char NumsLEV1M1A[4]")
del_items(0x80114824)
SetType(0x80114824, "unsigned char NumsLEV1M1B[4]")
del_items(0x80114828)
SetType(0x80114828, "unsigned char NumsLEV1M1C[5]")
del_items(0x80114830)
SetType(0x80114830, "unsigned char NumsLEV2M2A[4]")
del_items(0x80114834)
SetType(0x80114834, "unsigned char NumsLEV2M2B[4]")
del_items(0x80114838)
SetType(0x80114838, "unsigned char NumsLEV2M2C[3]")
del_items(0x8011483C)
SetType(0x8011483C, "unsigned char NumsLEV2M2D[4]")
del_items(0x80114840)
SetType(0x80114840, "unsigned char NumsLEV2M2QA[4]")
del_items(0x80114844)
SetType(0x80114844, "unsigned char NumsLEV2M2QB[4]")
del_items(0x80114848)
SetType(0x80114848, "unsigned char NumsLEV3M3A[4]")
del_items(0x8011484C)
SetType(0x8011484C, "unsigned char NumsLEV3M3QA[3]")
del_items(0x80114850)
SetType(0x80114850, "unsigned char NumsLEV3M3B[4]")
del_items(0x80114854)
SetType(0x80114854, "unsigned char NumsLEV3M3C[4]")
del_items(0x80114858)
SetType(0x80114858, "unsigned char NumsLEV4M4A[4]")
del_items(0x8011485C)
SetType(0x8011485C, "unsigned char NumsLEV4M4QA[4]")
del_items(0x80114860)
SetType(0x80114860, "unsigned char NumsLEV4M4B[4]")
del_items(0x80114864)
SetType(0x80114864, "unsigned char NumsLEV4M4QB[5]")
del_items(0x8011486C)
SetType(0x8011486C, "unsigned char NumsLEV4M4C[4]")
del_items(0x80114870)
SetType(0x80114870, "unsigned char NumsLEV4M4QC[5]")
del_items(0x80114878)
SetType(0x80114878, "unsigned char NumsLEV4M4D[4]")
del_items(0x8011487C)
SetType(0x8011487C, "unsigned char NumsLEV5M5A[4]")
del_items(0x80114880)
SetType(0x80114880, "unsigned char NumsLEV5M5B[4]")
del_items(0x80114884)
SetType(0x80114884, "unsigned char NumsLEV5M5C[4]")
del_items(0x80114888)
SetType(0x80114888, "unsigned char NumsLEV5M5D[4]")
del_items(0x8011488C)
SetType(0x8011488C, "unsigned char NumsLEV5M5E[4]")
del_items(0x80114890)
SetType(0x80114890, "unsigned char NumsLEV5M5F[3]")
del_items(0x80114894)
SetType(0x80114894, "unsigned char NumsLEV5M5QA[4]")
del_items(0x80114898)
SetType(0x80114898, "unsigned char NumsLEV6M6A[5]")
del_items(0x801148A0)
SetType(0x801148A0, "unsigned char NumsLEV6M6B[3]")
del_items(0x801148A4)
SetType(0x801148A4, "unsigned char NumsLEV6M6C[4]")
del_items(0x801148A8)
SetType(0x801148A8, "unsigned char NumsLEV6M6D[3]")
del_items(0x801148AC)
SetType(0x801148AC, "unsigned char NumsLEV6M6E[3]")
del_items(0x801148B0)
SetType(0x801148B0, "unsigned char NumsLEV7M7A[4]")
del_items(0x801148B4)
SetType(0x801148B4, "unsigned char NumsLEV7M7B[4]")
del_items(0x801148B8)
SetType(0x801148B8, "unsigned char NumsLEV7M7C[3]")
del_items(0x801148BC)
SetType(0x801148BC, "unsigned char NumsLEV7M7D[2]")
del_items(0x801148C0)
SetType(0x801148C0, "unsigned char NumsLEV7M7E[2]")
del_items(0x801148C4)
SetType(0x801148C4, "unsigned char NumsLEV8M8QA[2]")
del_items(0x801148C8)
SetType(0x801148C8, "unsigned char NumsLEV8M8A[3]")
del_items(0x801148CC)
SetType(0x801148CC, "unsigned char NumsLEV8M8B[4]")
del_items(0x801148D0)
SetType(0x801148D0, "unsigned char NumsLEV8M8C[3]")
del_items(0x801148D4)
SetType(0x801148D4, "unsigned char NumsLEV8M8D[2]")
del_items(0x801148D8)
SetType(0x801148D8, "unsigned char NumsLEV8M8E[2]")
del_items(0x801148DC)
SetType(0x801148DC, "unsigned char NumsLEV9M9A[4]")
del_items(0x801148E0)
SetType(0x801148E0, "unsigned char NumsLEV9M9B[3]")
del_items(0x801148E4)
SetType(0x801148E4, "unsigned char NumsLEV9M9C[2]")
del_items(0x801148E8)
SetType(0x801148E8, "unsigned char NumsLEV9M9D[2]")
del_items(0x801148EC)
SetType(0x801148EC, "unsigned char NumsLEV10M10A[3]")
del_items(0x801148F0)
SetType(0x801148F0, "unsigned char NumsLEV10M10B[2]")
del_items(0x801148F4)
SetType(0x801148F4, "unsigned char NumsLEV10M10C[2]")
del_items(0x801148F8)
SetType(0x801148F8, "unsigned char NumsLEV10M10D[2]")
del_items(0x801148FC)
SetType(0x801148FC, "unsigned char NumsLEV10M10QA[3]")
del_items(0x80114900)
SetType(0x80114900, "unsigned char NumsLEV11M11A[3]")
del_items(0x80114904)
SetType(0x80114904, "unsigned char NumsLEV11M11B[3]")
del_items(0x80114908)
SetType(0x80114908, "unsigned char NumsLEV11M11C[3]")
del_items(0x8011490C)
SetType(0x8011490C, "unsigned char NumsLEV11M11D[3]")
del_items(0x80114910)
SetType(0x80114910, "unsigned char NumsLEV11M11E[2]")
del_items(0x80114914)
SetType(0x80114914, "unsigned char NumsLEV12M12A[3]")
del_items(0x80114918)
SetType(0x80114918, "unsigned char NumsLEV12M12B[3]")
del_items(0x8011491C)
SetType(0x8011491C, "unsigned char NumsLEV12M12C[3]")
del_items(0x80114920)
SetType(0x80114920, "unsigned char NumsLEV12M12D[3]")
del_items(0x80114924)
SetType(0x80114924, "unsigned char NumsLEV13M13A[3]")
del_items(0x80114928)
SetType(0x80114928, "unsigned char NumsLEV13M13B[2]")
del_items(0x8011492C)
SetType(0x8011492C, "unsigned char NumsLEV13M13QB[3]")
del_items(0x80114930)
SetType(0x80114930, "unsigned char NumsLEV13M13C[3]")
del_items(0x80114934)
SetType(0x80114934, "unsigned char NumsLEV13M13D[2]")
del_items(0x80114938)
SetType(0x80114938, "unsigned char NumsLEV14M14A[3]")
del_items(0x8011493C)
SetType(0x8011493C, "unsigned char NumsLEV14M14B[3]")
del_items(0x80114940)
SetType(0x80114940, "unsigned char NumsLEV14M14QB[3]")
del_items(0x80114944)
SetType(0x80114944, "unsigned char NumsLEV14M14C[3]")
del_items(0x80114948)
SetType(0x80114948, "unsigned char NumsLEV14M14D[3]")
del_items(0x8011494C)
SetType(0x8011494C, "unsigned char NumsLEV14M14E[2]")
del_items(0x80114950)
SetType(0x80114950, "unsigned char NumsLEV15M15A[3]")
del_items(0x80114954)
SetType(0x80114954, "unsigned char NumsLEV15M15B[3]")
del_items(0x80114958)
SetType(0x80114958, "unsigned char NumsLEV15M15C[2]")
del_items(0x8011495C)
SetType(0x8011495C, "unsigned char NumsLEV16M16D[2]")
del_items(0x800A4524)
SetType(0x800A4524, "struct MonstList ChoiceListLEV1[3]")
del_items(0x800A4554)
SetType(0x800A4554, "struct MonstList ChoiceListLEV2[6]")
del_items(0x800A45B4)
SetType(0x800A45B4, "struct MonstList ChoiceListLEV3[4]")
del_items(0x800A45F4)
SetType(0x800A45F4, "struct MonstList ChoiceListLEV4[7]")
del_items(0x800A4664)
SetType(0x800A4664, "struct MonstList ChoiceListLEV5[7]")
del_items(0x800A46D4)
SetType(0x800A46D4, "struct MonstList ChoiceListLEV6[5]")
del_items(0x800A4724)
SetType(0x800A4724, "struct MonstList ChoiceListLEV7[5]")
del_items(0x800A4774)
SetType(0x800A4774, "struct MonstList ChoiceListLEV8[6]")
del_items(0x800A47D4)
SetType(0x800A47D4, "struct MonstList ChoiceListLEV9[4]")
del_items(0x800A4814)
SetType(0x800A4814, "struct MonstList ChoiceListLEV10[5]")
del_items(0x800A4864)
SetType(0x800A4864, "struct MonstList ChoiceListLEV11[5]")
del_items(0x800A48B4)
SetType(0x800A48B4, "struct MonstList ChoiceListLEV12[4]")
del_items(0x800A48F4)
SetType(0x800A48F4, "struct MonstList ChoiceListLEV13[5]")
del_items(0x800A4944)
SetType(0x800A4944, "struct MonstList ChoiceListLEV14[6]")
del_items(0x800A49A4)
SetType(0x800A49A4, "struct MonstList ChoiceListLEV15[3]")
del_items(0x800A49D4)
SetType(0x800A49D4, "struct MonstList ChoiceListLEV16[1]")
del_items(0x80116354)
SetType(0x80116354, "struct TASK *GameTaskPtr")
del_items(0x800A4A64)
SetType(0x800A4A64, "struct LOAD_IMAGE_ARGS AllArgs[30]")
del_items(0x80114B34)
SetType(0x80114B34, "int ArgsSoFar")
del_items(0x80114B38)
SetType(0x80114B38, "unsigned long *ThisOt")
del_items(0x80114B3C)
SetType(0x80114B3C, "struct POLY_FT4 *ThisPrimAddr")
del_items(0x80116358)
SetType(0x80116358, "long hndPrimBuffers")
del_items(0x8011635C)
SetType(0x8011635C, "struct PRIM_BUFFER *PrimBuffers")
del_items(0x80116360)
SetType(0x80116360, "unsigned char BufferDepth")
del_items(0x80116361)
SetType(0x80116361, "unsigned char WorkRamId")
del_items(0x80116362)
SetType(0x80116362, "unsigned char ScrNum")
del_items(0x80116364)
SetType(0x80116364, "struct SCREEN_ENV *Screens")
del_items(0x80116368)
SetType(0x80116368, "struct PRIM_BUFFER *PbToClear")
del_items(0x8011636C)
SetType(0x8011636C, "unsigned char BufferNum")
del_items(0x80114B40)
SetType(0x80114B40, "struct POLY_FT4 *AddrToAvoid")
del_items(0x8011636D)
SetType(0x8011636D, "unsigned char LastBuffer")
del_items(0x80116370)
SetType(0x80116370, "struct DISPENV *DispEnvToPut")
del_items(0x80116374)
SetType(0x80116374, "int ThisOtSize")
del_items(0x80114B44)
SetType(0x80114B44, "struct RECT ScrRect")
del_items(0x80116378)
SetType(0x80116378, "int VidWait")
del_items(0x801167C8)
SetType(0x801167C8, "struct SCREEN_ENV screen[2]")
del_items(0x8011637C)
SetType(0x8011637C, "void (*VbFunc)()")
del_items(0x80116380)
SetType(0x80116380, "unsigned long VidTick")
del_items(0x80116384)
SetType(0x80116384, "int VXOff")
del_items(0x80116388)
SetType(0x80116388, "int VYOff")
del_items(0x80114B58)
SetType(0x80114B58, "struct LNK_OPTS *Gaz")
del_items(0x80114B5C)
SetType(0x80114B5C, "int LastFmem")
del_items(0x80114B4C)
SetType(0x80114B4C, "unsigned int GSYS_MemStart")
del_items(0x80114B50)
SetType(0x80114B50, "unsigned int GSYS_MemEnd")
del_items(0x800A4DAC)
SetType(0x800A4DAC, "struct MEM_INIT_INFO PsxMem")
del_items(0x800A4DD4)
SetType(0x800A4DD4, "struct MEM_INIT_INFO PsxFastMem")
del_items(0x80114B54)
SetType(0x80114B54, "int LowestFmem")
del_items(0x80114B6C)
SetType(0x80114B6C, "int FileSYS")
del_items(0x8011638C)
SetType(0x8011638C, "struct FileIO *FileSystem")
del_items(0x80116390)
SetType(0x80116390, "struct FileIO *OverlayFileSystem")
del_items(0x80114B86)
SetType(0x80114B86, "short DavesPad")
del_items(0x80114B88)
SetType(0x80114B88, "short DavesPadDeb")
del_items(0x800A4DFC)
SetType(0x800A4DFC, "char _6FileIO_FileToLoad[50]")
del_items(0x801168A8)
SetType(0x801168A8, "struct POLY_FT4 MyFT4")
del_items(0x800A56A0)
SetType(0x800A56A0, "struct TextDat *AllDats[285]")
del_items(0x80114BD8)
SetType(0x80114BD8, "int TpW")
del_items(0x80114BDC)
SetType(0x80114BDC, "int TpH")
del_items(0x80114BE0)
SetType(0x80114BE0, "int TpXDest")
del_items(0x80114BE4)
SetType(0x80114BE4, "int TpYDest")
del_items(0x80114BE8)
SetType(0x80114BE8, "struct RECT R")
del_items(0x800A5B14)
SetType(0x800A5B14, "struct POLY_GT4 MyGT4")
del_items(0x800A5B48)
SetType(0x800A5B48, "struct POLY_GT3 MyGT3")
del_items(0x800A4E30)
SetType(0x800A4E30, "struct TextDat DatPool[20]")
del_items(0x80114BFC)
SetType(0x80114BFC, "bool ChunkGot")
del_items(0x800A5B70)
SetType(0x800A5B70, "char STREAM_DIR[16]")
del_items(0x800A5B80)
SetType(0x800A5B80, "char STREAM_BIN[16]")
del_items(0x800A5B90)
SetType(0x800A5B90, "unsigned char EAC_DirectoryCache[300]")
del_items(0x80114C10)
SetType(0x80114C10, "unsigned long BL_NoLumpFiles")
del_items(0x80114C14)
SetType(0x80114C14, "unsigned long BL_NoStreamFiles")
del_items(0x80114C18)
SetType(0x80114C18, "struct STRHDR *LFileTab")
del_items(0x80114C1C)
SetType(0x80114C1C, "struct STRHDR *SFileTab")
del_items(0x80114C20)
SetType(0x80114C20, "unsigned char FileLoaded")
del_items(0x80114C50)
SetType(0x80114C50, "int NoTAllocs")
del_items(0x800A5CBC)
SetType(0x800A5CBC, "struct MEMSTRUCT MemBlock[50]")
del_items(0x8011639C)
SetType(0x8011639C, "bool CanPause")
del_items(0x801163A0)
SetType(0x801163A0, "bool Paused")
del_items(0x801163A4)
SetType(0x801163A4, "struct RECT PRect")
del_items(0x801168D0)
SetType(0x801168D0, "struct Dialog PBack")
del_items(0x800A5F24)
SetType(0x800A5F24, "unsigned char RawPadData0[34]")
del_items(0x800A5F48)
SetType(0x800A5F48, "unsigned char RawPadData1[34]")
del_items(0x800A5F6C)
SetType(0x800A5F6C, "unsigned char demo_buffer[1800]")
del_items(0x80114C7C)
SetType(0x80114C7C, "int demo_pad_time")
del_items(0x80114C80)
SetType(0x80114C80, "int demo_pad_count")
del_items(0x800A5E4C)
SetType(0x800A5E4C, "struct CPad Pad0")
del_items(0x800A5EB8)
SetType(0x800A5EB8, "struct CPad Pad1")
del_items(0x80114C84)
SetType(0x80114C84, "unsigned long demo_finish")
del_items(0x80114C88)
SetType(0x80114C88, "int cac_pad")
del_items(0x80114CA4)
SetType(0x80114CA4, "struct POLY_FT4 *CharFt4")
del_items(0x80114CA8)
SetType(0x80114CA8, "int CharFrm")
del_items(0x80114C95)
SetType(0x80114C95, "unsigned char WHITER")
del_items(0x80114C96)
SetType(0x80114C96, "unsigned char WHITEG")
del_items(0x80114C97)
SetType(0x80114C97, "unsigned char WHITEB")
del_items(0x80114C98)
SetType(0x80114C98, "unsigned char BLUER")
del_items(0x80114C99)
SetType(0x80114C99, "unsigned char BLUEG")
del_items(0x80114C9A)
SetType(0x80114C9A, "unsigned char BLUEB")
del_items(0x80114C9B)
SetType(0x80114C9B, "unsigned char REDR")
del_items(0x80114C9C)
SetType(0x80114C9C, "unsigned char REDG")
del_items(0x80114C9D)
SetType(0x80114C9D, "unsigned char REDB")
del_items(0x80114C9E)
SetType(0x80114C9E, "unsigned char GOLDR")
del_items(0x80114C9F)
SetType(0x80114C9F, "unsigned char GOLDG")
del_items(0x80114CA0)
SetType(0x80114CA0, "unsigned char GOLDB")
del_items(0x800A6674)
SetType(0x800A6674, "struct CFont MediumFont")
del_items(0x800A688C)
SetType(0x800A688C, "struct CFont LargeFont")
del_items(0x800A6AA4)
SetType(0x800A6AA4, "struct FontItem LFontTab[90]")
del_items(0x800A6B58)
SetType(0x800A6B58, "struct FontTab LFont")
del_items(0x800A6B68)
SetType(0x800A6B68, "struct FontItem MFontTab[155]")
del_items(0x800A6CA0)
SetType(0x800A6CA0, "struct FontTab MFont")
del_items(0x80114CBD)
SetType(0x80114CBD, "unsigned char DialogRed")
del_items(0x80114CBE)
SetType(0x80114CBE, "unsigned char DialogGreen")
del_items(0x80114CBF)
SetType(0x80114CBF, "unsigned char DialogBlue")
del_items(0x80114CC0)
SetType(0x80114CC0, "unsigned char DialogTRed")
del_items(0x80114CC1)
SetType(0x80114CC1, "unsigned char DialogTGreen")
del_items(0x80114CC2)
SetType(0x80114CC2, "unsigned char DialogTBlue")
del_items(0x80114CC4)
SetType(0x80114CC4, "struct TextDat *DialogTData")
del_items(0x80114CC8)
SetType(0x80114CC8, "int DialogBackGfx")
del_items(0x80114CCC)
SetType(0x80114CCC, "int DialogBackW")
del_items(0x80114CD0)
SetType(0x80114CD0, "int DialogBackH")
del_items(0x80114CD4)
SetType(0x80114CD4, "int DialogBorderGfx")
del_items(0x80114CD8)
SetType(0x80114CD8, "int DialogBorderTLW")
del_items(0x80114CDC)
SetType(0x80114CDC, "int DialogBorderTLH")
del_items(0x80114CE0)
SetType(0x80114CE0, "int DialogBorderTRW")
del_items(0x80114CE4)
SetType(0x80114CE4, "int DialogBorderTRH")
del_items(0x80114CE8)
SetType(0x80114CE8, "int DialogBorderBLW")
del_items(0x80114CEC)
SetType(0x80114CEC, "int DialogBorderBLH")
del_items(0x80114CF0)
SetType(0x80114CF0, "int DialogBorderBRW")
del_items(0x80114CF4)
SetType(0x80114CF4, "int DialogBorderBRH")
del_items(0x80114CF8)
SetType(0x80114CF8, "int DialogBorderTW")
del_items(0x80114CFC)
SetType(0x80114CFC, "int DialogBorderTH")
del_items(0x80114D00)
SetType(0x80114D00, "int DialogBorderBW")
del_items(0x80114D04)
SetType(0x80114D04, "int DialogBorderBH")
del_items(0x80114D08)
SetType(0x80114D08, "int DialogBorderLW")
del_items(0x80114D0C)
SetType(0x80114D0C, "int DialogBorderLH")
del_items(0x80114D10)
SetType(0x80114D10, "int DialogBorderRW")
del_items(0x80114D14)
SetType(0x80114D14, "int DialogBorderRH")
del_items(0x80114D18)
SetType(0x80114D18, "int DialogBevelGfx")
del_items(0x80114D1C)
SetType(0x80114D1C, "int DialogBevelCW")
del_items(0x80114D20)
SetType(0x80114D20, "int DialogBevelCH")
del_items(0x80114D24)
SetType(0x80114D24, "int DialogBevelLRW")
del_items(0x80114D28)
SetType(0x80114D28, "int DialogBevelLRH")
del_items(0x80114D2C)
SetType(0x80114D2C, "int DialogBevelUDW")
del_items(0x80114D30)
SetType(0x80114D30, "int DialogBevelUDH")
del_items(0x80114D34)
SetType(0x80114D34, "int MY_DialogOTpos")
del_items(0x801163AC)
SetType(0x801163AC, "unsigned char DialogGBack")
del_items(0x801163AD)
SetType(0x801163AD, "char GShadeX")
del_items(0x801163AE)
SetType(0x801163AE, "char GShadeY")
del_items(0x801163B4)
SetType(0x801163B4, "unsigned char RandBTab[8]")
del_items(0x800A6CF0)
SetType(0x800A6CF0, "int Cxy[28]")
del_items(0x80114CB7)
SetType(0x80114CB7, "unsigned char BORDERR")
del_items(0x80114CB8)
SetType(0x80114CB8, "unsigned char BORDERG")
del_items(0x80114CB9)
SetType(0x80114CB9, "unsigned char BORDERB")
del_items(0x80114CBA)
SetType(0x80114CBA, "unsigned char BACKR")
del_items(0x80114CBB)
SetType(0x80114CBB, "unsigned char BACKG")
del_items(0x80114CBC)
SetType(0x80114CBC, "unsigned char BACKB")
del_items(0x800A6CB0)
SetType(0x800A6CB0, "char GShadeTab[64]")
del_items(0x80114CB5)
SetType(0x80114CB5, "char GShadePX")
del_items(0x80114CB6)
SetType(0x80114CB6, "char GShadePY")
del_items(0x80114D41)
SetType(0x80114D41, "unsigned char PlayDemoFlag")
del_items(0x801168E0)
SetType(0x801168E0, "struct RGBPOLY rgbb")
del_items(0x80116910)
SetType(0x80116910, "struct RGBPOLY rgbt")
del_items(0x801163BC)
SetType(0x801163BC, "int blockr")
del_items(0x801163C0)
SetType(0x801163C0, "int blockg")
del_items(0x801163C4)
SetType(0x801163C4, "int blockb")
del_items(0x801163C8)
SetType(0x801163C8, "int InfraFlag")
del_items(0x80114D55)
SetType(0x80114D55, "unsigned char P1ObjSelCount")
del_items(0x80114D56)
SetType(0x80114D56, "unsigned char P2ObjSelCount")
del_items(0x80114D57)
SetType(0x80114D57, "unsigned char P12ObjSelCount")
del_items(0x80114D58)
SetType(0x80114D58, "unsigned char P1ItemSelCount")
del_items(0x80114D59)
SetType(0x80114D59, "unsigned char P2ItemSelCount")
del_items(0x80114D5A)
SetType(0x80114D5A, "unsigned char P12ItemSelCount")
del_items(0x80114D5B)
SetType(0x80114D5B, "unsigned char P1MonstSelCount")
del_items(0x80114D5C)
SetType(0x80114D5C, "unsigned char P2MonstSelCount")
del_items(0x80114D5D)
SetType(0x80114D5D, "unsigned char P12MonstSelCount")
del_items(0x80114D5E)
SetType(0x80114D5E, "unsigned short P1ObjSelCol")
del_items(0x80114D60)
SetType(0x80114D60, "unsigned short P2ObjSelCol")
del_items(0x80114D62)
SetType(0x80114D62, "unsigned short P12ObjSelCol")
del_items(0x80114D64)
SetType(0x80114D64, "unsigned short P1ItemSelCol")
del_items(0x80114D66)
SetType(0x80114D66, "unsigned short P2ItemSelCol")
del_items(0x80114D68)
SetType(0x80114D68, "unsigned short P12ItemSelCol")
del_items(0x80114D6A)
SetType(0x80114D6A, "unsigned short P1MonstSelCol")
del_items(0x80114D6C)
SetType(0x80114D6C, "unsigned short P2MonstSelCol")
del_items(0x80114D6E)
SetType(0x80114D6E, "unsigned short P12MonstSelCol")
del_items(0x80114D70)
SetType(0x80114D70, "struct CBlocks *CurrentBlocks")
del_items(0x8010A718)
SetType(0x8010A718, "short SinTab[32]")
del_items(0x800A6D60)
SetType(0x800A6D60, "struct TownToCreature TownConv[10]")
del_items(0x80114D8C)
SetType(0x80114D8C, "enum OVER_TYPE CurrentOverlay")
del_items(0x8010A7A4)
SetType(0x8010A7A4, "unsigned long HaltTab[3]")
del_items(0x80116940)
SetType(0x80116940, "struct Overlay FrontEndOver")
del_items(0x80116950)
SetType(0x80116950, "struct Overlay PregameOver")
del_items(0x80116960)
SetType(0x80116960, "struct Overlay GameOver")
del_items(0x80116970)
SetType(0x80116970, "struct Overlay FmvOver")
del_items(0x801163CC)
SetType(0x801163CC, "int OWorldX")
del_items(0x801163D0)
SetType(0x801163D0, "int OWorldY")
del_items(0x801163D4)
SetType(0x801163D4, "int WWorldX")
del_items(0x801163D8)
SetType(0x801163D8, "int WWorldY")
del_items(0x8010A820)
SetType(0x8010A820, "short TxyAdd[16]")
del_items(0x80114DB0)
SetType(0x80114DB0, "int GXAdj2")
del_items(0x801163DC)
SetType(0x801163DC, "int TimePerFrame")
del_items(0x801163E0)
SetType(0x801163E0, "int CpuStart")
del_items(0x801163E4)
SetType(0x801163E4, "int CpuTime")
del_items(0x801163E8)
SetType(0x801163E8, "int DrawTime")
del_items(0x801163EC)
SetType(0x801163EC, "int DrawStart")
del_items(0x801163F0)
SetType(0x801163F0, "int LastCpuTime")
del_items(0x801163F4)
SetType(0x801163F4, "int LastDrawTime")
del_items(0x801163F8)
SetType(0x801163F8, "int DrawArea")
del_items(0x80114DB8)
SetType(0x80114DB8, "bool ProfOn")
del_items(0x800A6D74)
SetType(0x800A6D74, "unsigned char LevPals[17]")
del_items(0x8010A97C)
SetType(0x8010A97C, "unsigned short Level2Bgdata[25]")
del_items(0x800A6D88)
SetType(0x800A6D88, "struct PanelXY DefP1PanelXY")
del_items(0x800A6DDC)
SetType(0x800A6DDC, "struct PanelXY DefP1PanelXY2")
del_items(0x800A6E30)
SetType(0x800A6E30, "struct PanelXY DefP2PanelXY")
del_items(0x800A6E84)
SetType(0x800A6E84, "struct PanelXY DefP2PanelXY2")
del_items(0x800A6ED8)
SetType(0x800A6ED8, "unsigned int SpeedBarGfxTable[50]")
del_items(0x80114DE0)
SetType(0x80114DE0, "int hof")
del_items(0x80114DE4)
SetType(0x80114DE4, "int mof")
del_items(0x800A6FA0)
SetType(0x800A6FA0, "struct SFXHDR SFXTab[2]")
del_items(0x80114E18)
SetType(0x80114E18, "unsigned long Time")
del_items(0x800A70A0)
SetType(0x800A70A0, "struct SpuVoiceAttr voice_attr")
del_items(0x80114DF4)
SetType(0x80114DF4, "unsigned long *STR_Buffer")
del_items(0x80114DF8)
SetType(0x80114DF8, "char NoActiveStreams")
del_items(0x80114DFC)
SetType(0x80114DFC, "bool STRInit")
del_items(0x80114E3C)
SetType(0x80114E3C, "char SFXNotPlayed")
del_items(0x80114E3D)
SetType(0x80114E3D, "char SFXNotInBank")
del_items(0x80116980)
SetType(0x80116980, "char spu_management[264]")
del_items(0x80116A90)
SetType(0x80116A90, "struct SpuReverbAttr rev_attr")
del_items(0x80116400)
SetType(0x80116400, "unsigned short NoSfx")
del_items(0x80114E28)
SetType(0x80114E28, "struct bank_entry *BankOffsets")
del_items(0x80114E2C)
SetType(0x80114E2C, "long OffsetHandle")
del_items(0x80114E30)
SetType(0x80114E30, "int BankBase")
del_items(0x80114E34)
SetType(0x80114E34, "unsigned char SPU_Done")
del_items(0x8010AD44)
SetType(0x8010AD44, "unsigned short SFXRemapTab[56]")
del_items(0x80114E38)
SetType(0x80114E38, "int NoSNDRemaps")
del_items(0x800A70E0)
SetType(0x800A70E0, "struct PalCollection ThePals")
del_items(0x8010ADE8)
SetType(0x8010ADE8, "struct InitPos InitialPositions[20]")
del_items(0x80114E90)
SetType(0x80114E90, "int demo_level")
del_items(0x80114E94)
SetType(0x80114E94, "struct TASK *DemoTask")
del_items(0x80114E98)
SetType(0x80114E98, "struct TASK *DemoGameTask")
del_items(0x80114E9C)
SetType(0x80114E9C, "struct TASK *tonys")
del_items(0x80114E68)
SetType(0x80114E68, "int demo_load")
del_items(0x80114E6C)
SetType(0x80114E6C, "int demo_record_load")
del_items(0x80114E70)
SetType(0x80114E70, "int level_record")
del_items(0x80114E64)
SetType(0x80114E64, "int moo_moo")
del_items(0x80114E74)
SetType(0x80114E74, "char demolevel[5]")
del_items(0x80114E7C)
SetType(0x80114E7C, "int demo_which")
del_items(0x80114E80)
SetType(0x80114E80, "unsigned char demo_flash")
del_items(0x80114E84)
SetType(0x80114E84, "int tonys_Task")
del_items(0x80114FF8)
SetType(0x80114FF8, "bool DoShowPanel")
del_items(0x80114FFC)
SetType(0x80114FFC, "bool DoDrawBg")
del_items(0x80116404)
SetType(0x80116404, "bool GlueFinished")
del_items(0x80116408)
SetType(0x80116408, "bool DoHomingScroll")
del_items(0x8011640C)
SetType(0x8011640C, "struct TextDat *TownerGfx")
del_items(0x80116410)
SetType(0x80116410, "int CurrentMonsterList")
del_items(0x80114EA9)
SetType(0x80114EA9, "char started_grtask")
del_items(0x800A72CC)
SetType(0x800A72CC, "struct PInf PlayerInfo[81]")
del_items(0x80115000)
SetType(0x80115000, "char ArmourChar[4]")
del_items(0x8010AEDC)
SetType(0x8010AEDC, "char WepChar[10]")
del_items(0x80115004)
SetType(0x80115004, "char CharChar[4]")
del_items(0x80116414)
SetType(0x80116414, "char ctrl_select_line")
del_items(0x80116415)
SetType(0x80116415, "char ctrl_select_side")
del_items(0x80116416)
SetType(0x80116416, "char ckeyheld")
del_items(0x80116418)
SetType(0x80116418, "int old_options_pad")
del_items(0x8011641C)
SetType(0x8011641C, "struct RECT CtrlRect")
del_items(0x80115018)
SetType(0x80115018, "unsigned char ctrlflag")
del_items(0x800A75FC)
SetType(0x800A75FC, "struct KEY_ASSIGNS txt_actions[19]")
del_items(0x800A7554)
SetType(0x800A7554, "struct pad_assigns pad_txt[14]")
del_items(0x80115014)
SetType(0x80115014, "int toppos")
del_items(0x80116AA8)
SetType(0x80116AA8, "struct Dialog CtrlBack")
del_items(0x800A772C)
SetType(0x800A772C, "int controller_defaults[2][19]")
del_items(0x80115084)
SetType(0x80115084, "int gr_scrxoff")
del_items(0x80115088)
SetType(0x80115088, "int gr_scryoff")
del_items(0x80115090)
SetType(0x80115090, "unsigned short water_clut")
del_items(0x80115094)
SetType(0x80115094, "char visible_level")
del_items(0x80115081)
SetType(0x80115081, "char last_type")
del_items(0x80115096)
SetType(0x80115096, "char daylight")
del_items(0x80115092)
SetType(0x80115092, "char cow_in_sight")
del_items(0x80115093)
SetType(0x80115093, "char inn_in_sight")
del_items(0x8011508C)
SetType(0x8011508C, "unsigned int water_count")
del_items(0x80115095)
SetType(0x80115095, "unsigned char lastrnd")
del_items(0x80115098)
SetType(0x80115098, "int call_clock")
del_items(0x801150A8)
SetType(0x801150A8, "int TitleAnimCount")
del_items(0x801150AC)
SetType(0x801150AC, "int flametick")
del_items(0x8010AF9C)
SetType(0x8010AF9C, "unsigned char light_tile[55]")
del_items(0x800A77E4)
SetType(0x800A77E4, "struct SPELLFX_DAT SpellFXDat[2]")
del_items(0x80116AB8)
SetType(0x80116AB8, "struct Particle PartArray[16]")
del_items(0x80116424)
SetType(0x80116424, "int partOtPos")
del_items(0x801150C8)
SetType(0x801150C8, "int SetParticle")
del_items(0x801150CC)
SetType(0x801150CC, "int p1partexecnum")
del_items(0x801150D0)
SetType(0x801150D0, "int p2partexecnum")
del_items(0x800A77C4)
SetType(0x800A77C4, "int JumpArray[8]")
del_items(0x801150D4)
SetType(0x801150D4, "int partjumpflag")
del_items(0x801150D8)
SetType(0x801150D8, "int partglowflag")
del_items(0x801150DC)
SetType(0x801150DC, "int partcolour")
del_items(0x800A7884)
SetType(0x800A7884, "struct Spell_Target SplTarget[2]")
del_items(0x801150FD)
SetType(0x801150FD, "unsigned char select_flag")
del_items(0x80116428)
SetType(0x80116428, "struct RECT SelectRect")
del_items(0x80116430)
SetType(0x80116430, "char item_select")
del_items(0x80115100)
SetType(0x80115100, "char QSpell[2]")
del_items(0x80115104)
SetType(0x80115104, "char _spltotype[2]")
del_items(0x801150F0)
SetType(0x801150F0, "struct CPlayer *gplayer")
del_items(0x80116CF8)
SetType(0x80116CF8, "struct Dialog SelectBack")
del_items(0x801150F4)
SetType(0x801150F4, "char mana_order[4]")
del_items(0x801150F8)
SetType(0x801150F8, "char health_order[4]")
del_items(0x801150FC)
SetType(0x801150FC, "unsigned char birdcheck")
del_items(0x80116D08)
SetType(0x80116D08, "struct TextDat *DecRequestors[10]")
del_items(0x80116434)
SetType(0x80116434, "unsigned short progress")
del_items(0x8010B098)
SetType(0x8010B098, "unsigned short Level2CutScreen[20]")
del_items(0x80115120)
SetType(0x80115120, "char *CutString")
del_items(0x80116D30)
SetType(0x80116D30, "struct CScreen Scr")
del_items(0x80115124)
SetType(0x80115124, "struct TASK *CutScreenTSK")
del_items(0x80115128)
SetType(0x80115128, "bool GameLoading")
del_items(0x80116DB0)
SetType(0x80116DB0, "struct Dialog LBack")
del_items(0x80115138)
SetType(0x80115138, "unsigned int card_ev0")
del_items(0x8011513C)
SetType(0x8011513C, "unsigned int card_ev1")
del_items(0x80115140)
SetType(0x80115140, "unsigned int card_ev2")
del_items(0x80115144)
SetType(0x80115144, "unsigned int card_ev3")
del_items(0x80115148)
SetType(0x80115148, "unsigned int card_ev10")
del_items(0x8011514C)
SetType(0x8011514C, "unsigned int card_ev11")
del_items(0x80115150)
SetType(0x80115150, "unsigned int card_ev12")
del_items(0x80115154)
SetType(0x80115154, "unsigned int card_ev13")
del_items(0x80115158)
SetType(0x80115158, "int card_dirty[2]")
del_items(0x80115160)
SetType(0x80115160, "struct TASK *MemcardTask")
del_items(0x80116438)
SetType(0x80116438, "int card_event")
del_items(0x80115134)
SetType(0x80115134, "void (*mem_card_event_handler)()")
del_items(0x8011512C)
SetType(0x8011512C, "bool MemCardActive")
del_items(0x80115130)
SetType(0x80115130, "int never_hooked_events")
del_items(0x801151A4)
SetType(0x801151A4, "unsigned long MasterVol")
del_items(0x801151A8)
SetType(0x801151A8, "unsigned long MusicVol")
del_items(0x801151AC)
SetType(0x801151AC, "unsigned long SoundVol")
del_items(0x801151B0)
SetType(0x801151B0, "unsigned long VideoVol")
del_items(0x801151B4)
SetType(0x801151B4, "unsigned long SpeechVol")
del_items(0x8011643C)
SetType(0x8011643C, "struct TextDat *Slider")
del_items(0x80116440)
SetType(0x80116440, "int sw")
del_items(0x80116444)
SetType(0x80116444, "int sx")
del_items(0x80116448)
SetType(0x80116448, "int sy")
del_items(0x8011644C)
SetType(0x8011644C, "unsigned char Adjust")
del_items(0x8011644D)
SetType(0x8011644D, "unsigned char qspin")
del_items(0x8011644E)
SetType(0x8011644E, "unsigned char lqspin")
del_items(0x80116450)
SetType(0x80116450, "enum LANG_TYPE OrigLang")
del_items(0x80116454)
SetType(0x80116454, "enum LANG_TYPE OldLang")
del_items(0x80116458)
SetType(0x80116458, "enum LANG_TYPE NewLang")
del_items(0x801151B8)
SetType(0x801151B8, "int ReturnMenu")
del_items(0x8011645C)
SetType(0x8011645C, "struct RECT ORect")
del_items(0x80116464)
SetType(0x80116464, "char *McState[2]")
del_items(0x80115188)
SetType(0x80115188, "bool optionsflag")
del_items(0x8011517C)
SetType(0x8011517C, "int cmenu")
del_items(0x80115190)
SetType(0x80115190, "int options_pad")
del_items(0x8011519C)
SetType(0x8011519C, "char *PrevTxt")
del_items(0x80115184)
SetType(0x80115184, "bool allspellsflag")
del_items(0x800A80EC)
SetType(0x800A80EC, "short Circle[64]")
del_items(0x80115170)
SetType(0x80115170, "int Spacing")
del_items(0x80115174)
SetType(0x80115174, "int cs")
del_items(0x80115178)
SetType(0x80115178, "int lastcs")
del_items(0x80115180)
SetType(0x80115180, "bool MemcardOverlay")
del_items(0x8011518C)
SetType(0x8011518C, "int saveflag")
del_items(0x800A78CC)
SetType(0x800A78CC, "struct OMENUITEM MainMenu[7]")
del_items(0x800A7974)
SetType(0x800A7974, "struct OMENUITEM GameMenu[9]")
del_items(0x800A7A4C)
SetType(0x800A7A4C, "struct OMENUITEM SoundMenu[6]")
del_items(0x800A7ADC)
SetType(0x800A7ADC, "struct OMENUITEM CentreMenu[7]")
del_items(0x800A7B84)
SetType(0x800A7B84, "struct OMENUITEM LangMenu[7]")
del_items(0x800A7C2C)
SetType(0x800A7C2C, "struct OMENUITEM MemcardMenu[4]")
del_items(0x800A7C8C)
SetType(0x800A7C8C, "struct OMENUITEM MemcardGameMenu[6]")
del_items(0x800A7D1C)
SetType(0x800A7D1C, "struct OMENUITEM MemcardCharacterMenu[4]")
del_items(0x800A7D7C)
SetType(0x800A7D7C, "struct OMENUITEM MemcardSelectCard1[7]")
del_items(0x800A7E24)
SetType(0x800A7E24, "struct OMENUITEM MemcardSelectCard2[7]")
del_items(0x800A7ECC)
SetType(0x800A7ECC, "struct OMENUITEM MemcardFormatMenu[4]")
del_items(0x800A7F2C)
SetType(0x800A7F2C, "struct OMENUITEM CheatMenu[9]")
del_items(0x800A8004)
SetType(0x800A8004, "struct OMENUITEM InfoMenu[2]")
del_items(0x800A8034)
SetType(0x800A8034, "struct OMENUITEM MonstViewMenu[3]")
del_items(0x800A807C)
SetType(0x800A807C, "struct OMENULIST MenuList[14]")
del_items(0x801151A0)
SetType(0x801151A0, "bool debounce")
del_items(0x800A816C)
SetType(0x800A816C, "struct BIRDSTRUCT BirdList[16]")
del_items(0x801151C5)
SetType(0x801151C5, "char hop_height")
del_items(0x801151C8)
SetType(0x801151C8, "struct Perch perches[4]")
del_items(0x800A82EC)
SetType(0x800A82EC, "char *FmvTab[4]")
del_items(0x801151DC)
SetType(0x801151DC, "int CurMons")
del_items(0x801151E0)
SetType(0x801151E0, "int Frame")
del_items(0x801151E4)
SetType(0x801151E4, "int Action")
del_items(0x801151E8)
SetType(0x801151E8, "int Dir")
del_items(0x8011525C)
SetType(0x8011525C, "int FeBackX")
del_items(0x80115260)
SetType(0x80115260, "int FeBackY")
del_items(0x80115264)
SetType(0x80115264, "int FeBackW")
del_items(0x80115268)
SetType(0x80115268, "int FeBackH")
del_items(0x8011526C)
SetType(0x8011526C, "unsigned char FeFlag")
del_items(0x800A8A9C)
SetType(0x800A8A9C, "struct FeStruct FeBuffer[40]")
del_items(0x80115270)
SetType(0x80115270, "int FePlayerNo")
del_items(0x8011646C)
SetType(0x8011646C, "struct FE_CREATE *CStruct")
del_items(0x80115274)
SetType(0x80115274, "int FeBufferCount")
del_items(0x80115278)
SetType(0x80115278, "int FeNoOfPlayers")
del_items(0x8011527C)
SetType(0x8011527C, "int FeChrClass[2]")
del_items(0x800A8E5C)
SetType(0x800A8E5C, "char FePlayerName[11][2]")
del_items(0x80115284)
SetType(0x80115284, "struct FeTable *FeCurMenu")
del_items(0x80115288)
SetType(0x80115288, "unsigned char FePlayerNameFlag[2]")
del_items(0x8011528C)
SetType(0x8011528C, "unsigned long FeCount")
del_items(0x80115290)
SetType(0x80115290, "int fileselect")
del_items(0x80115294)
SetType(0x80115294, "int BookMenu")
del_items(0x80115298)
SetType(0x80115298, "int FeAttractMode")
del_items(0x8011529C)
SetType(0x8011529C, "int FMVPress")
del_items(0x8011522C)
SetType(0x8011522C, "struct TextDat *FeTData")
del_items(0x80115234)
SetType(0x80115234, "bool LoadedChar[2]")
del_items(0x80115230)
SetType(0x80115230, "struct TextDat *FlameTData")
del_items(0x8011523C)
SetType(0x8011523C, "unsigned char FeIsAVirgin")
del_items(0x80115240)
SetType(0x80115240, "int FeMenuDelay")
del_items(0x800A82FC)
SetType(0x800A82FC, "struct FeTable DummyMenu")
del_items(0x800A8318)
SetType(0x800A8318, "struct FeTable FeMainMenu")
del_items(0x800A8334)
SetType(0x800A8334, "struct FeTable FeNewGameMenu")
del_items(0x800A8350)
SetType(0x800A8350, "struct FeTable FeNewP1ClassMenu")
del_items(0x800A836C)
SetType(0x800A836C, "struct FeTable FeNewP1NameMenu")
del_items(0x800A8388)
SetType(0x800A8388, "struct FeTable FeNewP2ClassMenu")
del_items(0x800A83A4)
SetType(0x800A83A4, "struct FeTable FeNewP2NameMenu")
del_items(0x800A83C0)
SetType(0x800A83C0, "struct FeTable FeDifficultyMenu")
del_items(0x800A83DC)
SetType(0x800A83DC, "struct FeTable FeBackgroundMenu")
del_items(0x800A83F8)
SetType(0x800A83F8, "struct FeTable FeBook1Menu")
del_items(0x800A8414)
SetType(0x800A8414, "struct FeTable FeBook2Menu")
del_items(0x800A8430)
SetType(0x800A8430, "struct FeTable FeLoadCharMenu")
del_items(0x800A844C)
SetType(0x800A844C, "struct FeTable FeLoadChar1Menu")
del_items(0x800A8468)
SetType(0x800A8468, "struct FeTable FeLoadChar2Menu")
del_items(0x80115244)
SetType(0x80115244, "int fadeval")
del_items(0x800A8484)
SetType(0x800A8484, "struct FeMenuTable FeMainMenuTable[5]")
del_items(0x800A84FC)
SetType(0x800A84FC, "struct FeMenuTable FeNewGameMenuTable[3]")
del_items(0x800A8544)
SetType(0x800A8544, "struct FeMenuTable FePlayerClassMenuTable[5]")
del_items(0x800A85BC)
SetType(0x800A85BC, "struct FeMenuTable FeNameEngMenuTable[31]")
del_items(0x800A88A4)
SetType(0x800A88A4, "struct FeMenuTable FeMemcardMenuTable[3]")
del_items(0x800A88EC)
SetType(0x800A88EC, "struct FeMenuTable FeDifficultyMenuTable[4]")
del_items(0x800A894C)
SetType(0x800A894C, "struct FeMenuTable FeBackgroundMenuTable[4]")
del_items(0x800A89AC)
SetType(0x800A89AC, "struct FeMenuTable FeBook1MenuTable[5]")
del_items(0x800A8A24)
SetType(0x800A8A24, "struct FeMenuTable FeBook2MenuTable[5]")
del_items(0x80115250)
SetType(0x80115250, "unsigned long AttractTitleDelay")
del_items(0x80115254)
SetType(0x80115254, "unsigned long AttractMainDelay")
del_items(0x80115258)
SetType(0x80115258, "int FMVEndPad")
del_items(0x801152D0)
SetType(0x801152D0, "int InCredits")
del_items(0x801152D4)
SetType(0x801152D4, "int CreditTitleNo")
del_items(0x801152D8)
SetType(0x801152D8, "int CreditSubTitleNo")
del_items(0x801152EC)
SetType(0x801152EC, "int card_status[2]")
del_items(0x801152F4)
SetType(0x801152F4, "int card_usable[2]")
del_items(0x801152FC)
SetType(0x801152FC, "int card_files[2]")
del_items(0x80115304)
SetType(0x80115304, "int card_changed[2]")
del_items(0x80115344)
SetType(0x80115344, "int AlertTxt")
del_items(0x80115348)
SetType(0x80115348, "int current_card")
del_items(0x8011534C)
SetType(0x8011534C, "int LoadType")
del_items(0x80115350)
SetType(0x80115350, "int McMenuPos")
del_items(0x80115354)
SetType(0x80115354, "struct FeTable *McCurMenu")
del_items(0x80115340)
SetType(0x80115340, "bool fileinfoflag")
del_items(0x80115318)
SetType(0x80115318, "char *DiabloGameFile")
del_items(0x80115338)
SetType(0x80115338, "char *McState_addr_80115338[2]")
del_items(0x80115424)
SetType(0x80115424, "int mdec_audio_buffer[2]")
del_items(0x8011542C)
SetType(0x8011542C, "int mdec_audio_sec")
del_items(0x80115430)
SetType(0x80115430, "int mdec_audio_offs")
del_items(0x80115434)
SetType(0x80115434, "int mdec_audio_playing")
del_items(0x80115438)
SetType(0x80115438, "int mdec_audio_rate_shift")
del_items(0x8011543C)
SetType(0x8011543C, "char *vlcbuf[2]")
del_items(0x80115444)
SetType(0x80115444, "int slice_size")
del_items(0x80115448)
SetType(0x80115448, "struct RECT slice")
del_items(0x80115450)
SetType(0x80115450, "int slice_inc")
del_items(0x80115454)
SetType(0x80115454, "int area_pw")
del_items(0x80115458)
SetType(0x80115458, "int area_ph")
del_items(0x8011545C)
SetType(0x8011545C, "int tmdc_pol_dirty[2]")
del_items(0x80115464)
SetType(0x80115464, "int num_pol[2]")
del_items(0x8011546C)
SetType(0x8011546C, "int mdec_cx")
del_items(0x80115470)
SetType(0x80115470, "int mdec_cy")
del_items(0x80115474)
SetType(0x80115474, "int mdec_w")
del_items(0x80115478)
SetType(0x80115478, "int mdec_h")
del_items(0x8011547C)
SetType(0x8011547C, "int mdec_pw[2]")
del_items(0x80115484)
SetType(0x80115484, "int mdec_ph[2]")
del_items(0x8011548C)
SetType(0x8011548C, "int move_x")
del_items(0x80115490)
SetType(0x80115490, "int move_y")
del_items(0x80115494)
SetType(0x80115494, "int move_scale")
del_items(0x80115498)
SetType(0x80115498, "int stream_frames")
del_items(0x8011549C)
SetType(0x8011549C, "int last_stream_frame")
del_items(0x801154A0)
SetType(0x801154A0, "int mdec_framecount")
del_items(0x801154A4)
SetType(0x801154A4, "int mdec_speed")
del_items(0x801154A8)
SetType(0x801154A8, "int mdec_stream_starting")
del_items(0x801154AC)
SetType(0x801154AC, "int mdec_last_frame")
del_items(0x801154B0)
SetType(0x801154B0, "int mdec_sectors_per_frame")
del_items(0x801154B4)
SetType(0x801154B4, "unsigned short *vlctab")
del_items(0x801154B8)
SetType(0x801154B8, "unsigned char *mdc_buftop")
del_items(0x801154BC)
SetType(0x801154BC, "unsigned char *mdc_bufstart")
del_items(0x801154C0)
SetType(0x801154C0, "int mdc_bufleft")
del_items(0x801154C4)
SetType(0x801154C4, "int mdc_buftotal")
del_items(0x801154C8)
SetType(0x801154C8, "int time_in_frames")
del_items(0x801154CC)
SetType(0x801154CC, "int stream_chunksize")
del_items(0x801154D0)
SetType(0x801154D0, "int stream_bufsize")
del_items(0x801154D4)
SetType(0x801154D4, "int stream_subsec")
del_items(0x801154D8)
SetType(0x801154D8, "int stream_secnum")
del_items(0x801154DC)
SetType(0x801154DC, "int stream_last_sector")
del_items(0x801154E0)
SetType(0x801154E0, "int stream_startsec")
del_items(0x801154E4)
SetType(0x801154E4, "int stream_opened")
del_items(0x801154E8)
SetType(0x801154E8, "int stream_last_chunk")
del_items(0x801154EC)
SetType(0x801154EC, "int stream_got_chunks")
del_items(0x801154F0)
SetType(0x801154F0, "int last_sector")
del_items(0x801154F4)
SetType(0x801154F4, "int cdstream_resetsec")
del_items(0x801154F8)
SetType(0x801154F8, "int last_handler_event")
del_items(0x80115364)
SetType(0x80115364, "unsigned char *map_buf")
del_items(0x80115368)
SetType(0x80115368, "unsigned char *vlc_tab")
del_items(0x8011536C)
SetType(0x8011536C, "unsigned char *vlc_buf")
del_items(0x80115370)
SetType(0x80115370, "int vbuf")
del_items(0x80115374)
SetType(0x80115374, "int last_fn")
del_items(0x80115378)
SetType(0x80115378, "int last_mdc")
del_items(0x8011537C)
SetType(0x8011537C, "int slnum")
del_items(0x80115380)
SetType(0x80115380, "int slices_to_do")
del_items(0x80115384)
SetType(0x80115384, "int mbuf")
del_items(0x80115388)
SetType(0x80115388, "int mfn")
del_items(0x8011538C)
SetType(0x8011538C, "int last_move_mbuf")
del_items(0x80115390)
SetType(0x80115390, "int move_request")
del_items(0x80115394)
SetType(0x80115394, "int mdec_scale")
del_items(0x80115398)
SetType(0x80115398, "int do_brightness")
del_items(0x8011539C)
SetType(0x8011539C, "int frame_decoded")
del_items(0x801153A0)
SetType(0x801153A0, "int mdec_streaming")
del_items(0x801153A4)
SetType(0x801153A4, "int mdec_stream_size")
del_items(0x801153A8)
SetType(0x801153A8, "int first_stream_frame")
del_items(0x801153AC)
SetType(0x801153AC, "int stream_frames_played")
del_items(0x801153B0)
SetType(0x801153B0, "int num_mdcs")
del_items(0x801153B4)
SetType(0x801153B4, "int mdec_head")
del_items(0x801153B8)
SetType(0x801153B8, "int mdec_tail")
del_items(0x801153BC)
SetType(0x801153BC, "int mdec_waiting_tail")
del_items(0x801153C0)
SetType(0x801153C0, "int mdecs_queued")
del_items(0x801153C4)
SetType(0x801153C4, "int mdecs_waiting")
del_items(0x801153C8)
SetType(0x801153C8, "int sfx_volume")
del_items(0x801153CC)
SetType(0x801153CC, "int stream_chunks_in")
del_items(0x801153D0)
SetType(0x801153D0, "int stream_chunks_total")
del_items(0x801153D4)
SetType(0x801153D4, "int stream_in")
del_items(0x801153D8)
SetType(0x801153D8, "int stream_out")
del_items(0x801153DC)
SetType(0x801153DC, "int stream_stalled")
del_items(0x801153E0)
SetType(0x801153E0, "int stream_ending")
del_items(0x801153E4)
SetType(0x801153E4, "int stream_open")
del_items(0x801153E8)
SetType(0x801153E8, "int stream_handler_installed")
del_items(0x801153EC)
SetType(0x801153EC, "int stream_chunks_borrowed")
del_items(0x801153F0)
SetType(0x801153F0, "int _get_count")
del_items(0x801153F4)
SetType(0x801153F4, "int _discard_count")
del_items(0x801153F8)
SetType(0x801153F8, "struct TASK *CDTask")
del_items(0x801153FC)
SetType(0x801153FC, "struct cdstreamstruct *CDStream")
del_items(0x80115400)
SetType(0x80115400, "int cdready_calls")
del_items(0x80115404)
SetType(0x80115404, "int cdready_errors")
del_items(0x80115408)
SetType(0x80115408, "int cdready_out_of_sync")
del_items(0x8011540C)
SetType(0x8011540C, "int cdstream_resetting")
del_items(0x80115410)
SetType(0x80115410, "int sector_dma")
del_items(0x80115414)
SetType(0x80115414, "int sector_dma_in")
del_items(0x80115418)
SetType(0x80115418, "unsigned long *chkaddr")
del_items(0x8011541C)
SetType(0x8011541C, "struct chunkhdrstruct *chunk")
del_items(0x80115420)
SetType(0x80115420, "int first_handler_event")
del_items(0x80115598)
SetType(0x80115598, "unsigned char *pStatusPanel")
del_items(0x8011559C)
SetType(0x8011559C, "unsigned char *pGBoxBuff")
del_items(0x801155A0)
SetType(0x801155A0, "unsigned char dropGoldFlag")
del_items(0x801155A4)
SetType(0x801155A4, "unsigned char _pinfoflag[2]")
del_items(0x800A9454)
SetType(0x800A9454, "char _infostr[256][2]")
del_items(0x801155A8)
SetType(0x801155A8, "char _infoclr[2]")
del_items(0x800A9654)
SetType(0x800A9654, "char tempstr[256]")
del_items(0x801155AA)
SetType(0x801155AA, "unsigned char drawhpflag")
del_items(0x801155AB)
SetType(0x801155AB, "unsigned char drawmanaflag")
del_items(0x801155AC)
SetType(0x801155AC, "unsigned char chrflag")
del_items(0x801155AD)
SetType(0x801155AD, "unsigned char drawbtnflag")
del_items(0x801155AE)
SetType(0x801155AE, "unsigned char panbtndown")
del_items(0x801155AF)
SetType(0x801155AF, "unsigned char panelflag")
del_items(0x801155B0)
SetType(0x801155B0, "unsigned char chrbtndown")
del_items(0x801155B1)
SetType(0x801155B1, "unsigned char lvlbtndown")
del_items(0x801155B2)
SetType(0x801155B2, "unsigned char sbookflag")
del_items(0x801155B3)
SetType(0x801155B3, "unsigned char talkflag")
del_items(0x801155B4)
SetType(0x801155B4, "int dropGoldValue")
del_items(0x801155B8)
SetType(0x801155B8, "int initialDropGoldValue")
del_items(0x801155BC)
SetType(0x801155BC, "int initialDropGoldIndex")
del_items(0x801155C0)
SetType(0x801155C0, "unsigned char *pPanelButtons")
del_items(0x801155C4)
SetType(0x801155C4, "unsigned char *pPanelText")
del_items(0x801155C8)
SetType(0x801155C8, "unsigned char *pManaBuff")
del_items(0x801155CC)
SetType(0x801155CC, "unsigned char *pLifeBuff")
del_items(0x801155D0)
SetType(0x801155D0, "unsigned char *pChrPanel")
del_items(0x801155D4)
SetType(0x801155D4, "unsigned char *pChrButtons")
del_items(0x801155D8)
SetType(0x801155D8, "unsigned char *pSpellCels")
del_items(0x80116E00)
SetType(0x80116E00, "char _panelstr[64][8][2]")
del_items(0x80117200)
SetType(0x80117200, "int _pstrjust[8][2]")
del_items(0x8011647C)
SetType(0x8011647C, "int _pnumlines[2]")
del_items(0x801155DC)
SetType(0x801155DC, "struct RECT *InfoBoxRect")
del_items(0x801155E0)
SetType(0x801155E0, "struct RECT CSRect")
del_items(0x8011648C)
SetType(0x8011648C, "int _pSpell[2]")
del_items(0x80116494)
SetType(0x80116494, "int _pSplType[2]")
del_items(0x8011649C)
SetType(0x8011649C, "unsigned char panbtn[8]")
del_items(0x801155E8)
SetType(0x801155E8, "int numpanbtns")
del_items(0x801155EC)
SetType(0x801155EC, "unsigned char *pDurIcons")
del_items(0x801155F0)
SetType(0x801155F0, "unsigned char drawdurflag")
del_items(0x801164A4)
SetType(0x801164A4, "unsigned char chrbtn[4]")
del_items(0x801155F1)
SetType(0x801155F1, "unsigned char chrbtnactive")
del_items(0x801155F4)
SetType(0x801155F4, "unsigned char *pSpellBkCel")
del_items(0x801155F8)
SetType(0x801155F8, "unsigned char *pSBkBtnCel")
del_items(0x801155FC)
SetType(0x801155FC, "unsigned char *pSBkIconCels")
del_items(0x80115600)
SetType(0x80115600, "int sbooktab")
del_items(0x80115604)
SetType(0x80115604, "int cur_spel")
del_items(0x801164A8)
SetType(0x801164A8, "long talkofs")
del_items(0x80117250)
SetType(0x80117250, "char sgszTalkMsg[80]")
del_items(0x801164AC)
SetType(0x801164AC, "unsigned char sgbTalkSavePos")
del_items(0x801164AD)
SetType(0x801164AD, "unsigned char sgbNextTalkSave")
del_items(0x801164AE)
SetType(0x801164AE, "unsigned char sgbPlrTalkTbl[2]")
del_items(0x801164B0)
SetType(0x801164B0, "unsigned char *pTalkPanel")
del_items(0x801164B4)
SetType(0x801164B4, "unsigned char *pMultiBtns")
del_items(0x801164B8)
SetType(0x801164B8, "unsigned char *pTalkBtns")
del_items(0x801164BC)
SetType(0x801164BC, "unsigned char talkbtndown[3]")
del_items(0x8010B408)
SetType(0x8010B408, "unsigned char gbFontTransTbl[256]")
del_items(0x8010B348)
SetType(0x8010B348, "unsigned char fontkern[68]")
del_items(0x800A8E88)
SetType(0x800A8E88, "char SpellITbl[37]")
del_items(0x80115505)
SetType(0x80115505, "unsigned char DrawLevelUpFlag")
del_items(0x8011552C)
SetType(0x8011552C, "struct TASK *_spselflag[2]")
del_items(0x80115528)
SetType(0x80115528, "unsigned char spspelstate")
del_items(0x80115568)
SetType(0x80115568, "bool initchr")
del_items(0x80115508)
SetType(0x80115508, "int SPLICONNO")
del_items(0x8011550C)
SetType(0x8011550C, "int SPLICONY")
del_items(0x80116484)
SetType(0x80116484, "int SPLICONRIGHT")
del_items(0x80115510)
SetType(0x80115510, "int scx")
del_items(0x80115514)
SetType(0x80115514, "int scy")
del_items(0x80115518)
SetType(0x80115518, "int scx1")
del_items(0x8011551C)
SetType(0x8011551C, "int scy1")
del_items(0x80115520)
SetType(0x80115520, "int scx2")
del_items(0x80115524)
SetType(0x80115524, "int scy2")
del_items(0x80115534)
SetType(0x80115534, "char SpellCol")
del_items(0x800A8E74)
SetType(0x800A8E74, "unsigned char SpellColors[18]")
del_items(0x800A8EB0)
SetType(0x800A8EB0, "int PanBtnPos[5][8]")
del_items(0x800A8F50)
SetType(0x800A8F50, "char *PanBtnHotKey[8]")
del_items(0x800A8F70)
SetType(0x800A8F70, "unsigned long PanBtnStr[8]")
del_items(0x800A8F90)
SetType(0x800A8F90, "int SpellPages[5][5]")
del_items(0x80115558)
SetType(0x80115558, "int lus")
del_items(0x8011555C)
SetType(0x8011555C, "int CsNo")
del_items(0x80115560)
SetType(0x80115560, "char plusanim")
del_items(0x80117240)
SetType(0x80117240, "struct Dialog CSBack")
del_items(0x80115564)
SetType(0x80115564, "int CS_XOFF")
del_items(0x800A8FF4)
SetType(0x800A8FF4, "struct CSDATA CS_Tab[28]")
del_items(0x8011556C)
SetType(0x8011556C, "int NoCSEntries")
del_items(0x80115570)
SetType(0x80115570, "int SPALOFF")
del_items(0x80115574)
SetType(0x80115574, "int paloffset1")
del_items(0x80115578)
SetType(0x80115578, "int paloffset2")
del_items(0x8011557C)
SetType(0x8011557C, "int paloffset3")
del_items(0x80115580)
SetType(0x80115580, "int paloffset4")
del_items(0x80115584)
SetType(0x80115584, "int pinc1")
del_items(0x80115588)
SetType(0x80115588, "int pinc2")
del_items(0x8011558C)
SetType(0x8011558C, "int pinc3")
del_items(0x80115590)
SetType(0x80115590, "int pinc4")
del_items(0x80115618)
SetType(0x80115618, "int _pcurs[2]")
del_items(0x80115620)
SetType(0x80115620, "int cursW")
del_items(0x80115624)
SetType(0x80115624, "int cursH")
del_items(0x80115628)
SetType(0x80115628, "int icursW")
del_items(0x8011562C)
SetType(0x8011562C, "int icursH")
del_items(0x80115630)
SetType(0x80115630, "int icursW28")
del_items(0x80115634)
SetType(0x80115634, "int icursH28")
del_items(0x80115638)
SetType(0x80115638, "int cursmx")
del_items(0x8011563C)
SetType(0x8011563C, "int cursmy")
del_items(0x80115640)
SetType(0x80115640, "int _pcursmonst[2]")
del_items(0x80115648)
SetType(0x80115648, "char _pcursobj[2]")
del_items(0x8011564C)
SetType(0x8011564C, "char _pcursitem[2]")
del_items(0x80115650)
SetType(0x80115650, "char _pcursinvitem[2]")
del_items(0x80115654)
SetType(0x80115654, "char _pcursplr[2]")
del_items(0x80115614)
SetType(0x80115614, "int sel_data")
del_items(0x800A9754)
SetType(0x800A9754, "struct DeadStruct dead[31]")
del_items(0x80115658)
SetType(0x80115658, "int spurtndx")
del_items(0x8011565C)
SetType(0x8011565C, "int stonendx")
del_items(0x80115660)
SetType(0x80115660, "unsigned char *pSquareCel")
del_items(0x801156A0)
SetType(0x801156A0, "unsigned long ghInst")
del_items(0x801156A4)
SetType(0x801156A4, "unsigned char svgamode")
del_items(0x801156A8)
SetType(0x801156A8, "int MouseX")
del_items(0x801156AC)
SetType(0x801156AC, "int MouseY")
del_items(0x801156B0)
SetType(0x801156B0, "long gv1")
del_items(0x801156B4)
SetType(0x801156B4, "long gv2")
del_items(0x801156B8)
SetType(0x801156B8, "long gv3")
del_items(0x801156BC)
SetType(0x801156BC, "long gv4")
del_items(0x801156C0)
SetType(0x801156C0, "long gv5")
del_items(0x801156C4)
SetType(0x801156C4, "unsigned char gbProcessPlayers")
del_items(0x800A98C8)
SetType(0x800A98C8, "int DebugMonsters[10]")
del_items(0x800A98F0)
SetType(0x800A98F0, "unsigned long glSeedTbl[17]")
del_items(0x800A9934)
SetType(0x800A9934, "int gnLevelTypeTbl[17]")
del_items(0x801156C5)
SetType(0x801156C5, "unsigned char gbDoEnding")
del_items(0x801156C6)
SetType(0x801156C6, "unsigned char gbRunGame")
del_items(0x801156C7)
SetType(0x801156C7, "unsigned char gbRunGameResult")
del_items(0x801156C8)
SetType(0x801156C8, "unsigned char gbGameLoopStartup")
del_items(0x801172A0)
SetType(0x801172A0, "int glEndSeed[17]")
del_items(0x801172F0)
SetType(0x801172F0, "int glMid1Seed[17]")
del_items(0x80117340)
SetType(0x80117340, "int glMid2Seed[17]")
del_items(0x80117390)
SetType(0x80117390, "int glMid3Seed[17]")
del_items(0x801164C0)
SetType(0x801164C0, "long *sg_previousFilter")
del_items(0x800A9978)
SetType(0x800A9978, "int CreateEnv[12]")
del_items(0x801156CC)
SetType(0x801156CC, "int Passedlvldir")
del_items(0x801156D0)
SetType(0x801156D0, "unsigned char *TempStack")
del_items(0x80115670)
SetType(0x80115670, "unsigned long ghMainWnd")
del_items(0x80115674)
SetType(0x80115674, "unsigned char fullscreen")
del_items(0x80115678)
SetType(0x80115678, "int force_redraw")
del_items(0x8011568C)
SetType(0x8011568C, "unsigned char PauseMode")
del_items(0x8011568D)
SetType(0x8011568D, "unsigned char FriendlyMode")
del_items(0x8011567D)
SetType(0x8011567D, "unsigned char visiondebug")
del_items(0x8011567F)
SetType(0x8011567F, "unsigned char light4flag")
del_items(0x80115680)
SetType(0x80115680, "unsigned char leveldebug")
del_items(0x80115681)
SetType(0x80115681, "unsigned char monstdebug")
del_items(0x80115688)
SetType(0x80115688, "int debugmonsttypes")
del_items(0x8011567C)
SetType(0x8011567C, "unsigned char cineflag")
del_items(0x8011567E)
SetType(0x8011567E, "unsigned char scrollflag")
del_items(0x80115682)
SetType(0x80115682, "unsigned char trigdebug")
del_items(0x80115684)
SetType(0x80115684, "int setseed")
del_items(0x80115690)
SetType(0x80115690, "int sgnTimeoutCurs")
del_items(0x80115694)
SetType(0x80115694, "unsigned char sgbMouseDown")
del_items(0x800AA044)
SetType(0x800AA044, "struct TownerStruct towner[16]")
del_items(0x801156E8)
SetType(0x801156E8, "int numtowners")
del_items(0x801156EC)
SetType(0x801156EC, "unsigned char storeflag")
del_items(0x801156ED)
SetType(0x801156ED, "unsigned char boyloadflag")
del_items(0x801156EE)
SetType(0x801156EE, "unsigned char bannerflag")
del_items(0x801156F0)
SetType(0x801156F0, "unsigned char *pCowCels")
del_items(0x801164C4)
SetType(0x801164C4, "unsigned long sgdwCowClicks")
del_items(0x801164C8)
SetType(0x801164C8, "int sgnCowMsg")
del_items(0x800A9D84)
SetType(0x800A9D84, "int Qtalklist[16][11]")
del_items(0x801156E0)
SetType(0x801156E0, "unsigned long CowPlaying")
del_items(0x800A99A8)
SetType(0x800A99A8, "char AnimOrder[148][6]")
del_items(0x800A9D20)
SetType(0x800A9D20, "int TownCowX[3]")
del_items(0x800A9D2C)
SetType(0x800A9D2C, "int TownCowY[3]")
del_items(0x800A9D38)
SetType(0x800A9D38, "int TownCowDir[3]")
del_items(0x800A9D44)
SetType(0x800A9D44, "int cowoffx[8]")
del_items(0x800A9D64)
SetType(0x800A9D64, "int cowoffy[8]")
del_items(0x80115708)
SetType(0x80115708, "int sfxdelay")
del_items(0x8011570C)
SetType(0x8011570C, "int sfxdnum")
del_items(0x80115700)
SetType(0x80115700, "struct SFXHDR *sghStream")
del_items(0x800AAE44)
SetType(0x800AAE44, "struct TSFX sgSFX[979]")
del_items(0x80115704)
SetType(0x80115704, "struct TSFX *sgpStreamSFX")
del_items(0x80115710)
SetType(0x80115710, "long orgseed")
del_items(0x801164CC)
SetType(0x801164CC, "long sglGameSeed")
del_items(0x80115714)
SetType(0x80115714, "int SeedCount")
del_items(0x801164D0)
SetType(0x801164D0, "struct CCritSect sgMemCrit")
del_items(0x801164D4)
SetType(0x801164D4, "int sgnWidth")
del_items(0x80115722)
SetType(0x80115722, "char msgflag")
del_items(0x80115723)
SetType(0x80115723, "char msgdelay")
del_items(0x800ABE40)
SetType(0x800ABE40, "char msgtable[80]")
del_items(0x800ABD90)
SetType(0x800ABD90, "int MsgStrings[44]")
del_items(0x80115721)
SetType(0x80115721, "char msgcnt")
del_items(0x801164D8)
SetType(0x801164D8, "unsigned long sgdwProgress")
del_items(0x801164DC)
SetType(0x801164DC, "unsigned long sgdwXY")
del_items(0x800ABE90)
SetType(0x800ABE90, "unsigned char AllItemsUseable[157]")
del_items(0x8010B840)
SetType(0x8010B840, "struct ItemDataStruct AllItemsList[157]")
del_items(0x8010CBE0)
SetType(0x8010CBE0, "struct PLStruct PL_Prefix[84]")
del_items(0x8010D900)
SetType(0x8010D900, "struct PLStruct PL_Suffix[96]")
del_items(0x8010E800)
SetType(0x8010E800, "struct UItemStruct UniqueItemList[91]")
del_items(0x800AC0A4)
SetType(0x800AC0A4, "struct ItemStruct item[128]")
del_items(0x800B0AA4)
SetType(0x800B0AA4, "char itemactive[127]")
del_items(0x800B0B24)
SetType(0x800B0B24, "char itemavail[127]")
del_items(0x800B0BA4)
SetType(0x800B0BA4, "unsigned char UniqueItemFlag[128]")
del_items(0x8011575C)
SetType(0x8011575C, "unsigned char uitemflag")
del_items(0x801164E0)
SetType(0x801164E0, "int tem")
del_items(0x801173D8)
SetType(0x801173D8, "struct ItemStruct curruitem")
del_items(0x80117478)
SetType(0x80117478, "unsigned char itemhold[3][3]")
del_items(0x80115760)
SetType(0x80115760, "int ScrollType")
del_items(0x800B0C24)
SetType(0x800B0C24, "char ItemStr[64]")
del_items(0x800B0C64)
SetType(0x800B0C64, "char SufStr[64]")
del_items(0x8011573C)
SetType(0x8011573C, "long numitems")
del_items(0x80115740)
SetType(0x80115740, "int gnNumGetRecords")
del_items(0x800AC000)
SetType(0x800AC000, "int ItemInvSnds[35]")
del_items(0x800ABF30)
SetType(0x800ABF30, "unsigned char ItemCAnimTbl[169]")
del_items(0x80110644)
SetType(0x80110644, "short Item2Frm[35]")
del_items(0x800ABFDC)
SetType(0x800ABFDC, "unsigned char ItemAnimLs[35]")
del_items(0x80115744)
SetType(0x80115744, "int *ItemAnimSnds")
del_items(0x80115748)
SetType(0x80115748, "int idoppely")
del_items(0x8011574C)
SetType(0x8011574C, "int ScrollFlag")
del_items(0x800AC08C)
SetType(0x800AC08C, "int premiumlvladd[6]")
del_items(0x800B1A50)
SetType(0x800B1A50, "struct LightListStruct2 LightList[40]")
del_items(0x800B1B90)
SetType(0x800B1B90, "unsigned char lightactive[40]")
del_items(0x80115774)
SetType(0x80115774, "int numlights")
del_items(0x80115778)
SetType(0x80115778, "char lightmax")
del_items(0x800B1BB8)
SetType(0x800B1BB8, "struct LightListStruct VisionList[32]")
del_items(0x8011577C)
SetType(0x8011577C, "int numvision")
del_items(0x80115780)
SetType(0x80115780, "unsigned char dovision")
del_items(0x80115784)
SetType(0x80115784, "int visionid")
del_items(0x801164E4)
SetType(0x801164E4, "int disp_mask")
del_items(0x801164E8)
SetType(0x801164E8, "int weird")
del_items(0x801164EC)
SetType(0x801164EC, "int disp_tab_r")
del_items(0x801164F0)
SetType(0x801164F0, "int dispy_r")
del_items(0x801164F4)
SetType(0x801164F4, "int disp_tab_g")
del_items(0x801164F8)
SetType(0x801164F8, "int dispy_g")
del_items(0x801164FC)
SetType(0x801164FC, "int disp_tab_b")
del_items(0x80116500)
SetType(0x80116500, "int dispy_b")
del_items(0x80116504)
SetType(0x80116504, "int radius")
del_items(0x80116508)
SetType(0x80116508, "int bright")
del_items(0x80117488)
SetType(0x80117488, "unsigned char mult_tab[128]")
del_items(0x80115764)
SetType(0x80115764, "int lightflag")
del_items(0x800B1764)
SetType(0x800B1764, "unsigned char vCrawlTable[30][23]")
del_items(0x800B1A18)
SetType(0x800B1A18, "unsigned char RadiusAdj[23]")
del_items(0x800B0CA4)
SetType(0x800B0CA4, "char CrawlTable[2749]")
del_items(0x80115768)
SetType(0x80115768, "int restore_r")
del_items(0x8011576C)
SetType(0x8011576C, "int restore_g")
del_items(0x80115770)
SetType(0x80115770, "int restore_b")
del_items(0x800B1A30)
SetType(0x800B1A30, "char radius_tab[16]")
del_items(0x800B1A40)
SetType(0x800B1A40, "char bright_tab[16]")
del_items(0x801157A6)
SetType(0x801157A6, "unsigned char qtextflag")
del_items(0x801157A8)
SetType(0x801157A8, "int qtextSpd")
del_items(0x8011650C)
SetType(0x8011650C, "unsigned char *pMedTextCels")
del_items(0x80116510)
SetType(0x80116510, "unsigned char *pTextBoxCels")
del_items(0x80116514)
SetType(0x80116514, "char *qtextptr")
del_items(0x80116518)
SetType(0x80116518, "int qtexty")
del_items(0x8011651C)
SetType(0x8011651C, "unsigned long qtextDelay")
del_items(0x80116520)
SetType(0x80116520, "unsigned long sgLastScroll")
del_items(0x80116524)
SetType(0x80116524, "unsigned long scrolltexty")
del_items(0x80116528)
SetType(0x80116528, "long sglMusicVolumeSave")
del_items(0x80115794)
SetType(0x80115794, "bool qtbodge")
del_items(0x800B1D78)
SetType(0x800B1D78, "struct Dialog QBack")
del_items(0x801157A5)
SetType(0x801157A5, "unsigned char CDFlip")
del_items(0x800B1D88)
SetType(0x800B1D88, "struct MissileData missiledata[68]")
del_items(0x800B24F8)
SetType(0x800B24F8, "struct MisFileData misfiledata[47]")
del_items(0x800B23E8)
SetType(0x800B23E8, "void (*MissPrintRoutines[68])()")
del_items(0x800B25E4)
SetType(0x800B25E4, "struct DLevel sgLevels[21]")
del_items(0x800C6330)
SetType(0x800C6330, "struct LocalLevel sgLocals[21]")
del_items(0x80117508)
SetType(0x80117508, "struct DJunk sgJunk")
del_items(0x8011652D)
SetType(0x8011652D, "unsigned char sgbRecvCmd")
del_items(0x80116530)
SetType(0x80116530, "unsigned long sgdwRecvOffset")
del_items(0x80116534)
SetType(0x80116534, "unsigned char sgbDeltaChunks")
del_items(0x80116535)
SetType(0x80116535, "unsigned char sgbDeltaChanged")
del_items(0x80116538)
SetType(0x80116538, "unsigned long sgdwOwnerWait")
del_items(0x8011653C)
SetType(0x8011653C, "struct TMegaPkt *sgpMegaPkt")
del_items(0x80116540)
SetType(0x80116540, "struct TMegaPkt *sgpCurrPkt")
del_items(0x80116544)
SetType(0x80116544, "int sgnCurrMegaPlayer")
del_items(0x801157C1)
SetType(0x801157C1, "unsigned char deltaload")
del_items(0x801157C2)
SetType(0x801157C2, "unsigned char gbBufferMsgs")
del_items(0x801157C4)
SetType(0x801157C4, "unsigned long dwRecCount")
del_items(0x801157C8)
SetType(0x801157C8, "bool LevelOut")
del_items(0x801157DE)
SetType(0x801157DE, "unsigned char gbMaxPlayers")
del_items(0x801157DF)
SetType(0x801157DF, "unsigned char gbActivePlayers")
del_items(0x801157E0)
SetType(0x801157E0, "unsigned char gbGameDestroyed")
del_items(0x801157E1)
SetType(0x801157E1, "unsigned char gbDeltaSender")
del_items(0x801157E2)
SetType(0x801157E2, "unsigned char gbSelectProvider")
del_items(0x801157E3)
SetType(0x801157E3, "unsigned char gbSomebodyWonGameKludge")
del_items(0x80116548)
SetType(0x80116548, "unsigned char sgbSentThisCycle")
del_items(0x8011654C)
SetType(0x8011654C, "unsigned long sgdwGameLoops")
del_items(0x80116550)
SetType(0x80116550, "unsigned short sgwPackPlrOffsetTbl[2]")
del_items(0x80116554)
SetType(0x80116554, "unsigned char sgbPlayerLeftGameTbl[2]")
del_items(0x80116558)
SetType(0x80116558, "unsigned long sgdwPlayerLeftReasonTbl[2]")
del_items(0x80116560)
SetType(0x80116560, "unsigned char sgbSendDeltaTbl[2]")
del_items(0x80116568)
SetType(0x80116568, "struct _gamedata sgGameInitInfo")
del_items(0x80116570)
SetType(0x80116570, "unsigned char sgbTimeout")
del_items(0x80116574)
SetType(0x80116574, "long sglTimeoutStart")
del_items(0x801157D8)
SetType(0x801157D8, "char gszVersionNumber[5]")
del_items(0x801157DD)
SetType(0x801157DD, "unsigned char sgbNetInited")
del_items(0x800C7398)
SetType(0x800C7398, "int ObjTypeConv[113]")
del_items(0x800C755C)
SetType(0x800C755C, "struct ObjDataStruct AllObjects[99]")
del_items(0x80110D0C)
SetType(0x80110D0C, "struct OBJ_LOAD_INFO ObjMasterLoadList[56]")
del_items(0x800C7D3C)
SetType(0x800C7D3C, "struct ObjectStruct object[127]")
del_items(0x80115804)
SetType(0x80115804, "long numobjects")
del_items(0x800C9310)
SetType(0x800C9310, "char objectactive[127]")
del_items(0x800C9390)
SetType(0x800C9390, "char objectavail[127]")
del_items(0x80115808)
SetType(0x80115808, "unsigned char InitObjFlag")
del_items(0x8011580C)
SetType(0x8011580C, "int trapid")
del_items(0x800C9410)
SetType(0x800C9410, "char ObjFileList[40]")
del_items(0x80115810)
SetType(0x80115810, "int trapdir")
del_items(0x80115814)
SetType(0x80115814, "int leverid")
del_items(0x801157FC)
SetType(0x801157FC, "int numobjfiles")
del_items(0x800C7C54)
SetType(0x800C7C54, "int bxadd[8]")
del_items(0x800C7C74)
SetType(0x800C7C74, "int byadd[8]")
del_items(0x800C7CFC)
SetType(0x800C7CFC, "char shrineavail[26]")
del_items(0x800C7C94)
SetType(0x800C7C94, "int shrinestrs[26]")
del_items(0x800C7D18)
SetType(0x800C7D18, "int StoryBookName[9]")
del_items(0x80115800)
SetType(0x80115800, "int myscale")
del_items(0x80115828)
SetType(0x80115828, "unsigned char gbValidSaveFile")
del_items(0x80115824)
SetType(0x80115824, "bool DoLoadedChar")
del_items(0x800C9630)
SetType(0x800C9630, "struct PlayerStruct plr[2]")
del_items(0x80115848)
SetType(0x80115848, "int myplr")
del_items(0x8011584C)
SetType(0x8011584C, "int deathdelay")
del_items(0x80115850)
SetType(0x80115850, "unsigned char deathflag")
del_items(0x80115851)
SetType(0x80115851, "char light_rad")
del_items(0x80115840)
SetType(0x80115840, "char light_level[5]")
del_items(0x800C9528)
SetType(0x800C9528, "int MaxStats[4][3]")
del_items(0x80115838)
SetType(0x80115838, "int PlrStructSize")
del_items(0x8011583C)
SetType(0x8011583C, "int ItemStructSize")
del_items(0x800C9438)
SetType(0x800C9438, "int plrxoff[9]")
del_items(0x800C945C)
SetType(0x800C945C, "int plryoff[9]")
del_items(0x800C9480)
SetType(0x800C9480, "int plrxoff2[9]")
del_items(0x800C94A4)
SetType(0x800C94A4, "int plryoff2[9]")
del_items(0x800C94C8)
SetType(0x800C94C8, "char PlrGFXAnimLens[11][3]")
del_items(0x800C94EC)
SetType(0x800C94EC, "int StrengthTbl[3]")
del_items(0x800C94F8)
SetType(0x800C94F8, "int MagicTbl[3]")
del_items(0x800C9504)
SetType(0x800C9504, "int DexterityTbl[3]")
del_items(0x800C9510)
SetType(0x800C9510, "int VitalityTbl[3]")
del_items(0x800C951C)
SetType(0x800C951C, "int ToBlkTbl[3]")
del_items(0x800C9558)
SetType(0x800C9558, "long ExpLvlsTbl[51]")
del_items(0x800CDCF8)
SetType(0x800CDCF8, "struct QuestStruct quests[16]")
del_items(0x80115890)
SetType(0x80115890, "unsigned char *pQLogCel")
del_items(0x80115894)
SetType(0x80115894, "int ReturnLvlX")
del_items(0x80115898)
SetType(0x80115898, "int ReturnLvlY")
del_items(0x8011589C)
SetType(0x8011589C, "int ReturnLvl")
del_items(0x801158A0)
SetType(0x801158A0, "int ReturnLvlT")
del_items(0x801158A4)
SetType(0x801158A4, "unsigned char rporttest")
del_items(0x801158A8)
SetType(0x801158A8, "int qline")
del_items(0x801158AC)
SetType(0x801158AC, "int numqlines")
del_items(0x801158B0)
SetType(0x801158B0, "int qtopline")
del_items(0x80117528)
SetType(0x80117528, "int qlist[16]")
del_items(0x80116578)
SetType(0x80116578, "struct RECT QSRect")
del_items(0x8011585D)
SetType(0x8011585D, "unsigned char questlog")
del_items(0x800CDBC0)
SetType(0x800CDBC0, "struct QuestData questlist[16]")
del_items(0x80115860)
SetType(0x80115860, "int ALLQUESTS")
del_items(0x800CDCD4)
SetType(0x800CDCD4, "int QuestGroup1[3]")
del_items(0x800CDCE0)
SetType(0x800CDCE0, "int QuestGroup2[3]")
del_items(0x800CDCEC)
SetType(0x800CDCEC, "int QuestGroup3[3]")
del_items(0x80115874)
SetType(0x80115874, "int QuestGroup4[2]")
del_items(0x8011588C)
SetType(0x8011588C, "bool WaterDone")
del_items(0x80115864)
SetType(0x80115864, "char questxoff[7]")
del_items(0x8011586C)
SetType(0x8011586C, "char questyoff[7]")
del_items(0x800CDCC0)
SetType(0x800CDCC0, "int questtrigstr[5]")
del_items(0x8011587C)
SetType(0x8011587C, "int QS_PX")
del_items(0x80115880)
SetType(0x80115880, "int QS_PY")
del_items(0x80115884)
SetType(0x80115884, "int QS_PW")
del_items(0x80115888)
SetType(0x80115888, "int QS_PH")
del_items(0x80117568)
SetType(0x80117568, "struct Dialog QSBack")
del_items(0x800CDE38)
SetType(0x800CDE38, "struct SpellData spelldata[37]")
del_items(0x801158EF)
SetType(0x801158EF, "char stextflag")
del_items(0x800CE690)
SetType(0x800CE690, "struct ItemStruct smithitem[20]")
del_items(0x800CF220)
SetType(0x800CF220, "struct ItemStruct premiumitem[6]")
del_items(0x801158F0)
SetType(0x801158F0, "int numpremium")
del_items(0x801158F4)
SetType(0x801158F4, "int premiumlevel")
del_items(0x800CF598)
SetType(0x800CF598, "struct ItemStruct witchitem[20]")
del_items(0x800D0128)
SetType(0x800D0128, "struct ItemStruct boyitem")
del_items(0x801158F8)
SetType(0x801158F8, "int boylevel")
del_items(0x800D01BC)
SetType(0x800D01BC, "struct ItemStruct golditem")
del_items(0x800D0250)
SetType(0x800D0250, "struct ItemStruct healitem[20]")
del_items(0x801158FC)
SetType(0x801158FC, "char stextsize")
del_items(0x801158FD)
SetType(0x801158FD, "unsigned char stextscrl")
del_items(0x80116580)
SetType(0x80116580, "int stextsel")
del_items(0x80116584)
SetType(0x80116584, "int stextlhold")
del_items(0x80116588)
SetType(0x80116588, "int stextshold")
del_items(0x8011658C)
SetType(0x8011658C, "int stextvhold")
del_items(0x80116590)
SetType(0x80116590, "int stextsval")
del_items(0x80116594)
SetType(0x80116594, "int stextsmax")
del_items(0x80116598)
SetType(0x80116598, "int stextup")
del_items(0x8011659C)
SetType(0x8011659C, "int stextdown")
del_items(0x801165A0)
SetType(0x801165A0, "char stextscrlubtn")
del_items(0x801165A1)
SetType(0x801165A1, "char stextscrldbtn")
del_items(0x801165A2)
SetType(0x801165A2, "char SItemListFlag")
del_items(0x80117578)
SetType(0x80117578, "struct STextStruct stext[24]")
del_items(0x800D0DE0)
SetType(0x800D0DE0, "struct ItemStruct storehold[48]")
del_items(0x800D29A0)
SetType(0x800D29A0, "char storehidx[48]")
del_items(0x801165A4)
SetType(0x801165A4, "int storenumh")
del_items(0x801165A8)
SetType(0x801165A8, "int gossipstart")
del_items(0x801165AC)
SetType(0x801165AC, "int gossipend")
del_items(0x801165B0)
SetType(0x801165B0, "struct RECT StoreBackRect")
del_items(0x801165B8)
SetType(0x801165B8, "int talker")
del_items(0x801158D8)
SetType(0x801158D8, "unsigned char *pSTextBoxCels")
del_items(0x801158DC)
SetType(0x801158DC, "unsigned char *pSTextSlidCels")
del_items(0x801158E0)
SetType(0x801158E0, "int *SStringY")
del_items(0x800CE5BC)
SetType(0x800CE5BC, "struct Dialog SBack")
del_items(0x800CE5CC)
SetType(0x800CE5CC, "int SStringYNorm[20]")
del_items(0x800CE61C)
SetType(0x800CE61C, "int SStringYBuy[20]")
del_items(0x800CE66C)
SetType(0x800CE66C, "int talkname[9]")
del_items(0x801158EE)
SetType(0x801158EE, "unsigned char InStoreFlag")
del_items(0x80111F20)
SetType(0x80111F20, "struct TextDataStruct alltext[269]")
del_items(0x8011590C)
SetType(0x8011590C, "unsigned long gdwAllTextEntries")
del_items(0x801165BC)
SetType(0x801165BC, "unsigned char *P3Tiles")
del_items(0x8011591C)
SetType(0x8011591C, "int tile")
del_items(0x8011592C)
SetType(0x8011592C, "unsigned char _trigflag[2]")
del_items(0x800D2C08)
SetType(0x800D2C08, "struct TriggerStruct trigs[5]")
del_items(0x80115930)
SetType(0x80115930, "int numtrigs")
del_items(0x80115934)
SetType(0x80115934, "unsigned char townwarps[3]")
del_items(0x80115938)
SetType(0x80115938, "int TWarpFrom")
del_items(0x800D29D0)
SetType(0x800D29D0, "int TownDownList[11]")
del_items(0x800D29FC)
SetType(0x800D29FC, "int TownWarp1List[13]")
del_items(0x800D2A30)
SetType(0x800D2A30, "int L1UpList[12]")
del_items(0x800D2A60)
SetType(0x800D2A60, "int L1DownList[10]")
del_items(0x800D2A88)
SetType(0x800D2A88, "int L2UpList[3]")
del_items(0x800D2A94)
SetType(0x800D2A94, "int L2DownList[5]")
del_items(0x800D2AA8)
SetType(0x800D2AA8, "int L2TWarpUpList[3]")
del_items(0x800D2AB4)
SetType(0x800D2AB4, "int L3UpList[15]")
del_items(0x800D2AF0)
SetType(0x800D2AF0, "int L3DownList[9]")
del_items(0x800D2B14)
SetType(0x800D2B14, "int L3TWarpUpList[14]")
del_items(0x800D2B4C)
SetType(0x800D2B4C, "int L4UpList[4]")
del_items(0x800D2B5C)
SetType(0x800D2B5C, "int L4DownList[6]")
del_items(0x800D2B74)
SetType(0x800D2B74, "int L4TWarpUpList[4]")
del_items(0x800D2B84)
SetType(0x800D2B84, "int L4PentaList[33]")
del_items(0x80112CB0)
SetType(0x80112CB0, "char cursoff[10]")
del_items(0x80115952)
SetType(0x80115952, "unsigned char gbMusicOn")
del_items(0x80115953)
SetType(0x80115953, "unsigned char gbSoundOn")
del_items(0x80115951)
SetType(0x80115951, "unsigned char gbSndInited")
del_items(0x80115958)
SetType(0x80115958, "long sglMasterVolume")
del_items(0x8011595C)
SetType(0x8011595C, "long sglMusicVolume")
del_items(0x80115960)
SetType(0x80115960, "long sglSoundVolume")
del_items(0x80115964)
SetType(0x80115964, "long sglSpeechVolume")
del_items(0x80115954)
SetType(0x80115954, "unsigned char gbDupSounds")
del_items(0x80115968)
SetType(0x80115968, "int sgnMusicTrack")
del_items(0x8011596C)
SetType(0x8011596C, "struct SFXHDR *sghMusic")
del_items(0x80112D5C)
SetType(0x80112D5C, "unsigned short sgszMusicTracks[6]")
del_items(0x80115990)
SetType(0x80115990, "int _pcurr_inv[2]")
del_items(0x800D2C58)
SetType(0x800D2C58, "struct found_objects _pfind_list[10][2]")
del_items(0x80115998)
SetType(0x80115998, "char _pfind_index[2]")
del_items(0x8011599C)
SetType(0x8011599C, "char _pfindx[2]")
del_items(0x801159A0)
SetType(0x801159A0, "char _pfindy[2]")
del_items(0x801159A2)
SetType(0x801159A2, "unsigned char automapmoved")
del_items(0x80115984)
SetType(0x80115984, "unsigned char flyflag")
del_items(0x8011597C)
SetType(0x8011597C, "char (*pad_styles[2])()")
del_items(0x80115985)
SetType(0x80115985, "char speed_type")
del_items(0x80115986)
SetType(0x80115986, "char sel_speed")
del_items(0x801165C0)
SetType(0x801165C0, "unsigned long (*CurrentProc)()")
del_items(0x80112EF8)
SetType(0x80112EF8, "struct MESSAGE_STR AllMsgs[12]")
del_items(0x801159DC)
SetType(0x801159DC, "int NumOfStrings")
del_items(0x801159B0)
SetType(0x801159B0, "enum LANG_TYPE LanguageType")
del_items(0x801159B4)
SetType(0x801159B4, "long hndText")
del_items(0x801159B8)
SetType(0x801159B8, "char **TextPtr")
del_items(0x801159BC)
SetType(0x801159BC, "enum LANG_DB_NO LangDbNo")
del_items(0x801159EC)
SetType(0x801159EC, "struct TextDat *MissDat")
del_items(0x801159F0)
SetType(0x801159F0, "int CharFade")
del_items(0x801159F4)
SetType(0x801159F4, "int rotateness")
del_items(0x801159F8)
SetType(0x801159F8, "int spiralling_shape")
del_items(0x801159FC)
SetType(0x801159FC, "int down")
del_items(0x800D2CA8)
SetType(0x800D2CA8, "char MlTab[16]")
del_items(0x800D2CB8)
SetType(0x800D2CB8, "char QlTab[16]")
del_items(0x800D2CC8)
SetType(0x800D2CC8, "struct POLY_FT4 *(*ObjPrintFuncs[98])()")
del_items(0x80115A18)
SetType(0x80115A18, "int MyXoff1")
del_items(0x80115A1C)
SetType(0x80115A1C, "int MyYoff1")
del_items(0x80115A20)
SetType(0x80115A20, "int MyXoff2")
del_items(0x80115A24)
SetType(0x80115A24, "int MyYoff2")
del_items(0x80115A34)
SetType(0x80115A34, "bool iscflag")
del_items(0x80115A41)
SetType(0x80115A41, "unsigned char sgbFadedIn")
del_items(0x80115A42)
SetType(0x80115A42, "unsigned char screenbright")
del_items(0x80115A44)
SetType(0x80115A44, "int faderate")
del_items(0x80115A48)
SetType(0x80115A48, "bool fading")
del_items(0x80115A54)
SetType(0x80115A54, "unsigned char FadeCoords[8]")
del_items(0x80115A4C)
SetType(0x80115A4C, "int st")
del_items(0x80115A50)
SetType(0x80115A50, "int mode")
del_items(0x800D2E70)
SetType(0x800D2E70, "struct PortalStruct portal[4]")
del_items(0x80115A80)
SetType(0x80115A80, "int portalindex")
del_items(0x800D2E50)
SetType(0x800D2E50, "int WarpDropX[4]")
del_items(0x800D2E60)
SetType(0x800D2E60, "int WarpDropY[4]")
del_items(0x800D2ED0)
SetType(0x800D2ED0, "char MyVerString[120]")
del_items(0x80115BE8)
SetType(0x80115BE8, "int Year")
del_items(0x80115BEC)
SetType(0x80115BEC, "int Day")
del_items(0x801165C4)
SetType(0x801165C4, "unsigned char *tbuff")
del_items(0x801165C8)
SetType(0x801165C8, "unsigned char HR1")
del_items(0x801165C9)
SetType(0x801165C9, "unsigned char HR2")
del_items(0x801165CA)
SetType(0x801165CA, "unsigned char HR3")
del_items(0x801165CB)
SetType(0x801165CB, "unsigned char VR1")
del_items(0x801165CC)
SetType(0x801165CC, "unsigned char VR2")
del_items(0x801165CD)
SetType(0x801165CD, "unsigned char VR3")
del_items(0x80115C5C)
SetType(0x80115C5C, "struct NODE *pHallList")
del_items(0x80115C60)
SetType(0x80115C60, "int nRoomCnt")
del_items(0x80115C64)
SetType(0x80115C64, "int nSx1")
del_items(0x80115C68)
SetType(0x80115C68, "int nSy1")
del_items(0x80115C6C)
SetType(0x80115C6C, "int nSx2")
del_items(0x80115C70)
SetType(0x80115C70, "int nSy2")
del_items(0x80115C14)
SetType(0x80115C14, "int Area_Min")
del_items(0x80115C18)
SetType(0x80115C18, "int Room_Max")
del_items(0x80115C1C)
SetType(0x80115C1C, "int Room_Min")
del_items(0x80115C20)
SetType(0x80115C20, "unsigned char BIG3[6]")
del_items(0x80115C28)
SetType(0x80115C28, "unsigned char BIG4[6]")
del_items(0x80115C30)
SetType(0x80115C30, "unsigned char BIG6[6]")
del_items(0x80115C38)
SetType(0x80115C38, "unsigned char BIG7[6]")
del_items(0x80115C40)
SetType(0x80115C40, "unsigned char RUINS1[4]")
del_items(0x80115C44)
SetType(0x80115C44, "unsigned char RUINS2[4]")
del_items(0x80115C48)
SetType(0x80115C48, "unsigned char RUINS3[4]")
del_items(0x80115C4C)
SetType(0x80115C4C, "unsigned char RUINS4[4]")
del_items(0x80115C50)
SetType(0x80115C50, "unsigned char RUINS5[4]")
del_items(0x80115C54)
SetType(0x80115C54, "unsigned char RUINS6[4]")
del_items(0x80115C58)
SetType(0x80115C58, "unsigned char RUINS7[4]")
del_items(0x801165D0)
SetType(0x801165D0, "int abyssx")
del_items(0x801165D4)
SetType(0x801165D4, "unsigned char lavapool")
del_items(0x80115CFC)
SetType(0x80115CFC, "int lockoutcnt")
del_items(0x80115C80)
SetType(0x80115C80, "unsigned char L3TITE12[6]")
del_items(0x80115C88)
SetType(0x80115C88, "unsigned char L3TITE13[6]")
del_items(0x80115C90)
SetType(0x80115C90, "unsigned char L3CREV1[6]")
del_items(0x80115C98)
SetType(0x80115C98, "unsigned char L3CREV2[6]")
del_items(0x80115CA0)
SetType(0x80115CA0, "unsigned char L3CREV3[6]")
del_items(0x80115CA8)
SetType(0x80115CA8, "unsigned char L3CREV4[6]")
del_items(0x80115CB0)
SetType(0x80115CB0, "unsigned char L3CREV5[6]")
del_items(0x80115CB8)
SetType(0x80115CB8, "unsigned char L3CREV6[6]")
del_items(0x80115CC0)
SetType(0x80115CC0, "unsigned char L3CREV7[6]")
del_items(0x80115CC8)
SetType(0x80115CC8, "unsigned char L3CREV8[6]")
del_items(0x80115CD0)
SetType(0x80115CD0, "unsigned char L3CREV9[6]")
del_items(0x80115CD8)
SetType(0x80115CD8, "unsigned char L3CREV10[6]")
del_items(0x80115CE0)
SetType(0x80115CE0, "unsigned char L3CREV11[6]")
del_items(0x80115CE8)
SetType(0x80115CE8, "unsigned char L3XTRA1[4]")
del_items(0x80115CEC)
SetType(0x80115CEC, "unsigned char L3XTRA2[4]")
del_items(0x80115CF0)
SetType(0x80115CF0, "unsigned char L3XTRA3[4]")
del_items(0x80115CF4)
SetType(0x80115CF4, "unsigned char L3XTRA4[4]")
del_items(0x80115CF8)
SetType(0x80115CF8, "unsigned char L3XTRA5[4]")
del_items(0x80115D00)
SetType(0x80115D00, "int diabquad1x")
del_items(0x80115D04)
SetType(0x80115D04, "int diabquad2x")
del_items(0x80115D08)
SetType(0x80115D08, "int diabquad3x")
del_items(0x80115D0C)
SetType(0x80115D0C, "int diabquad4x")
del_items(0x80115D10)
SetType(0x80115D10, "int diabquad1y")
del_items(0x80115D14)
SetType(0x80115D14, "int diabquad2y")
del_items(0x80115D18)
SetType(0x80115D18, "int diabquad3y")
del_items(0x80115D1C)
SetType(0x80115D1C, "int diabquad4y")
del_items(0x80115D20)
SetType(0x80115D20, "int SP4x1")
del_items(0x80115D24)
SetType(0x80115D24, "int SP4y1")
del_items(0x80115D28)
SetType(0x80115D28, "int SP4x2")
del_items(0x80115D2C)
SetType(0x80115D2C, "int SP4y2")
del_items(0x80115D30)
SetType(0x80115D30, "int l4holdx")
del_items(0x80115D34)
SetType(0x80115D34, "int l4holdy")
del_items(0x801165D8)
SetType(0x801165D8, "unsigned char *lpSetPiece1")
del_items(0x801165DC)
SetType(0x801165DC, "unsigned char *lpSetPiece2")
del_items(0x801165E0)
SetType(0x801165E0, "unsigned char *lpSetPiece3")
del_items(0x801165E4)
SetType(0x801165E4, "unsigned char *lpSetPiece4")
del_items(0x80115D44)
SetType(0x80115D44, "unsigned char SkelKingTrans1[8]")
del_items(0x80115D4C)
SetType(0x80115D4C, "unsigned char SkelKingTrans2[8]")
del_items(0x800D2F48)
SetType(0x800D2F48, "unsigned char SkelKingTrans3[20]")
del_items(0x800D2F5C)
SetType(0x800D2F5C, "unsigned char SkelKingTrans4[28]")
del_items(0x800D2F78)
SetType(0x800D2F78, "unsigned char SkelChamTrans1[20]")
del_items(0x80115D54)
SetType(0x80115D54, "unsigned char SkelChamTrans2[8]")
del_items(0x800D2F8C)
SetType(0x800D2F8C, "unsigned char SkelChamTrans3[36]")
del_items(0x80115E40)
SetType(0x80115E40, "bool DoUiForChooseMonster")
del_items(0x800D2FB0)
SetType(0x800D2FB0, "char *MgToText[34]")
del_items(0x800D3038)
SetType(0x800D3038, "int StoryText[3][3]")
del_items(0x800D305C)
SetType(0x800D305C, "unsigned short dungeon[48][48]")
del_items(0x800D425C)
SetType(0x800D425C, "unsigned char pdungeon[40][40]")
del_items(0x800D489C)
SetType(0x800D489C, "unsigned char dflags[40][40]")
del_items(0x80115E64)
SetType(0x80115E64, "int setpc_x")
del_items(0x80115E68)
SetType(0x80115E68, "int setpc_y")
del_items(0x80115E6C)
SetType(0x80115E6C, "int setpc_w")
del_items(0x80115E70)
SetType(0x80115E70, "int setpc_h")
del_items(0x80115E74)
SetType(0x80115E74, "unsigned char setloadflag")
del_items(0x80115E78)
SetType(0x80115E78, "unsigned char *pMegaTiles")
del_items(0x800D4EDC)
SetType(0x800D4EDC, "unsigned char nBlockTable[2049]")
del_items(0x800D56E0)
SetType(0x800D56E0, "unsigned char nSolidTable[2049]")
del_items(0x800D5EE4)
SetType(0x800D5EE4, "unsigned char nTransTable[2049]")
del_items(0x800D66E8)
SetType(0x800D66E8, "unsigned char nMissileTable[2049]")
del_items(0x800D6EEC)
SetType(0x800D6EEC, "unsigned char nTrapTable[2049]")
del_items(0x80115E7C)
SetType(0x80115E7C, "int dminx")
del_items(0x80115E80)
SetType(0x80115E80, "int dminy")
del_items(0x80115E84)
SetType(0x80115E84, "int dmaxx")
del_items(0x80115E88)
SetType(0x80115E88, "int dmaxy")
del_items(0x80115E8C)
SetType(0x80115E8C, "int gnDifficulty")
del_items(0x80115E90)
SetType(0x80115E90, "unsigned char currlevel")
del_items(0x80115E91)
SetType(0x80115E91, "unsigned char leveltype")
del_items(0x80115E92)
SetType(0x80115E92, "unsigned char setlevel")
del_items(0x80115E93)
SetType(0x80115E93, "unsigned char setlvlnum")
del_items(0x80115E94)
SetType(0x80115E94, "unsigned char setlvltype")
del_items(0x80115E98)
SetType(0x80115E98, "int ViewX")
del_items(0x80115E9C)
SetType(0x80115E9C, "int ViewY")
del_items(0x80115EA0)
SetType(0x80115EA0, "int ViewDX")
del_items(0x80115EA4)
SetType(0x80115EA4, "int ViewDY")
del_items(0x80115EA8)
SetType(0x80115EA8, "int ViewBX")
del_items(0x80115EAC)
SetType(0x80115EAC, "int ViewBY")
del_items(0x800D76F0)
SetType(0x800D76F0, "struct ScrollStruct ScrollInfo")
del_items(0x80115EB0)
SetType(0x80115EB0, "int LvlViewX")
del_items(0x80115EB4)
SetType(0x80115EB4, "int LvlViewY")
del_items(0x80115EB8)
SetType(0x80115EB8, "int btmbx")
del_items(0x80115EBC)
SetType(0x80115EBC, "int btmby")
del_items(0x80115EC0)
SetType(0x80115EC0, "int btmdx")
del_items(0x80115EC4)
SetType(0x80115EC4, "int btmdy")
del_items(0x80115EC8)
SetType(0x80115EC8, "int MicroTileLen")
del_items(0x80115ECC)
SetType(0x80115ECC, "char TransVal")
del_items(0x800D7704)
SetType(0x800D7704, "bool TransList[8]")
del_items(0x80115ED0)
SetType(0x80115ED0, "int themeCount")
del_items(0x800D7724)
SetType(0x800D7724, "struct map_info dung_map[108][108]")
del_items(0x800F99E4)
SetType(0x800F99E4, "unsigned char dung_map_r[54][54]")
del_items(0x800FA548)
SetType(0x800FA548, "unsigned char dung_map_g[54][54]")
del_items(0x800FB0AC)
SetType(0x800FB0AC, "unsigned char dung_map_b[54][54]")
del_items(0x800FBC10)
SetType(0x800FBC10, "struct MINIXY MinisetXY[17]")
del_items(0x80115E5C)
SetType(0x80115E5C, "unsigned char *pSetPiece")
del_items(0x80115E60)
SetType(0x80115E60, "int DungSize")
del_items(0x800FBDDC)
SetType(0x800FBDDC, "struct ThemeStruct theme[50]")
del_items(0x80115F10)
SetType(0x80115F10, "int numthemes")
del_items(0x80115F14)
SetType(0x80115F14, "int zharlib")
del_items(0x80115F18)
SetType(0x80115F18, "unsigned char armorFlag")
del_items(0x80115F19)
SetType(0x80115F19, "unsigned char bCrossFlag")
del_items(0x80115F1A)
SetType(0x80115F1A, "unsigned char weaponFlag")
del_items(0x80115F1C)
SetType(0x80115F1C, "int themex")
del_items(0x80115F20)
SetType(0x80115F20, "int themey")
del_items(0x80115F24)
SetType(0x80115F24, "int themeVar1")
del_items(0x80115F28)
SetType(0x80115F28, "unsigned char bFountainFlag")
del_items(0x80115F29)
SetType(0x80115F29, "unsigned char cauldronFlag")
del_items(0x80115F2A)
SetType(0x80115F2A, "unsigned char mFountainFlag")
del_items(0x80115F2B)
SetType(0x80115F2B, "unsigned char pFountainFlag")
del_items(0x80115F2C)
SetType(0x80115F2C, "unsigned char tFountainFlag")
del_items(0x80115F2D)
SetType(0x80115F2D, "unsigned char treasureFlag")
del_items(0x80115F30)
SetType(0x80115F30, "unsigned char ThemeGoodIn[4]")
del_items(0x800FBCBC)
SetType(0x800FBCBC, "int ThemeGood[4]")
del_items(0x800FBCCC)
SetType(0x800FBCCC, "int trm5x[25]")
del_items(0x800FBD30)
SetType(0x800FBD30, "int trm5y[25]")
del_items(0x800FBD94)
SetType(0x800FBD94, "int trm3x[9]")
del_items(0x800FBDB8)
SetType(0x800FBDB8, "int trm3y[9]")
del_items(0x80115FE8)
SetType(0x80115FE8, "int nummissiles")
del_items(0x800FBFF4)
SetType(0x800FBFF4, "int missileactive[125]")
del_items(0x800FC1E8)
SetType(0x800FC1E8, "int missileavail[125]")
del_items(0x80115FEC)
SetType(0x80115FEC, "unsigned char MissilePreFlag")
del_items(0x800FC3DC)
SetType(0x800FC3DC, "struct MissileStruct missile[125]")
del_items(0x80115FED)
SetType(0x80115FED, "unsigned char ManashieldFlag")
del_items(0x80115FEE)
SetType(0x80115FEE, "unsigned char ManashieldFlag2")
del_items(0x800FBF6C)
SetType(0x800FBF6C, "int XDirAdd[8]")
del_items(0x800FBF8C)
SetType(0x800FBF8C, "int YDirAdd[8]")
del_items(0x80115FD5)
SetType(0x80115FD5, "unsigned char fadetor")
del_items(0x80115FD6)
SetType(0x80115FD6, "unsigned char fadetog")
del_items(0x80115FD7)
SetType(0x80115FD7, "unsigned char fadetob")
del_items(0x800FBFAC)
SetType(0x800FBFAC, "unsigned char ValueTable[16]")
del_items(0x800FBFBC)
SetType(0x800FBFBC, "unsigned char StringTable[9][6]")
del_items(0x800FEC8C)
SetType(0x800FEC8C, "struct MonsterStruct monster[200]")
del_items(0x8011604C)
SetType(0x8011604C, "long nummonsters")
del_items(0x8010440C)
SetType(0x8010440C, "short monstactive[200]")
del_items(0x8010459C)
SetType(0x8010459C, "short monstkills[200]")
del_items(0x8010472C)
SetType(0x8010472C, "struct CMonster Monsters[16]")
del_items(0x80116050)
SetType(0x80116050, "long monstimgtot")
del_items(0x80116054)
SetType(0x80116054, "char totalmonsters")
del_items(0x80116058)
SetType(0x80116058, "int uniquetrans")
del_items(0x801165E8)
SetType(0x801165E8, "unsigned char sgbSaveSoundOn")
del_items(0x80116020)
SetType(0x80116020, "char offset_x[8]")
del_items(0x80116028)
SetType(0x80116028, "char offset_y[8]")
del_items(0x80116008)
SetType(0x80116008, "char left[8]")
del_items(0x80116010)
SetType(0x80116010, "char right[8]")
del_items(0x80116018)
SetType(0x80116018, "char opposite[8]")
del_items(0x80115FFC)
SetType(0x80115FFC, "int nummtypes")
del_items(0x80116000)
SetType(0x80116000, "char animletter[7]")
del_items(0x800FEAEC)
SetType(0x800FEAEC, "int MWVel[3][24]")
del_items(0x80116030)
SetType(0x80116030, "char rnd5[4]")
del_items(0x80116034)
SetType(0x80116034, "char rnd10[4]")
del_items(0x80116038)
SetType(0x80116038, "char rnd20[4]")
del_items(0x8011603C)
SetType(0x8011603C, "char rnd60[4]")
del_items(0x800FEC0C)
SetType(0x800FEC0C, "void (*AiProc[32])()")
del_items(0x80104C04)
SetType(0x80104C04, "struct MonsterData monsterdata[112]")
del_items(0x80106644)
SetType(0x80106644, "char MonstConvTbl[128]")
del_items(0x801066C4)
SetType(0x801066C4, "char MonstAvailTbl[112]")
del_items(0x80106734)
SetType(0x80106734, "struct UniqMonstStruct UniqMonst[98]")
del_items(0x801049EC)
SetType(0x801049EC, "int TransPals[134]")
del_items(0x801048EC)
SetType(0x801048EC, "struct STONEPAL StonePals[32]")
del_items(0x80116084)
SetType(0x80116084, "unsigned char invflag")
del_items(0x80116085)
SetType(0x80116085, "unsigned char drawsbarflag")
del_items(0x80116088)
SetType(0x80116088, "int InvBackY")
del_items(0x8011608C)
SetType(0x8011608C, "int InvCursPos")
del_items(0x801076DC)
SetType(0x801076DC, "unsigned char InvSlotTable[73]")
del_items(0x80116090)
SetType(0x80116090, "int InvBackAY")
del_items(0x80116094)
SetType(0x80116094, "int InvSel")
del_items(0x80116098)
SetType(0x80116098, "int ItemW")
del_items(0x8011609C)
SetType(0x8011609C, "int ItemH")
del_items(0x801160A0)
SetType(0x801160A0, "int ItemNo")
del_items(0x801160A4)
SetType(0x801160A4, "struct RECT BRect")
del_items(0x80116078)
SetType(0x80116078, "struct TextDat *InvPanelTData")
del_items(0x8011607C)
SetType(0x8011607C, "struct TextDat *InvGfxTData")
del_items(0x80116074)
SetType(0x80116074, "int InvPageNo")
del_items(0x80107064)
SetType(0x80107064, "int AP2x2Tbl[10]")
del_items(0x8010708C)
SetType(0x8010708C, "struct InvXY InvRect[73]")
del_items(0x801072D4)
SetType(0x801072D4, "int InvGfxTable[168]")
del_items(0x80107574)
SetType(0x80107574, "unsigned char InvItemWidth[180]")
del_items(0x80107628)
SetType(0x80107628, "unsigned char InvItemHeight[180]")
del_items(0x80116080)
SetType(0x80116080, "unsigned long sgdwLastTime")
del_items(0x801160CE)
SetType(0x801160CE, "unsigned char automapflag")
del_items(0x80107728)
SetType(0x80107728, "unsigned char automapview[40][5]")
del_items(0x801077F0)
SetType(0x801077F0, "unsigned short automaptype[512]")
del_items(0x801160CF)
SetType(0x801160CF, "unsigned char AMLWallFlag")
del_items(0x801160D0)
SetType(0x801160D0, "unsigned char AMRWallFlag")
del_items(0x801160D1)
SetType(0x801160D1, "unsigned char AMLLWallFlag")
del_items(0x801160D2)
SetType(0x801160D2, "unsigned char AMLRWallFlag")
del_items(0x801160D3)
SetType(0x801160D3, "unsigned char AMDirtFlag")
del_items(0x801160D4)
SetType(0x801160D4, "unsigned char AMColumnFlag")
del_items(0x801160D5)
SetType(0x801160D5, "unsigned char AMStairFlag")
del_items(0x801160D6)
SetType(0x801160D6, "unsigned char AMLDoorFlag")
del_items(0x801160D7)
SetType(0x801160D7, "unsigned char AMLGrateFlag")
del_items(0x801160D8)
SetType(0x801160D8, "unsigned char AMLArchFlag")
del_items(0x801160D9)
SetType(0x801160D9, "unsigned char AMRDoorFlag")
del_items(0x801160DA)
SetType(0x801160DA, "unsigned char AMRGrateFlag")
del_items(0x801160DB)
SetType(0x801160DB, "unsigned char AMRArchFlag")
del_items(0x801160DC)
SetType(0x801160DC, "int AutoMapX")
del_items(0x801160E0)
SetType(0x801160E0, "int AutoMapY")
del_items(0x801160E4)
SetType(0x801160E4, "int AutoMapXOfs")
del_items(0x801160E8)
SetType(0x801160E8, "int AutoMapYOfs")
del_items(0x801160EC)
SetType(0x801160EC, "int AMPlayerX")
del_items(0x801160F0)
SetType(0x801160F0, "int AMPlayerY")
del_items(0x801160B8)
SetType(0x801160B8, "int AutoMapScale")
del_items(0x801160BC)
SetType(0x801160BC, "unsigned char AutoMapPlayerR")
del_items(0x801160BD)
SetType(0x801160BD, "unsigned char AutoMapPlayerG")
del_items(0x801160BE)
SetType(0x801160BE, "unsigned char AutoMapPlayerB")
del_items(0x801160BF)
SetType(0x801160BF, "unsigned char AutoMapWallR")
del_items(0x801160C0)
SetType(0x801160C0, "unsigned char AutoMapWallG")
del_items(0x801160C1)
SetType(0x801160C1, "unsigned char AutoMapWallB")
del_items(0x801160C2)
SetType(0x801160C2, "unsigned char AutoMapDoorR")
del_items(0x801160C3)
SetType(0x801160C3, "unsigned char AutoMapDoorG")
del_items(0x801160C4)
SetType(0x801160C4, "unsigned char AutoMapDoorB")
del_items(0x801160C5)
SetType(0x801160C5, "unsigned char AutoMapColumnR")
del_items(0x801160C6)
SetType(0x801160C6, "unsigned char AutoMapColumnG")
del_items(0x801160C7)
SetType(0x801160C7, "unsigned char AutoMapColumnB")
del_items(0x801160C8)
SetType(0x801160C8, "unsigned char AutoMapArchR")
del_items(0x801160C9)
SetType(0x801160C9, "unsigned char AutoMapArchG")
del_items(0x801160CA)
SetType(0x801160CA, "unsigned char AutoMapArchB")
del_items(0x801160CB)
SetType(0x801160CB, "unsigned char AutoMapStairR")
del_items(0x801160CC)
SetType(0x801160CC, "unsigned char AutoMapStairG")
del_items(0x801160CD)
SetType(0x801160CD, "unsigned char AutoMapStairB")
del_items(0x80116744)
SetType(0x80116744, "unsigned long GazTick")
del_items(0x8011D068)
SetType(0x8011D068, "unsigned long RndTabs[6]")
del_items(0x800A37F8)
SetType(0x800A37F8, "unsigned long DefaultRnd[6]")
del_items(0x8011676C)
SetType(0x8011676C, "void (*PollFunc)()")
del_items(0x80116750)
SetType(0x80116750, "void (*MsgFunc)()")
del_items(0x8011679C)
SetType(0x8011679C, "void (*ErrorFunc)()")
del_items(0x80116670)
SetType(0x80116670, "struct TASK *ActiveTasks")
del_items(0x80116674)
SetType(0x80116674, "struct TASK *CurrentTask")
del_items(0x80116678)
SetType(0x80116678, "struct TASK *T")
del_items(0x8011667C)
SetType(0x8011667C, "unsigned long MemTypeForTasker")
del_items(0x8011A898)
SetType(0x8011A898, "int SchEnv[12]")
del_items(0x80116680)
SetType(0x80116680, "unsigned long ExecId")
del_items(0x80116684)
SetType(0x80116684, "unsigned long ExecMask")
del_items(0x80116688)
SetType(0x80116688, "int TasksActive")
del_items(0x8011668C)
SetType(0x8011668C, "void (*EpiFunc)()")
del_items(0x80116690)
SetType(0x80116690, "void (*ProFunc)()")
del_items(0x80116694)
SetType(0x80116694, "unsigned long EpiProId")
del_items(0x80116698)
SetType(0x80116698, "unsigned long EpiProMask")
del_items(0x8011669C)
SetType(0x8011669C, "void (*DoTasksPrologue)()")
del_items(0x801166A0)
SetType(0x801166A0, "void (*DoTasksEpilogue)()")
del_items(0x801166A4)
SetType(0x801166A4, "void (*StackFloodCallback)()")
del_items(0x801166A8)
SetType(0x801166A8, "unsigned char ExtraStackProtection")
del_items(0x801166AC)
SetType(0x801166AC, "int ExtraStackSizeLongs")
del_items(0x80116758)
SetType(0x80116758, "void *LastPtr")
del_items(0x800A3830)
SetType(0x800A3830, "struct MEM_INFO WorkMemInfo")
del_items(0x801166B0)
SetType(0x801166B0, "struct MEM_INIT_INFO *MemInitBlocks")
del_items(0x8011A8C8)
SetType(0x8011A8C8, "struct MEM_HDR MemHdrBlocks[140]")
del_items(0x801166B4)
SetType(0x801166B4, "struct MEM_HDR *FreeBlocks")
del_items(0x801166B8)
SetType(0x801166B8, "enum GAL_ERROR_CODE LastError")
del_items(0x801166BC)
SetType(0x801166BC, "int TimeStamp")
del_items(0x801166C0)
SetType(0x801166C0, "unsigned char FullErrorChecking")
del_items(0x801166C4)
SetType(0x801166C4, "unsigned long LastAttemptedAlloc")
del_items(0x801166C8)
SetType(0x801166C8, "unsigned long LastDeallocedBlock")
del_items(0x801166CC)
SetType(0x801166CC, "enum GAL_VERB_LEV VerbLev")
del_items(0x801166D0)
SetType(0x801166D0, "int NumOfFreeHdrs")
del_items(0x801166D4)
SetType(0x801166D4, "unsigned long LastTypeAlloced")
del_items(0x801166D8)
SetType(0x801166D8, "void (*AllocFilter)()")
del_items(0x800A3838)
SetType(0x800A3838, "char *GalErrors[10]")
del_items(0x800A3860)
SetType(0x800A3860, "struct MEM_INIT_INFO PhantomMem")
del_items(0x8011BA48)
SetType(0x8011BA48, "char buf[4992]")
del_items(0x800A3888)
SetType(0x800A3888, "char NULL_REP[7]")
|
class MinStack(object):
def __init__(self):
"""
data structure .
"""
self.stack = []
self.minimum = None
def push(self, x):
"""
:type x: int
:rtype: None
"""
if len(self.stack) == 0:
self.stack.append(x)
self.minimum = x
else:
if x >= self.minimum:
self.stack.append(x)
else:
self.stack.append(2*x - self.minimum)
self.minimum = x
def pop(self):
"""
:rtype: None
"""
if len(self.stack) == 0:
raise IndexError
if self.stack[-1] < self.minimum: # Using this as flag for setting next minimum
val = self.minimum
self.minimum = 2*self.minimum - self.stack[-1]
self.stack.pop()
return val
return self.stack.pop()
def top(self):
"""
:rtype: int
"""
if len(self.stack) == 0:
raise IndexError
if self.stack[-1] < self.minimum:
if self.stack[-1] < 0:
return self.minimum
else:
return 2*self.minimum - self.stack[-1]
return self.stack[-1]
def getMin(self):
"""
:rtype: int
"""
if len(self.stack) == 0:
return -1
return self.minimum
'''
push:O(1)
getMin:O(1)
pop:O(1)
'''
heap=MinStack()
heap.push(1)
heap.push(2)
heap.push(10)
heap.push(-10)
print("min ->"+str(heap.getMin()))
print("poped ->"+str(heap.pop()))
print("min ->" + str(heap.getMin()))
|
class Point:
"Classe Point géographique contenant une position"
def __init__(self,x,y):
self._x=x
self._y=y
def getx(self):
return self._x
def gety(self):
return self._y
def setx(self, x):
self._x = x
def sety(self, y):
self._y = y
def translation(self,valeur):
self._x +=valeur
self._y +=valeur
p1 = Point(-73,45)
p1.translation(2)
print(p1.getx())
print(p1.gety())
|
# python -m trace --count -C . somefile.py
# https://docs.python.org/zh-cn/3/library/trace.html
# python 用trace调试编译 python -m trace --trace 159_debug_trace.py
def main():
print("xxxxx")
main()
# import sys
# import trace
# # create a Trace object, telling it what to ignore, and whether to
# # do tracing or line-counting or both.
# tracer = trace.Trace(
# ignoredirs=[sys.prefix, sys.exec_prefix],
# trace=0,
# count=1)
#
# # run the new command using the given tracer
# tracer.run('main()')
#
# # make a report, placing output in the current directory
# r = tracer.results()
# r.write_results(show_missing=True, coverdir=".")
|
# -*- coding: utf-8 -*-
"""
Algoritmo de busqueda binaria usando el ciclo while
escrito en Python.
Este metodo funciona con cadenas y numeros por igual, ya
que el lenguaje trata a las cadenas lexicograficamente;
comparando sus valores en el codigo ASCII
"""
def binary_search(list_data, search_data):
left_index, right_index = 0, len(list_data) - 1
while left_index <= right_index:
pivot_index = (left_index + right_index) // 2
pivot_data = list_data[pivot_index]
if pivot_data == search_data:
return pivot_index
if search_data < pivot_data:
right_index = pivot_index - 1
else:
left_index = pivot_index + 1
# sale del ciclo, significa que no existe el valor buscado en el arreglo
return -1
"""
Tests
"""
# Test con arreglo numericos
data_list = [1, 2, 3, 10, 50, 80, 120, 150, 500, 1000]
print("Busqueda para la lista: ", data_list)
data_search = 500
index_search = binary_search(data_list, data_search)
print("El elemento {} esta en el indice {}".format(data_search, index_search))
# Test con arreglo de cadenas
data_list = ["Albino", "Bambu", "Becerro", "Contaminacion", "Cortina", "Trampolin"]
print("Busqueda para la lista: ", data_list)
data_search = "Cortina"
index_search = binary_search(data_list, data_search)
print("El elemento {} esta en el indice {}".format(data_search, index_search))
data_chars = ["{", "[", "]", "}", "]"]
print("Busqueda para la lista: ", data_chars)
data_search = '['
search = binary_search(data_chars, data_search)
print("El elemento {} esta en el indice {}".format(data_search, search)) |
#81. 题目:809*??=800*??+9*??+1 其中??代表的两位数,8*??的结果为两位数,9*??的结果为3位数。求??代表的两位数,及809*??后的结果。
#
#82 题目:八进制转换为十进制
def convert8to10(n):
lenN = len(str(n))
sumN = 0
for i in range(lenN):
sumN += 8 ** i * int(str(n)[lenN-1-i])
print('this is the 8 to 10 : %d' % sumN)
convert8to10(122)
#83. 题目:求0—7所能组成的奇数个数。
def odd_num(n):
if n == 0:
return 1
elif n == 1:
return 7
else:
return odd_num(n-1) * 8
def count_odd_num():
l = []
for i in range(1,9):
l.append(odd_num(i-1) * 4)
print(sum(l))
count_odd_num()
#84 题目:连接字符串。
def join_str(split, array):
print('this is to join the str: ', split.join(array))
x = ['a', 'b', 'dd', 'good', 'lucky', 'day']
join_str(',', x)
#85 题目:输入一个正整数,然后判断最少几个 9 除于该数的结果为整数。
def numerator(n):
x = 9
while(True):
if x % n == 0:
print('this is the numerator: %d' % x)
break
x = x * 10 + 9
numerator(13)
#87. 题目:回答结果(结构体变量传递)。
class GoodDay:
m = 0
n = 0
def struct_do(goodDay):
goodDay.m = 20
goodDay.n = 50
x = GoodDay()
x.m = 100
x.n = 20
print('this is the x.m %d and x.n %d' % (x.m, x.n))
struct_do(x)
print('this is the x.m %d and x.n %d' % (x.m, x.n))
# 88. 题目:读取7个数(1—50)的整数值,每读取一个值,程序打印出该值个数的*。
def print_start(n):
print(n * '*')
print_start(22)
# 89. 题目:某个公司采用公用电话传递数据,数据是四位的整数,在传递过程中是加密的,
# 加密规则如下:每位数字都加上5,然后用和除以10的余数代替该数字,再将第一位和第四位交换,第二位和第三位交换。
def encode_num(n):
x = str(n)
n = ''
for i in range(len(x)):
n += str((int(x[i]) + 5) % 10)
return int(n[::-1])
print(encode_num(1234))
# 90 题目:列表使用实例。
def do_list():
testList = ['10086', '小姐姐', '你好', '工号', [1, 2, 3, 4, 5]]
print('this is the len to list : %d ' % len(testList))
print('this is the order read the element for list : ', testList[1:])
testList.append('大家好')
print('add the element to list: ', testList)
print('pop the last element : ', testList.pop(-1))
x = testList.pop(-1)
print('pop the last element : ', x)
do_list() |
###########################################
# EXERCICIO 034 #
###########################################
'''ESCREVA UM PROGRAMA QUE PERGUNTE O SALARIO
DE UM FUNCIONARIO E CALCULE O VALOR DE SEU
AUMENTO: PARA SALARIO SUPERIORES A R$1250,00
CALCULE AUMENTO DE 10 %, PARA SALARIOS MENORES
OU IGUAIS, O AUMENTO E DE 15% '''
sal = float(input('Qual o seu salário atual...R$ '))
if sal <= 1250:
nsal = sal + (sal * 15 / 100)
print('Seu novo salário com 15% de aumento é R$ {:.2f}'.format(nsal))
else:
nsal = sal + (sal * 10 / 100)
print('Seu novo salário com 10% de aumento é R$ {:.2f}'.format(nsal))
|
class Solution:
def partitionLabels(self, S: str) -> List[int]:
"""
A string S of lowercase English letters is given. We want to
partition this string into as many parts as possible so that
each letter appears in at most one part, and return a list of
integers representing the size of these parts.
"""
# last = {char:idx for idx, char in enumerate(S)}
# lo,hi = 0,0
# ans = []
# for idx, char in enumerate(S):
# hi = max(hi, last[char])
# if hi==idx:
# ans.append(hi-lo+1)
# lo=hi+1
# return ans
interval = {}
for idx, char in enumerate(S):
if char in interval:
interval[char][-1]=idx
else:
interval[char]=[idx,idx]
start,end=0,0
ans = []
for nxtstart, nxtend in interval.values():
if end==0 or nxtstart>end:
start=nxtstart
end = nxtend
ans.append(end-start+1)
else:
end=max(end, nxtend)
ans[-1] = end-start+1
return ans |
'''
a = qtd pistas 1
b = qtd pessoas por pistas 9
c = qtd alunos 4
'''
A, B, C = [int(x) for x in input().split()]
if (A*B) > C:
print("S")
else:
print("N")
|
value = 74.55
value2 = 74.3
value4 = -100
print(f"O valor 1 é {round(value)} e o valor 2 {round(value2)}")
print(f"O valor 1 também é {int(value)}")
print(f"O valor absoluto de {value4} é {abs(value4)}")
print(3//2) |
global file_object
global min_country
global max_country
def open_file():
global file_object
while True:
# repeatedly prompting for a file name until if its valid
file_name = input('Enter the file name: ')
# checking if file can be opened
try:
file_object = open(file_name)
break
except:
print('Error: file not Found')
file_object = None
continue
return file_object
def process_file(file_object_p):
# getting user inputs
global min_country, max_country
year = input('Enter the year: ')
while True:
income_level = input('Enter income level:')
try:
income_level = int(income_level)
if income_level <= 4:
break
else:
print('Error')
continue
except:
print('Error')
continue
leves = ['WB_LI', 'WB_LMI', 'WB_UMI', 'WB_HI']
ilevel = leves[income_level - 1]
count = 0
percentages = []
list_criteria = []
for line in file_object_p:
# line[88:93] is the slice having the year and line[51:57] is one having the income level
if line[88:93].startswith(year) and ilevel in line[51:57]:
count = count + 1
# percent_no is a variable to hold the percentage value
percent_no = line[59:61]
list_criteria.append(line)
# putting the percentages in a list
percentages.append(int(percent_no))
max_country = str(max(percentages))
min_country = str(min(percentages))
# catching an error when the year is not found in the file i.e when list_criteria is empty
if len(list_criteria) < 1:
print('Error: The year does not match any record!')
quit()
list_max_countries_nw = []
list_min_countries_nw = []
for line in list_criteria:
if max_country in line:
list_max_countries_nw.append(line[:45])
for line in list_criteria:
if min_country in line:
list_min_countries_nw.append(line[:45])
# a function to get the most frequent country with max or min percentage
def most_frequent_country(list_country):
counter = 0
country_name = list_country[0]
for i in list_country:
current_frequency = list_country.count(i)
if current_frequency > counter:
counter = current_frequency
country_name = i
return country_name
country_most = most_frequent_country(list_max_countries_nw)
countryless = most_frequent_country(list_min_countries_nw)
# Displaying a report to the user
print('\nA report for the matching criteria')
print('Count of records: ', count)
print('Average percentage of children vaccinated: ', format((sum(percentages)/count), ".1f"))
print('Maximum percentage: ', max(percentages), ' in', country_most)
print('Minimum percentage: ', min(percentages), ' in', countryless)
# a function to invoke the open_file and process_file functions
def main():
process_file(open_file())
file_object.close()
main()
|
""" Leetcode 1041 - Robot Bounded in Circle
https://leetcode.com/problems/robot-bounded-in-circle/
"""
class Solution1:
""" 1. MINE Straight-Forward """
def is_robot_bounded(self, instructions: str) -> bool:
nums = {'G': 0, 'R': 1, 'L': -1}
direction = [1, -1]
position = [0, 0]
idx = 0
summation = 0
factor = 1
for x in instructions:
summation += nums[x]
if x in ('R', 'L'):
idx = 1 - idx
factor *= nums[x] * direction[idx]
else:
position[idx] += factor * 1
if summation % 4 == 0 and position != [0, 0]:
return False
return True
if __name__ == '__main__':
instructions = "GGG"
res = Solution1().is_robot_bounded(instructions)
print(res)
|
# DESCRIÇÃO
# Escreva um programa que calcule a circunferência C de um determinado
# planeta, com base na observação do ângulo A, entre duas localidades C1 e
# C2, e na distância D, em estádios, entre elas.
# Suponha que as localidades estejam no mesmo meridiano de um planeta
# esférico. O seu programa deverá imprimir a circunferência do planeta em
# estádios e em quilômetros.
# ENTRADA
# A entrada do programa será composta da distância D, em estádios, e do
# ângulo A, em graus, respectivamente, um número em cada linha.
# SAÍDA
# A saída mostra a circunferência Ce, em estádios, e Ckm, em quilômetros,
# do planeta seguindo o cálculo feito por Eratóstenes para a Terra com uma
# casa decimal de precisão.
def read_float():
return float(input())
# converte e para km
def e_to_km(e):
return 0.1764 * e
# printa floats com 1 digito depois da vírgula
def print_1f(f):
print("%.1f" % f)
D = read_float()
A = read_float()
# 360/A = o número de vezes que a distância D
# ocorre no planeta
E = D * (360 / A)
print_1f(E)
print_1f(e_to_km(E))
|
_base_ = [
'../_base_/models/flownet2/flownet2sd.py',
'../_base_/datasets/chairssdhom_384x448.py',
'../_base_/schedules/schedule_s_long.py', '../_base_/default_runtime.py'
]
|
# -*- coding: utf-8 -*-
"""
@author:XuMing(xuming624@qq.com)
@description: 包括gan图像生成、vae图像生成、艺术风格迁移、图像漫画化
"""
|
LOAD_CONTENT_CACHE = False
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
|
number = int(input())
word = input()
save = []
for i in range(number):
current_string = input()
save.append(current_string)
print(save)
for i in range(len(save) -1, -1, -1):
element = save[i]
if word not in element:
save.remove(element)
print(save)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.