content
stringlengths 7
1.05M
|
|---|
which_one = int(input("What Months (1-12)?"))
months = ['January' , 'February' , 'March' , 'April' , 'May' , 'June' , 'July' , 'August' , 'September' , 'October', 'November' , 'December']
if 1 <= which_one <= 12:
print("Months " , months[which_one - 1])
|
"""
Shows the mathematical timestable
"""
for i in range(1, 13):
for j in range(1, 13):
print("{0} times {1} is {2}".format(j, i, i * j))
print("--------------------------------")
|
EOS_IDX = 3
SOS_IDX = 2
PAD_IDX = 1
UNK_IDX = 0
EOS_STR = "<eos>"
SOS_STR = "<sos>"
PAD_STR = "<pad>"
UNK_STR = "<unk>"
BPE_TOKEN = "▁"
EVALUATION_CRITERIA = {"perplexity":1, "accuracy":2, "bleu":3}
|
# Example 1
def setup():
# Set to the same size as the source image
# https://unsplash.com/photos/mGy1Jjr2e6M
size(900, 600)
# Load and display and position the image
image(loadImage("file.jpg"), 0, 0)
|
MOUSE_BTN_LEFT = b"\x90"
MOUSE_BTN_RIGHT = b"\x91"
MOUSE_BTN_MIDDLE = b"\x92"
KEY_LEFT_CTRL = b"\xe0"
KEY_LEFT_SHIFT = b"\xe1"
KEY_LEFT_ALT = b"\xe2"
KEY_LEFT_GUI = b"\xe3"
KEY_RIGHT_CTRL = b"\xe4"
KEY_RIGHT_SHIFT = b"\xe5"
KEY_RIGHT_ALT = b"\xe6"
KEY_RIGHT_GUI = b"\xe8"
KEY_A = b"\x04"
KEY_B = b"\x05"
KEY_C = b"\x06"
KEY_D = b"\x07"
KEY_E = b"\x08"
KEY_F = b"\x09"
KEY_G = b"\x0A"
KEY_H = b"\x0B"
KEY_I = b"\x0C"
KEY_J = b"\x0D"
KEY_K = b"\x0E"
KEY_L = b"\x0F"
KEY_M = b"\x10"
KEY_N = b"\x11"
KEY_O = b"\x12"
KEY_P = b"\x13"
KEY_Q = b"\x14"
KEY_R = b"\x15"
KEY_S = b"\x16"
KEY_T = b"\x17"
KEY_U = b"\x18"
KEY_V = b"\x19"
KEY_W = b"\x1A"
KEY_X = b"\x1B"
KEY_Y = b"\x1C"
KEY_Z = b"\x1D"
KEY_1 = b"\x1E"
KEY_2 = b"\x1F"
KEY_3 = b"\x20"
KEY_4 = b"\x21"
KEY_5 = b"\x22"
KEY_6 = b"\x23"
KEY_7 = b"\x24"
KEY_8 = b"\x25"
KEY_9 = b"\x26"
KEY_0 = b"\x27"
KEY_RETURN = b"\x28"
KEY_ENTER = b"\x28"
KEY_ESC = b"\x29"
KEY_ESCAPE = b"\x29"
KEY_BCKSPC = b"\x2A"
KEY_BACKSPACE = b"\x2A"
KEY_TAB = b"\x2B"
KEY_SPACE = b"\x2C"
KEY_MINUS = b"\x2D"
KEY_DASH = b"\x2D"
KEY_EQUALS = b"\x2E"
KEY_EQUAL = b"\x2E"
KEY_LBRACKET = b"\x2F"
KEY_RBRACKET = b"\x30"
KEY_BACKSLASH = b"\x31"
KEY_HASH = b"\x32"
KEY_NUMBER = b"\x32"
KEY_SEMICOLON = b"\x33"
KEY_QUOTE = b"\x34"
KEY_BACKQUOTE = b"\x35"
KEY_TILDE = b"\x35"
KEY_COMMA = b"\x36"
KEY_PERIOD = b"\x37"
KEY_STOP = b"\x37"
KEY_SLASH = b"\x38"
KEY_CAPS_LOCK = b"\x39"
KEY_CAPSLOCK = b"\x39"
KEY_F1 = b"\x3A"
KEY_F2 = b"\x3B"
KEY_F3 = b"\x3C"
KEY_F4 = b"\x3D"
KEY_F5 = b"\x3E"
KEY_F6 = b"\x3F"
KEY_F7 = b"\x40"
KEY_F8 = b"\x41"
KEY_F9 = b"\x42"
KEY_F10 = b"\x43"
KEY_F11 = b"\x44"
KEY_F12 = b"\x45"
KEY_PRINT = b"\x46"
KEY_SCROLL_LOCK = b"\x47"
KEY_SCROLLLOCK = b"\x47"
KEY_PAUSE = b"\x48"
KEY_INSERT = b"\x49"
KEY_HOME = b"\x4A"
KEY_PAGEUP = b"\x4B"
KEY_PGUP = b"\x4B"
KEY_DEL = b"\x4C"
KEY_DELETE = b"\x4C"
KEY_END = b"\x4D"
KEY_PAGEDOWN = b"\x4E"
KEY_PGDOWN = b"\x4E"
KEY_RIGHT = b"\x4F"
KEY_LEFT = b"\x50"
KEY_DOWN = b"\x51"
KEY_UP = b"\x52"
KEY_NUM_LOCK = b"\x53"
KEY_NUMLOCK = b"\x53"
KEY_KP_DIVIDE = b"\x54"
KEY_KP_MULTIPLY = b"\x55"
KEY_KP_MINUS = b"\x56"
KEY_KP_PLUS = b"\x57"
KEY_KP_ENTER = b"\x58"
KEY_KP_RETURN = b"\x58"
KEY_KP_1 = b"\x59"
KEY_KP_2 = b"\x5A"
KEY_KP_3 = b"\x5B"
KEY_KP_4 = b"\x5C"
KEY_KP_5 = b"\x5D"
KEY_KP_6 = b"\x5E"
KEY_KP_7 = b"\x5F"
KEY_KP_8 = b"\x60"
KEY_KP_9 = b"\x61"
KEY_KP_0 = b"\x62"
KEY_KP_PERIOD = b"\x63"
KEY_KP_STOP = b"\x63"
KEY_APPLICATION = b"\x65"
KEY_POWER = b"\x66"
KEY_KP_EQUALS = b"\x67"
KEY_KP_EQUAL = b"\x67"
KEY_F13 = b"\x68"
KEY_F14 = b"\x69"
KEY_F15 = b"\x6A"
KEY_F16 = b"\x6B"
KEY_F17 = b"\x6C"
KEY_F18 = b"\x6D"
KEY_F19 = b"\x6E"
KEY_F20 = b"\x6F"
KEY_F21 = b"\x70"
KEY_F22 = b"\x71"
KEY_F23 = b"\x72"
KEY_F24 = b"\x73"
KEY_EXECUTE = b"\x74"
KEY_HELP = b"\x75"
KEY_MENU = b"\x76"
KEY_SELECT = b"\x77"
KEY_CANCEL = b"\x78"
KEY_REDO = b"\x79"
KEY_UNDO = b"\x7A"
KEY_CUT = b"\x7B"
KEY_COPY = b"\x7C"
KEY_PASTE = b"\x7D"
KEY_FIND = b"\x7E"
KEY_MUTE = b"\x7F"
KEY_VOLUME_UP = b"\x80"
KEY_VOLUME_DOWN = b"\x81"
|
"""
pymake
-------------------------------
- Eugenio Marinetto
- nenetto@gmail.com
-------------------------------
Created 08-08-2019
"""
# __all__ variable
# Fill it in with the packages you want to export in "from project_name import *"
__all__ = []
|
x = 6
y = 7
# # Simple if
# if x == y:
# print(f'{x} is equal to {y}')
# else:
# print(f'{x} is not equal to {y}')
# # Elif
# if x > y:
# print(f'{x} is bigger to {y}')
# elif x == y:
# print(f'{x} is equal to {y}')
# else:
# print(f'{x} is not equal to {y}')
# Nested if
# if x > 2:
# if x <= 10:
# print(f'{x} is less than 2 and greater than 10')
# and logical operators
# if x > 2 and x <= 10:
# print(f'{x} is less than 2 and greater than 10')
# or logical operators
# if x > 2 or x <= 10:
# print(f'{x} is less than 2 or greater than 10')
# not logical operators
# if not(x == y):
# print(f'{x} is not equal to {y}')
# Creating Simple List
numbers = [1, 2, 3, 4, 5]
# in
# if x in numbers:
# print(x in numbers)
# not in
# if x not in numbers:
# print(x in numbers)
# Identity Operators
if x is y:
print(x is y)
if x is not y:
print(x is y)
if x is not y:
print(x is not y)
|
# https://leetcode.com/problems/max-consecutive-ones
class Solution:
def findMaxConsecutiveOnes(self, nums):
is_consec = False
cnt, ans = 0, 0
for i in range(len(nums)):
if (nums[i] == 1) and is_consec:
cnt += 1
ans = max(ans, cnt)
elif (nums[i] == 1) and (not is_consec):
is_consec = True
cnt = 1
ans = max(ans, cnt)
else:
is_consec = False
return ans
|
"""
2015 Advent of Code, Day 1
"""
with open("input", "r+") as file:
puzzle_input = file.read()
FLOOR = 0
POSITION = 0
BASEMENT = False
for (index, character) in enumerate(puzzle_input):
if character == "(":
FLOOR += 1
if character == ")":
FLOOR -= 1
if not BASEMENT and FLOOR < 0:
BASEMENT = True
POSITION = index + 1
print(FLOOR, POSITION)
|
a = 1
b = 2
print('a = ' + str(a) + ',' + 'b = ' + str(b))
temp = a
a = b
b = temp
print('a = ' + str(a) + ',' + 'b = ' + str(b))
|
THRESHOLD = 4
HEADER = '<?xml version="1.0" encoding="utf-8"?>\n\t<output>\n'
FOOTER = '\t</output>\n'
valMap = {
'<': '',
'>': '',
'&': '',
'\"': ''
}
keyMap = {
'~': '',
'`': '',
'!': '',
'@': '',
'$': '',
'%': '',
'^': '',
'&': '',
'*': '',
'(': '',
')': '',
'+': '',
'=': '',
'{': '',
'}': '',
'[': '',
']': '',
'\'': '',
'|': '',
'\"': '',
';': '',
'?': '',
'<': '',
'>': '',
'/': '',
',': '',
' ': '',
'#': '_',
u'\u2103': u'\u5ea6'
}
|
class Solution(object):
def productExceptSelf(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
|
# Whitelist of generated features in dev STATUS for quicker execution
TSFRESH_FEATURE_WHITELIST = [
'agg_autocorrelation',
'autocorrelation',
'mean',
'mean_change',
'median',
'standard_deviation',
'variance',
'minimum',
]
# Size of the time-windows used for generating single time-series
TSFRESH_TIME_WINDOWS = 14
|
#
# solver_porting.py
#
# Description:
# Hard code the solution values from the paper
# Sin-Chung Chang,
# "The Method of Space-Time Conservation Element
# and Solution Element - A New Approach for Solving the Navier-Stokes
# and Euler Equations",
# Journal of Computational Physics, Volume 119,
# Issue 2, July 1995, Pages 295-324.
#
# These values are caculated my python program ported from the
# demo example written in fortran in the paper above.
#
# These two functions generated from the same python program
# but one with high precision.
#
def get_specific_solution_for_unit_test():
solution_porting = [
(-0.505000, 1.000000, 0.000000, 1.000000),
(-0.495000, 1.000000, 0.000000, 1.000000),
(-0.485000, 1.000000, 0.000000, 1.000000),
(-0.475000, 1.000000, 0.000000, 1.000000),
(-0.465000, 1.000000, 0.000000, 1.000000),
(-0.455000, 1.000000, 0.000000, 1.000000),
(-0.445000, 1.000000, 0.000000, 1.000000),
(-0.435000, 1.000000, 0.000000, 1.000000),
(-0.425000, 1.000000, 0.000000, 1.000000),
(-0.415000, 1.000000, 0.000000, 1.000000),
(-0.405000, 1.000000, 0.000000, 1.000000),
(-0.395000, 1.000000, 0.000000, 1.000000),
(-0.385000, 1.000000, 0.000000, 1.000000),
(-0.375000, 1.000000, 0.000000, 1.000000),
(-0.365000, 1.000000, 0.000000, 1.000000),
(-0.355000, 1.000000, 0.000000, 1.000000),
(-0.345000, 1.000000, 0.000000, 1.000000),
(-0.335000, 1.000000, 0.000000, 1.000000),
(-0.325000, 1.000000, 0.000000, 1.000000),
(-0.315000, 1.000000, 0.000001, 0.999990),
(-0.305000, 0.999996, 0.000004, 0.999990),
(-0.295000, 0.999976, 0.000028, 0.999960),
(-0.285000, 0.999871, 0.000153, 0.999810),
(-0.275000, 0.999414, 0.000694, 0.999170),
(-0.265000, 0.997818, 0.002584, 0.996940),
(-0.255000, 0.993421, 0.007803, 0.990800),
(-0.245000, 0.983967, 0.019086, 0.977630),
(-0.235000, 0.967934, 0.038418, 0.955410),
(-0.225000, 0.945706, 0.065654, 0.924830),
(-0.215000, 0.919136, 0.098909, 0.888630),
(-0.205000, 0.890232, 0.135996, 0.849670),
(-0.195000, 0.860418, 0.175310, 0.809950),
(-0.185000, 0.830502, 0.215915, 0.770550),
(-0.175000, 0.800906, 0.257311, 0.732020),
(-0.165000, 0.771847, 0.299228, 0.694620),
(-0.155000, 0.743447, 0.341510, 0.658480),
(-0.145000, 0.715776, 0.384050, 0.623660),
(-0.135000, 0.688881, 0.426769, 0.590190),
(-0.125000, 0.662794, 0.469599, 0.558070),
(-0.115000, 0.637537, 0.512474, 0.527300),
(-0.105000, 0.613125, 0.555333, 0.497870),
(-0.095000, 0.589570, 0.598112, 0.469770),
(-0.085000, 0.566880, 0.640745, 0.442980),
(-0.075000, 0.545061, 0.683162, 0.417490),
(-0.065000, 0.524125, 0.725267, 0.393290),
(-0.055000, 0.504121, 0.766883, 0.370400),
(-0.045000, 0.485219, 0.807533, 0.349020),
(-0.035000, 0.467990, 0.845786, 0.329740),
(-0.025000, 0.453912, 0.877936, 0.314190),
(-0.015000, 0.445312, 0.897992, 0.304800),
(-0.005000, 0.442658, 0.904249, 0.301940),
( 0.005000, 0.442772, 0.904002, 0.302070),
( 0.015000, 0.444581, 0.899744, 0.304060),
( 0.025000, 0.446652, 0.894841, 0.306330),
( 0.035000, 0.447224, 0.893443, 0.306970),
( 0.045000, 0.447163, 0.893599, 0.306900),
( 0.055000, 0.446890, 0.894281, 0.306590),
( 0.065000, 0.446835, 0.894505, 0.306480),
( 0.075000, 0.446873, 0.894351, 0.306550),
( 0.085000, 0.446797, 0.894104, 0.306670),
( 0.095000, 0.446632, 0.893997, 0.306740),
( 0.105000, 0.446665, 0.893903, 0.306780),
( 0.115000, 0.447449, 0.893828, 0.306790),
( 0.125000, 0.448803, 0.893843, 0.306710),
( 0.135000, 0.449307, 0.893970, 0.306610),
( 0.145000, 0.446953, 0.894360, 0.306550),
( 0.155000, 0.424999, 0.896761, 0.306480),
( 0.165000, 0.376460, 0.902293, 0.306370),
( 0.175000, 0.323083, 0.908606, 0.306320),
( 0.185000, 0.283863, 0.913549, 0.306240),
( 0.195000, 0.263120, 0.916182, 0.306270),
( 0.205000, 0.255465, 0.916996, 0.306250),
( 0.215000, 0.253829, 0.917267, 0.306240),
( 0.225000, 0.253852, 0.917300, 0.306280),
( 0.235000, 0.254354, 0.917099, 0.306320),
( 0.245000, 0.254848, 0.917298, 0.306330),
( 0.255000, 0.255146, 0.917121, 0.306240),
( 0.265000, 0.255278, 0.916872, 0.306210),
( 0.275000, 0.255309, 0.917358, 0.306380),
( 0.285000, 0.255084, 0.917145, 0.306250),
( 0.295000, 0.255001, 0.916996, 0.306300),
( 0.305000, 0.255013, 0.917194, 0.306380),
( 0.315000, 0.254891, 0.917686, 0.306140),
( 0.325000, 0.254764, 0.917755, 0.306050),
( 0.335000, 0.254647, 0.917552, 0.306570),
( 0.345000, 0.257049, 0.921870, 0.308520),
( 0.355000, 0.246171, 0.878439, 0.292370),
( 0.365000, 0.133610, 0.075640, 0.110350),
( 0.375000, 0.125018, 0.000152, 0.100020),
( 0.385000, 0.125000, 0.000000, 0.100000),
( 0.395000, 0.125000, 0.000000, 0.100000),
( 0.405000, 0.125000, 0.000000, 0.100000),
( 0.415000, 0.125000, 0.000000, 0.100000),
( 0.425000, 0.125000, 0.000000, 0.100000),
( 0.435000, 0.125000, 0.000000, 0.100000),
( 0.445000, 0.125000, 0.000000, 0.100000),
( 0.455000, 0.125000, 0.000000, 0.100000),
( 0.465000, 0.125000, 0.000000, 0.100000),
( 0.475000, 0.125000, 0.000000, 0.100000),
( 0.485000, 0.125000, 0.000000, 0.100000),
( 0.495000, 0.125000, 0.000000, 0.100000),
( 0.505000, 0.125000, 0.000000, 0.100000)
]
return solution_porting
def get_specific_solution_for_unit_test_high_precision():
solution_porting = [
(-0.505, 1.0, 0.0, 1.0),
(-0.495, 1.0, 1.1102230246251565e-16, 0.99999999999999978),
(-0.48499999999999999, 1.0, 1.1102230246251565e-16, 0.99999999999999978),
(-0.47499999999999998, 1.0, 1.1102230246251565e-16, 0.99999999999999978),
(-0.46499999999999997, 1.0, 1.1102230246251565e-16, 0.99999999999999978),
(-0.45499999999999996, 1.0, 1.1102230246251565e-16, 0.99999999999999978),
(-0.44499999999999995, 1.0, 1.1102230246251565e-16, 0.99999999999999978),
(-0.43499999999999994, 1.0, 1.1102230246251565e-16, 0.99999999999999978),
(-0.42499999999999993, 1.0, 1.1102230246251565e-16, 0.99999999999999978),
(-0.41499999999999992, 1.0, 1.1102230246251565e-16, 0.99999999999999978),
(-0.40499999999999992, 1.0, 1.1102230246251565e-16, 0.99999999999999978),
(-0.39499999999999991, 0.99999999999999978, 2.7755575615628918e-16, 0.99999999999999944),
(-0.3849999999999999, 0.99999999999999467, 6.4670491184415716e-15, 0.99999999999999234),
(-0.37499999999999989, 0.99999999999988776, 1.3308798507695558e-13, 0.99999999999984257),
(-0.36499999999999988, 0.99999999999795142, 2.4237278850641443e-12, 0.99999999999713185),
(-0.35499999999999987, 0.99999999996762634, 3.8304831530130371e-11, 0.99999999995467714),
(-0.34499999999999986, 0.9999999995562131, 5.2509580040759933e-10, 0.99999999937869855),
(-0.33499999999999985, 0.99999999472607115, 6.2401971419523565e-09, 0.99999999261649919),
(-0.32499999999999984, 0.99999994577382079, 6.4161282047119177e-08, 0.99999992408334937),
(-0.31499999999999984, 0.99999951928196795, 5.6879332200680462e-07, 0.99999932699485283),
(-0.30499999999999983, 0.99999634481101307, 4.3248824814959905e-06, 0.99999488274087778),
(-0.29499999999999982, 0.99997633737099978, 2.79981985962474e-05, 0.99996687254024597),
(-0.28499999999999981, 0.99987088139365798, 0.00015278136209548727, 0.99981924026677849),
(-0.2749999999999998, 0.99941378043705476, 0.00069375744886315566, 0.99917941692171297),
(-0.26499999999999979, 0.99781788235911262, 0.0025838519965398011, 0.99694667070431586),
(-0.25499999999999978, 0.99342121495457225, 0.0078025845316690946, 0.99080377644372952),
(-0.24499999999999977, 0.98396664008085244, 0.019085577438586857, 0.97763274444798665),
(-0.23499999999999976, 0.96793363368888941, 0.038418196061865424, 0.95541204434804472),
(-0.22499999999999976, 0.94570644798043035, 0.065654265643744547, 0.92483779493022644),
(-0.21499999999999975, 0.91913571997302768, 0.098909427615020667, 0.88863525073537986),
(-0.20499999999999974, 0.89023221601523495, 0.13599566576005953, 0.84967793214624232),
(-0.19499999999999973, 0.86041780219813813, 0.17531012301721785, 0.80995068909265133),
(-0.18499999999999972, 0.8305020195811702, 0.21591521730211277, 0.77055070706890127),
(-0.17499999999999971, 0.8009056282617506, 0.25731095878337934, 0.7320223185641187),
(-0.1649999999999997, 0.77184714843620994, 0.29922837596343643, 0.69462654528961598),
(-0.15499999999999969, 0.74344677036077855, 0.34150984863445688, 0.6584888001930933),
(-0.14499999999999968, 0.71577615716384058, 0.3840502790961422, 0.62366900266734182),
(-0.13499999999999968, 0.68888144418494501, 0.42676943038587994, 0.59019377200083745),
(-0.12499999999999968, 0.6627941455413211, 0.46959860870295073, 0.55807162556304857),
(-0.11499999999999969, 0.63753660526589484, 0.51247390933368231, 0.52730052843980701),
(-0.10499999999999969, 0.61312484769809938, 0.55533265985338043, 0.49787180099864842),
(-0.094999999999999696, 0.58957011850181684, 0.59811153812036699, 0.4697721936664796),
(-0.084999999999999701, 0.56688001778671482, 0.64074509894323095, 0.44298533199781343),
(-0.074999999999999706, 0.54506080995274542, 0.68316169419725314, 0.41749444939192293),
(-0.064999999999999711, 0.52412533713855136, 0.72526708274475149, 0.39329151342581087),
(-0.054999999999999709, 0.50412059320145031, 0.7668829674339982, 0.3704086642557895),
(-0.044999999999999707, 0.48521942621212033, 0.8075325790323119, 0.34902157047542365),
(-0.034999999999999705, 0.46798952801415838, 0.84578618076008127, 0.32974685351833127),
(-0.024999999999999703, 0.4539124843363786, 0.87793571859933139, 0.3141914269987745),
(-0.014999999999999703, 0.4453117097494409, 0.8979921479041113, 0.3048070144768753),
(-0.0049999999999997026, 0.44265849796839962, 0.90424912589460049, 0.30194110396148455),
(0.0050000000000002976, 0.44277152604102954, 0.90400167161754941, 0.30207396109955731),
(0.015000000000000298, 0.44458074109625789, 0.89974424674017883, 0.30406154478259872),
(0.0250000000000003, 0.44665186574379889, 0.89484127842442829, 0.30633620659817651),
(0.035000000000000302, 0.44722415984760716, 0.89344336715923944, 0.3069767246505235),
(0.045000000000000304, 0.44716266478033079, 0.89359856206472299, 0.30690395534340742),
(0.055000000000000306, 0.44689000763788234, 0.89428145391403135, 0.30659011440665951),
(0.065000000000000308, 0.44683455389593113, 0.89450478975743941, 0.30648208370927321),
(0.075000000000000303, 0.44687343951557484, 0.89435080463668515, 0.30655575368395022),
(0.085000000000000298, 0.44679662179222007, 0.89410446777149932, 0.30667701988019136),
(0.095000000000000293, 0.44663194699514586, 0.89399670954746402, 0.3067426275793218),
(0.10500000000000029, 0.44666498067017296, 0.8939032368159131, 0.30678067827130739),
(0.11500000000000028, 0.44744939615633389, 0.8938283386254392, 0.30679034686021484),
(0.12500000000000028, 0.44880262918560282, 0.89384265926379181, 0.30671165608649037),
(0.13500000000000029, 0.44930671664614646, 0.8939701751341157, 0.30661316478296419),
(0.1450000000000003, 0.44695294693653559, 0.89436014525089413, 0.30655123374810866),
(0.1550000000000003, 0.42499884313690589, 0.8967607749926938, 0.30648056991207406),
(0.16500000000000031, 0.37646019200020114, 0.90229316109419666, 0.3063749421769546),
(0.17500000000000032, 0.32308346953859418, 0.9086059712367901, 0.30632068302060489),
(0.18500000000000033, 0.28386306263008648, 0.91354863178497869, 0.30624468303654856),
(0.19500000000000034, 0.26312012485796243, 0.91618236506234674, 0.30627926864421728),
(0.20500000000000035, 0.25546475796037754, 0.91699628286383128, 0.30625564741653527),
(0.21500000000000036, 0.25382887050832692, 0.91726748768940347, 0.30624466686916185),
(0.22500000000000037, 0.25385244118957323, 0.91730025383922331, 0.30628818557740017),
(0.23500000000000038, 0.25435421897952837, 0.91709938305572969, 0.30632175500661168),
(0.24500000000000038, 0.25484785803655347, 0.91729763126993402, 0.30633152306973305),
(0.25500000000000039, 0.25514629256535842, 0.91712073191552634, 0.30624259391310038),
(0.2650000000000004, 0.25527804138560317, 0.91687215887997642, 0.30621371074195036),
(0.27500000000000041, 0.2553086860042269, 0.9173579272884218, 0.306381349096989),
(0.28500000000000042, 0.25508421322101449, 0.91714513017949251, 0.30625145391872971),
(0.29500000000000043, 0.25500112971314676, 0.91699589381745272, 0.30630793033357473),
(0.30500000000000044, 0.25501325412451314, 0.91719423148529511, 0.30637974594764761),
(0.31500000000000045, 0.2548911547607271, 0.91768611502897424, 0.30614465035840854),
(0.32500000000000046, 0.2547644714837658, 0.91775514645688094, 0.30605138955358835),
(0.33500000000000046, 0.2546465556459554, 0.91755181317584589, 0.30657038190930797),
(0.34500000000000047, 0.25704850786977601, 0.92186989259160956, 0.3085287750393364),
(0.35500000000000048, 0.24617054290848731, 0.8784393859773485, 0.29236958085661585),
(0.36500000000000049, 0.13360953118193081, 0.07564047374232051, 0.11035282175804639),
(0.3750000000000005, 0.12501790423176928, 0.00015158938150652916, 0.10002005518613435),
(0.38500000000000051, 0.12500002915548108, 2.4684206810964962e-07, 0.1000000326541411),
(0.39500000000000052, 0.12500000004718731, 3.9950684412222107e-10, 0.10000000005284979),
(0.40500000000000053, 0.12500000000007638, 6.4678817857060536e-13, 0.10000000000008555),
(0.41500000000000054, 0.12500000000000014, 1.0269562977782686e-15, 0.10000000000000016),
(0.42500000000000054, 0.125, 8.3266726846886741e-17, 0.10000000000000002),
(0.43500000000000055, 0.125, 8.3266726846886741e-17, 0.10000000000000002),
(0.44500000000000056, 0.125, 8.3266726846886741e-17, 0.10000000000000002),
(0.45500000000000057, 0.125, 8.3266726846886741e-17, 0.10000000000000002),
(0.46500000000000058, 0.125, 8.3266726846886741e-17, 0.10000000000000002),
(0.47500000000000059, 0.125, 8.3266726846886741e-17, 0.10000000000000002),
(0.4850000000000006, 0.125, 8.3266726846886741e-17, 0.10000000000000002),
(0.49500000000000061, 0.125, 8.3266726846886741e-17, 0.10000000000000002),
(0.50500000000000056, 0.125, 0.0, 0.10000000000000001)]
return solution_porting
|
# __version__.py
# autogenerated by poetry-hooks 0.1.0
__version__ = "0.1.0a0"
__title__ = "pytorch-caldera"
__authors__ = ["Justin Vrana <justin.vrana@gmail.com>"]
__repository__ = ""
__homepage__ = "http://www.github.com/jvrana/caldera"
__description__ = ""
__maintainers__ = ""
__readme__ = ""
__license__ = ""
|
n = int(input())
data = []
c1, c2 = 0, 0
flag = 0
for i in range(n):
val = list(map(int, input().split()))
data.append(tuple(val))
c1 += val[0]
c2 += val[1]
if (c1 % 2) != (c2 % 2):
flag = 1
if c1 % 2 == 1 and c2 % 2 == 1 and (c1+c2) % 2 == 0 and n > 1 and flag == 1:
print(1)
elif c1 % 2 == 0 and c2 % 2 == 0:
print(0)
else:
print(-1)
|
FULL_SCREEN = "FULL_SCREEN"
MOVE_UP = "MOVE_UP"
MOVE_LEFT = "MOVE_LEFT"
MOVE_RIGHT = "MOVE_RIGHT"
MOVE_DOWN = "MOVE_DOWN"
ATTACK = "ATTACK"
INVENTORY = "INVENTORY"
MOVEMENT_ACTION = [
MOVE_DOWN,
MOVE_UP,
MOVE_RIGHT,
MOVE_LEFT,
]
|
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
current_carry = 0
current = ListNode(0)
head = current
while l1 or l2 or current_carry:
current_val = current_carry
current_val += 0 if l1 is None else l1.val
current_val += 0 if l2 is None else l2.val
if current_val >= 10:
current_val -= 10
current_carry = 1
else:
current_carry = 0
current.next = ListNode(current_val)
current = current.next
if l1 is None and l2 is None:
break
elif l1 is None:
l2 = l2.next
elif l2 is None:
l1 = l1.next
else:
l1 = l1.next
l2 = l2.next
return head.next
|
#!/usr/bin/python3
class Node:
def __init__(self, data, lchild=None, rchild=None):
self.data = data
self.lchild = lchild
self.rchild = rchild
def pre_order(root):
if root != None:
print(root.data, end=' ')
pre_order(root.lchild)
pre_order(root.rchild)
def in_order(root):
if root != None:
in_order(root.lchild)
print(root.data, end=' ')
in_order(root.rchild)
def post_order(root):
if root != None:
post_order(root.lchild)
post_order(root.rchild)
print(root.data, end=' ')
def layor_order(root):
if root == None:
return
q = []
p = None
q.append(root)
while len(q) > 0:
p = q.pop(0)
print(p.data, end=' ')
if p.lchild != None:
q.append(p.lchild)
if p.rchild != None:
q.append(p.rchild)
print()
def height(root):
if root == None:
return 0
left_height = height(root.lchild)
right_height = height(root.rchild)
if left_height > right_height:
return left_height + 1
else:
return right_height + 1
if __name__ == "__main__":
a = Node('A', Node('B', Node('D', None, Node('F')), None), Node('C', None, Node('E')))
print("PreOrder:")
pre_order(a)
print()
print("InOder:")
in_order(a)
print()
print("PostOrder:")
post_order(a)
print()
print('LayorOrder:')
layor_order(a)
print("Tree height:", height(a))
|
DEBUG = False
SECRET_KEY = b'_5#y2L"F4Q8z\n\xec]/'
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://hlapse:h91040635!@rm-uf6gm31bj3hm81y14to.mysql.rds.aliyuncs.com/rss' + '?charset=utf8mb4'
SQLALCHEMY_TRACK_MODIFICATIONS = False
# JWT
JWT_ERROR_MESSAGE_KEY = "messsage"
JWT_ACCESS_TOKEN_EXPIRES = False
# APScheduler
SCHEDULER_API_ENABLED = True
SCHEDULER_EXECUTORS = {'default': {'type': 'threadpool', 'max_workers': 20}}
|
UP = 1
DOWN = 2
FLOOR_COUNT = 6
class ElevatorLogic(object):
"""
An incorrect implementation. Can you make it pass all the tests?
Fix the methods below to implement the correct logic for elevators.
The tests are integrated into `README.md`. To run the tests:
$ python -m doctest -v README.md
To learn when each method is called, read its docstring.
To interact with the world, you can get the current floor from the
`current_floor` property of the `callbacks` object, and you can move the
elevator by setting the `motor_direction` property. See below for how this is done.
"""
def __init__(self):
# Feel free to add any instance variables you want.
self.callbacks = None
self.direction = 0
self.called_floors_up = set()
self.called_floors_down = set()
self.selected_floors = set()
def on_called(self, floor, direction):
"""
This is called when somebody presses the up or down button to call the elevator.
This could happen at any time, whether or not the elevator is moving.
The elevator could be requested at any floor at any time, going in either direction.
floor: the floor that the elevator is being called to
direction: the direction the caller wants to go, up or down
"""
called_floors = self.called_floors_up if direction == UP else self.called_floors_down
current_floor = self.callbacks.current_floor
motor_direction = self.callbacks.motor_direction
if not floor in called_floors and (motor_direction != None or floor != current_floor):
called_floors.add(floor)
if self.direction == 0:
self.direction = UP if floor > current_floor else DOWN
def on_floor_selected(self, floor):
"""
This is called when somebody on the elevator chooses a floor.
This could happen at any time, whether or not the elevator is moving.
Any floor could be requested at any time.
floor: the floor that was requested
"""
delta = 1 if self.direction == UP else -1
current_floor = self.callbacks.current_floor
if not floor in self.selected_floors and floor != current_floor:
if self.direction == 0 or delta * (floor - current_floor) > 0:
self.selected_floors.add(floor)
if self.direction == 0:
self.direction = UP if floor > current_floor else DOWN
def on_floor_changed(self):
"""
This lets you know that the elevator has moved one floor up or down.
You should decide whether or not you want to stop the elevator.
"""
called_floors = self.called_floors_up if self.direction == UP else self.called_floors_down
reverse_called_floors = self.called_floors_down if self.direction == UP else self.called_floors_up
current_floor = self.callbacks.current_floor
if current_floor in self.selected_floors:
self.callbacks.motor_direction = None
self.selected_floors.discard(current_floor)
if current_floor in called_floors:
self.callbacks.motor_direction = None
called_floors.discard(current_floor)
elif not self.need_to_go(self.direction) and current_floor in reverse_called_floors:
self.callbacks.motor_direction = None
reverse_called_floors.discard(current_floor)
self.direction = DOWN if self.direction == UP else UP
def on_ready(self):
"""
This is called when the elevator is ready to go.
Maybe passengers have embarked and disembarked. The doors are closed,
time to actually move, if necessary.
"""
reverse_called_floors = self.called_floors_down if self.direction == UP else self.called_floors_up
current_floor = self.callbacks.current_floor
if self.direction != 0:
if self.need_to_go(self.direction):
self.callbacks.motor_direction = self.direction
elif current_floor in reverse_called_floors:
reverse_called_floors.discard(current_floor)
self.direction = DOWN if self.direction == UP else UP
else:
self.direction = 0
if self.direction == 0:
self.called_floors_up.discard(current_floor)
self.called_floors_down.discard(current_floor)
if self.need_to_go(UP):
self.callbacks.motor_direction = UP
self.direction = UP
elif self.need_to_go(DOWN):
self.callbacks.motor_direction = DOWN
self.direction = DOWN
def need_to_go(self, direction):
delta = 1 if direction == UP else -1
floors = self.selected_floors | self.called_floors_up | self.called_floors_down
for floor in floors:
if delta * (floor - self.callbacks.current_floor) > 0:
return True
return False
|
ROTATED_PROXY_ENABLED = True
PROXY_STORAGE = 'scrapy_rotated_proxy.extensions.file_storage.FileProxyStorage'
PROXY_FILE_PATH = ''
# PROXY_STORAGE = 'scrapy_rotated_proxy.extensions.mongodb_storage.MongoDBProxyStorage'
PROXY_MONGODB_HOST = '127.0.0.1'
PROXY_MONGODB_PORT = 27017
PROXY_MONGODB_USERNAME = None
PROXY_MONGODB_PASSWORD = None
PROXY_MONGODB_AUTH_DB = 'admin'
PROXY_MONGODB_DB = 'proxy_management'
PROXY_MONGODB_COLL = 'proxy'
PROXY_MONGODB_COLL_INDEX = []
PROXY_SLEEP_INTERVAL = 60*60*24
PROXY_SPIDER_CLOSE_WHEN_NO_PROXY = True
PROXY_RELOAD_ENABLED = False
|
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
# {
# 'target_name': 'cast_extension_discoverer',
# 'includes': ['../../../compile_js2.gypi'],
# },
# {
# 'target_name': 'cast_video_element',
# 'includes': ['../../../compile_js2.gypi'],
# },
# {
# 'target_name': 'caster',
# 'includes': ['../../../compile_js2.gypi'],
# },
# {
# 'target_name': 'media_manager',
# 'includes': ['../../../compile_js2.gypi'],
# },
],
}
|
"""Constants for the babydriver CAN protocol."""
# pylint: disable=too-few-public-methods
# Both the C and Python babydriver projects use 15 as the device ID, see can_msg_defs.h.
BABYDRIVER_DEVICE_ID = 15
# The babydriver CAN message has ID 63, see can_msg_defs.h.
BABYDRIVER_CAN_MESSAGE_ID = 63
class BabydriverMessageId:
"""
An enumeration of babydriver IDs, which go in the first uint8 in a babydriver CAN message.
This is the Python equivalent of the enum of the same name in babydriver_msg_defs.h and should
be kept up to date with it.
"""
STATUS = 0
GPIO_SET = 1
GPIO_GET_COMMAND = 2
GPIO_GET_DATA = 3
ADC_READ_COMMAND = 4
ADC_READ_DATA = 5
I2C_READ_COMMAND = 6
I2C_READ_DATA = 7
I2C_WRITE_COMMAND = 8
I2C_WRITE_DATA = 9
SPI_EXCHANGE_METADATA_1 = 10
SPI_EXCHANGE_METADATA_2 = 11
SPI_EXCHANGE_TX_DATA = 12
SPI_EXCHANGE_RX_DATA = 13
GPIO_IT_REGISTER_COMMAND = 14
GPIO_IT_UNREGISTER_COMMAND = 15
GPIO_IT_INTERRUPT = 16
|
def iscomplex(a):
# TODO(beam2d): Implement it
raise NotImplementedError
def iscomplexobj(x):
# TODO(beam2d): Implement it
raise NotImplementedError
def isfortran(a):
# TODO(beam2d): Implement it
raise NotImplementedError
def isreal(x):
# TODO(beam2d): Implement it
raise NotImplementedError
def isrealobj(x):
# TODO(beam2d): Implement it
raise NotImplementedError
|
N, K = map(int, input().split())
S = list(input())
S[K-1] = S[K-1].swapcase()
print("".join(S))
|
'''
Exercise 4:
An influencer is a person who doesn’t follow anybody but is followed by everybody. Given N
peoples and an adjacency matrix for the graph “following”, where the edge (A,B) means A
follows B, find the influencer among the group of N peoples if it exists.
Figure 1: Example of 2 social networks. On the left-hand side, the network does not have an
influencer, however on the right-hand side, C is an influencer.
Lilian Blot Software 1
P a g e | 2
In this exercise, you must use the adjacency matrix representation. Given a matrix following
that represents users following other users within a community of N users (with ids from 0 to
N-1):
• 𝑓𝑜𝑙𝑙𝑜𝑤𝑖𝑛𝑔[𝑖][𝑗] = 1 if and only if user 𝑖 is following user 𝑗. However, it doesn’t
imply 𝑓𝑜𝑙𝑙𝑜𝑤𝑖𝑛𝑔[𝑗][𝑖] = 1.
• Let’s also agree that 𝑓𝑜𝑙𝑙𝑜𝑤𝑖𝑛𝑔𝑀𝑎𝑡𝑟𝑖𝑥[𝑖][𝑖] = 0.
Find an Influencer find the influencer in this community network (that is its index), or return -
1 if there is no Influencer in this group.
Brute force
For each user 𝑈, you can check that the two properties below hold:
1. Everybody follows 𝑈,
2. 𝑈 doesn’t follow anybody.
A better approach
We can find the influencer in O(n) time by testing each person for the above properties. We
can select a person 𝑈 as a candidate influencer and then test if 𝑈 is indeed a influencer by
testing with next person. If the next person 𝑈𝑘 doesn’t follow the current candidate or the
candidate follows 𝑈𝑘 then 𝑈𝑘 may be the influencer. We can choose such a candidate and then
test if all other person followsthe candidate 𝑈𝑘 and the candidate 𝑈𝑘 doesn’t follow anybody.
If any of these properties fail, we say there is no such influencer.
Write the pseudo-code to implement this approach.
'''
# ABCDE
B = [[0,1,1,1,1],
[0,0,1,0,1],
[0,0,0,0,1],
[0,0,1,0,1],
[0,0,0,0,0]]
ElementsName = ['A','B','C','D','E']
###############################################################
#Brute Force
influencer=[]
# row should have 0's
def rowCheck(List):
factor = True
for row in range(len(List)):
for column in range(len(List[0])):
if List[row][column] !=0:
factor = False
break
if factor:
columnCheck(List,row)
factor = True
return influencer
# column should have 1's
def columnCheck(List, ColumnID):
for row in range(len(List)):
if row == ColumnID:
pass
else:
if List[row][ColumnID]==1:
pass
else:
return False
influencer.append(ElementsName[ColumnID])
print(rowCheck(B))
#################################################################
#God Like Move
# maybe O(n) who knows
def godsPlan(List):
l = len(List)
comparative = [0]*l
for arrI in range(l):
if List[arrI] == comparative:
result = [x for x in range(l) if List[arrI][x]==0]
if len(result)>1:
return ElementsName[arrI]
return -1
print(godsPlan(B))
# thing to notice: which was not clear before there can only be one influencer
#################################################################
#metho provided by seminar conuctor
#no idea xd
def influece(network):
v=0
noV = len(network)
while v < noV:
#print('\nV',v)
can = True
j=v+1
#print('J',j)
while j<noV:
#print('V + J',v,j)
if network[v][j]==1 or network[j][v]==0:
can = False
v=j
break
j+=1
#print('Result',can)
#print('J',j)
if can:
for j in range(0,noV-1):
if j!=v and ( network[v][j]==1 or network[j][v]==0):
return -1
return ElementsName[v]
return -1
print(influece(B))
|
full_submit = {
'processes' : [
{ 'name': 'mkdir', 'cmd': 'mkdir -p /mnt/mesos/sandbox/sandbox/__jobio/input /mnt/mesos/sandbox/sandbox/__jobio/output' },
{ 'name': 'symlink_in', 'cmd': 'ln -s /mnt/mesos/sandbox/sandbox/__jobio/input /job/input' },
{ 'name': 'symlink_out', 'cmd': 'ln -s /mnt/mesos/sandbox/sandbox/__jobio/output /job/output' },
{ 'name' : "locdown_0", 'cmd' : 'localizer "gs://foo" "/foo"' },
{ 'name' : "locdown_1", 'cmd' : 'localizer "http://bar" "/bar"' },
{ 'name' : "TESTJOB_ps", 'cmd' : 'echo Hello herc! > /baz' },
{ 'name' : "locup_0", 'cmd' : 'localizer "/baz" "gs://baz"' }
],
'finalizers' : [
{ 'name' : "__locup_stdout", 'cmd' : 'localizer ".logs/TESTJOB_ps/0/stdout" "gs://stdout"' },
{ 'name' : "__locup_stderr", 'cmd' : 'localizer ".logs/TESTJOB_ps/0/stderr" "gs://stderr"' }
],
'tasks' : [{ 'name' : 'TESTJOB_task',
'processes' : [ 'mkdir', 'symlink_in', 'symlink_out', "locdown_0", "locdown_1", "TESTJOB_ps", "locup_0", "__locup_stdout", "__locup_stderr" ],
'ordering' : [ 'mkdir', 'symlink_in', 'symlink_out', "locdown_0", "locdown_1", "TESTJOB_ps", "locup_0" ],
'cpus' : 1,
'mem' : 16,
'memunit' : "MB",
'disk' : 1,
'diskunit' : "MB"
}],
'jobs' : [{ 'name' : 'TESTJOB',
'task' : 'TESTJOB_task',
'env' : 'devel',
'cluster' : 'herc',
'hostlimit' : 99999999,
'container' : "python:2.7"
}]
}
|
"""Make Collatz Sequence
This program makes a `Collatz Sequence`_ for a given number.
Write a function named :meth:`collatz` that has one parameter named number.
If number is even, then :meth:`collatz` should print `number // 2` and return this value.
If number is odd, then :meth:`collatz` should print and return `3 * number + 1`.
Then write a program that lets the user type in an integer and that keeps calling
:meth:`collatz` on that number until the function returns the value `1`.
Example:
::
Enter number:
3
10
5
16
8
4
2
1
.. _Collatz Sequence:
https://en.wikipedia.org/wiki/Collatz_conjecture
"""
def collatz(number: int) -> int:
"""Collatz
If number is even, then return `number // 2`.
If number is odd, then return `3 * number + 1`.
Args:
number: Integer to generate a Collatz conjecture term for.
Returns:
Integer that is either a quotient or a product and sum.
"""
if not number % 2:
return number // 2
else:
return 3 * number + 1
def main():
n = int(input("Input a number: "))
while n != 1:
print(n)
n = collatz(n)
print(n) # When n == 1
# If program is run (instead of imported), call main():
if __name__ == "__main__":
main()
|
class TreasureMap:
def __init__(self):
self.map = {}
def populate_map(self):
self.map['beach'] = 'sandy shore'
self.map['coast'] = 'ocean reef'
self.map['volcano'] = 'hot lava'
self.map['x'] = 'marks the spot'
return
|
def sum(n):
a = 0
for b in range(1,n+1,4):
a+=b*b # b ** 2
return a
n = int(input('n='))
print(sum(n))
|
# %%
"""
# Exception handling
"""
# %%
"""
Exception handling allows a program to deal with runtime errors and continue its normal execution.
Consider the following instructions:
"""
# %%
a=input("Enter integer: ")
num=int(a)
inverse=1/num
print(number,inverse)
# %%
"""
What happens if the user enters a null or non-numeric value? The program will stop and raise an error as shown below.
"""
# %%
"""
```
Traceback (most recent call last):
File "", line 3, in
<u>ZeroDivisionError: division by zero</u>
```
"""
# %%
"""
```
Traceback (most recent call last):
File "", line 2, in
<b>ValueError: invalid literal for int() with base 10: 'sss'</b>
```
"""
# %%
"""
Error messages provide information about the line that caused the error by tracing back to the function calls that lead to this instruction. The line numbers of the function calls are displayed in the error message to enable quick correction of the code.
An error that occurs during execution is also called an exception. How can you deal with an exception so that the program can catch the error and prompt the user to enter a correct number?
"""
# %%
"""
## try and except
See the difference.
in the first case, the program crashes and the last `print("finished")` instruction did not execute.
"""
# %%
3 / 0
print("Finished")
# %%
"""
If the "try" instruction is used, the error is detected and the program is not interrupted.
"""
# %%
try:
3 / 0
except:
print('Not ok, there is an error')
print("Finished")
# %%
"""
Now, we will try to avoid the exceptions mentioned above by rewriting our code as follows.
We have the ability to capture the type of exception
"""
# %%
try:
3/0
except ZeroDivisionError:
print("Error: You can't divide by zero")
except ValueError:
print("Error: Non-numeric value")
except BaseException:
print("Error: there is a problem")
# %%
try:
3/int('ssss')
except ZeroDivisionError:
print("Error: You can't divide by zero")
except ValueError:
print("Error: Non-numeric value")
except BaseException:
print("Error: there is a problem")
# %%
"""
### Finally and else
try/except can be completed with two other keywords: finally and else.
else is the block executed if no exception is thrown:
"""
# %%
try:
3/3
except ZeroDivisionError:
print("Error: You can't divide by zero")
except ValueError:
print("Error: Non-numeric value")
except BaseException:
print("Error: there is a problem")
else:
print("Everything is ok")
# %%
"""
I'll do executing in the end no matter what.finally is a block that is executed after all other blocks have been executed, regardless of whether there was an exception or not, and **even if the program crashes**.
"""
# %%
try:
3/0
except ZeroDivisionError:
print("Error: You can't divide by zero")
except ValueError:
print("Error: Non-numeric value")
except BaseException:
print("Error: there is a problem")
finally:
print("I'll do executing in the end no matter what..")
# %%
"""
### raise
"""
# %%
"""
It is possible to trigger exceptions ourselves.
"""
# %%
"""
``raise`` a python statement that can trigger any Error. This means that an error is explicitly triggered.
"""
# %%
def division(num, div):
if div == 0:
raise ZeroDivisionError()
else:
return num / div
division(5,0)
# %%
"""
Well we agree, the function ``division()`` is completely useless!
### Creating an exception
As you can imagine, we can create our own executions.
Just create a class that will inherit the "Exception" class.
"""
# %%
class MyError(Exception):
pass
# %%
raise MyError("Hello")
# %%
|
#------------------------------------------------------------------------------
# interpreter/interpreter.py
# Copyright 2011 Joseph Schilz
# Licensed under Apache v2
#------------------------------------------------------------------------------
articles = [" a ", " the "]
def verb(command):
# A function to isolate the verb in a command.
this_verb = ""
the_rest = ""
first_space = command.find(" ")
# If this_input contains a space, the verb is everything before the
# first space.
if first_space > 0:
this_verb = command[0:first_space]
the_rest = command[first_space + 1:len(command)]
# If it doesn't contain a space, the whole thing is the verb.
else:
this_verb = command
# We handle simple verb aliases at this level...
if command[0] == "'":
this_verb = "say"
the_rest = command[1:len(command)]
if command == "north" or command == "n":
this_verb = "go"
the_rest = "north"
elif command == "south" or command == "s":
this_verb = "go"
the_rest = "south"
elif command == "east" or command == "e":
this_verb = "go"
the_rest = "east"
elif command == "west" or command == "w":
this_verb = "go"
the_rest = "west"
elif command == "up" or command == "u":
this_verb = "go"
the_rest = "up"
elif command == "down" or command == "d":
this_verb = "go"
the_rest = "down"
if this_verb == "l":
this_verb = "look"
elif this_verb == "i":
this_verb = "inv"
elif this_verb == "h":
this_verb = "health"
return this_verb, the_rest
def interpret(the_verb, the_rest, transitivity=1):
the_rest = " " + the_rest.lower() + " "
for article in articles:
the_rest = the_rest.replace(article, '')
if transitivity == 1:
the_rest = the_rest.strip().split()
if len(the_rest) > 0:
# This might not be stable.
return [the_rest.pop(), the_rest]
else:
return False
|
URLs = [
["https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Current version
["https://web.archive.org/web/20220413213804/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 13 - 21:38:04 UTC
["https://web.archive.org/web/20220412213745/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 12 - 21:37:45 UTC
["https://web.archive.org/web/20220411210123/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 11 - 21:01:23 UTC
["https://web.archive.org/web/20220410235550/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 10 - 23:55:50 UTC
["https://web.archive.org/web/20220409233956/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 9 - 23:39:56 UTC
["https://web.archive.org/web/20220408202350/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 8 - 20:23:50 UTC
["https://web.archive.org/web/20220407235250/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 7 - 23:52:50 UTC
["https://web.archive.org/web/20220406205229/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 6 - 20:52:29 UTC
["https://web.archive.org/web/20220405233659/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 5 - 23:36:59 UTC
["https://web.archive.org/web/20220404220900/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 4 - 22:09:00 UTC
["https://web.archive.org/web/20220403225440/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 3 - 22:54:40 UTC
["https://web.archive.org/web/20220402220455/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 2 - 22:04:55 UTC
["https://web.archive.org/web/20220401220928/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Apr 1 - 22:09:28 UTC
["https://web.archive.org/web/20220401002724/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", False], # Mar 31 - (April 01 - 00:27:24 UTC)
["https://web.archive.org/web/20220330234337/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 30 - 23:43:37 UTC
["https://web.archive.org/web/20220329202039/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 29 - 20:20:39 UTC
["https://web.archive.org/web/20220328205313/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 28 - 20:53:13 UTC
["https://web.archive.org/web/20220327235658/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 27 - 23:56:58 UTC
["https://web.archive.org/web/20220326220720/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 26 - 22:07:20 UTC
["https://web.archive.org/web/20220325232201/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 25 - 23:22:01 UTC
["https://web.archive.org/web/20220324235259/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 24 - 23:52:59 UTC
["https://web.archive.org/web/20220323230032/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 23 - 23:00:32 UTC
["https://web.archive.org/web/20220322205154/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 22 - 20:51:54 UTC
["https://web.archive.org/web/20220321235106/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 21 - 23:51:06 UTC
["https://web.archive.org/web/20220320235959/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 20 - 23:59:59 UTC
["https://web.archive.org/web/20220319224651/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 19 - 22:46:51 UTC
["https://web.archive.org/web/20220318215226/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 18 - 21:52:26 UTC
["https://web.archive.org/web/20220317233941/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 17 - 23:39:41 UTC
["https://web.archive.org/web/20220316230757/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 16 - 23:07:57 UTC
["https://web.archive.org/web/20220315235520/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 15 - 23:55:20 UTC
["https://web.archive.org/web/20220315000709/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", False], # Mar 14 - (Mar 15 - 00:07:09 UTC)
["https://web.archive.org/web/20220313230901/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 13 - 23:09:01 UTC
["https://web.archive.org/web/20220312213558/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 12 - 21:35:58 UTC
["https://web.archive.org/web/20220311205005/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 11 - 20:50:05 UTC
["https://web.archive.org/web/20220310235649/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 10 - 23:56:49 UTC
["https://web.archive.org/web/20220309213817/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 9 - 21:38:17 UTC
["https://web.archive.org/web/20220308204303/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 8 - 20:43:03 UTC
["https://web.archive.org/web/20220307220942/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 7 - 22:09:42 UTC
["https://web.archive.org/web/20220306225654/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 6 - 22:56:54 UTC
["https://web.archive.org/web/20220305211400/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 5 - 21:14:00 UTC
["https://web.archive.org/web/20220304235636/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 4 - 23:56:36 UTC
["https://web.archive.org/web/20220303195838/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 3 - 19:58:38 UTC
["https://web.archive.org/web/20220302205559/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 2 - 20:55:59 UTC
["https://web.archive.org/web/20220301185329/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Mar 1 - 18:53:29 UTC
["https://web.archive.org/web/20220228231935/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Feb 28 - 23:19:35 UTC
["https://web.archive.org/web/20220227214345/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Feb 27 - 21:43:45 UTC
["https://web.archive.org/web/20220226185336/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Feb 26 - 18:53:36 UTC
["https://web.archive.org/web/20220225233528/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Feb 25 - 23:35:28 UTC
["https://web.archive.org/web/20220224231142/https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html", True], # Feb 24 - 23:11:42 UTC
]
|
#Enquiry Form
name=input('Enter your First Name ')
Class=int(input('Enter your class '))
school=input('Enter your school name ')
address=input('Enter your Address ')
number=int(input('Enter your phone number '))
#print("Name- ",name,"Class- ",Class,"School- ",school,"Address- ",address,"Phone Number- ",number,sep='\n')
print("Name- ",name)
print("Class- ",Class)
print("School- ",school)
print("Address- ",address)
print("Phone number- ",number)
|
'''ftoc.py - Fahrenheit to Celsius temperature converter'''
def f_to_c(f):
c = (f - 32) * (5/9)
return c
def input_float(prompt):
ans = input(prompt)
return float(ans)
f = input_float("What is the temperature (in degrees Fahrenheit)? ")
c = f_to_c(f)
print("That is", round(c, 1), "degrees Celsius")
|
class Solution:
# Sort (Accepted), O(n log n) time, O(n) space
def maxProductDifference(self, nums: List[int]) -> int:
nums.sort()
return (nums[-1] * nums[-2]) - (nums[0] * nums[1])
# One Pass (Top Voted), O(n) time, O(1) space
def maxProductDifference(self, nums: List[int]) -> int:
min1 = min2 = float('inf')
max1 = max2 = float('-inf')
for n in nums:
if n <= min1:
min1, min2, = n, min1
elif n < min2:
min2 = n
if n >= max1:
max1, max2 = n, max1
elif n > max2:
max2 = n
return max1*max2-min1*min2
|
nota = float(input('Digite sua nota, Valor entre "0 e 10": '))
while True:
if nota >= 8.5 and nota <= 10:
print('Nota igual a A')
elif nota >= 7.0 and nota <= 8.4:
print('Nota igual a B')
elif nota >= 5.0 and nota <= 6.9:
print('Nota igual a C')
elif nota >= 4.0 and nota <= 4.9:
print('Nota igual a D')
elif nota >= 0 and nota <= 3.9:
print('Nota igual a E')
else:
print('Nota invalida')
nota = float(input('Digite sua nota, Valor entre "0 e 10": '))
|
# Given an array, rotate the array to the right by k steps, where k is
# non-negative.
# Example 1:
# Input: [1,2,3,4,5,6,7] and k = 3
# Output: [5,6,7,1,2,3,4]
# Explanation:
# rotate 1 steps to the right: [7,1,2,3,4,5,6]
# rotate 2 steps to the right: [6,7,1,2,3,4,5]
# rotate 3 steps to the right: [5,6,7,1,2,3,4]
# Example 2:
# Input: [-1,-100,3,99] and k = 2
# Output: [3,99,-1,-100]
# Explanation:
# rotate 1 steps to the right: [99,-1,-100,3]
# rotate 2 steps to the right: [3,99,-1,-100]
# Note:
# Try to come up as many solutions as you can, there are at least 3 different
# ways to solve this problem.
# Could you do it in-place with O(1) extra space?
class Solution:
def rotate(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: void Do not return anything, modify nums in-place instead.
"""
stack = []
finalArr = []
for i in range(k):
stack.append(nums.pop())
for i in range(len(stack)):
finalArr.append(stack.pop())
for cur in nums:
finalArr.append(cur)
return finalArr
# Rotate Inplace (space complexity - O(1))
# Logic is explained in leetcode solns.
def rotate_inplace(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: void Do not return anything, modify nums in-place instead.
"""
k %= len(nums) # for edge cases where k > len(nums)
# without this, we get index out of bound error when k > len(nums)
j = 0
for i in range(len(nums) // 2):
temp = nums[i]
nums[i] = nums[len(nums) - 1 - i]
nums[len(nums) - 1 - i] = temp
for i in range(k // 2):
temp = nums[i]
nums[i] = nums[k - 1 - i]
nums[k - 1 - i] = temp
for i in range(k, k + ((len(nums) - k) // 2)):
temp = nums[i]
nums[i] = nums[len(nums) - 1 - j]
nums[len(nums) - 1 - j] = temp
j += 1
|
INVALID_VALUE = -9999
def search_in_dictionary_list(dictionary_list, key_name, key_value):
for dictionary in dictionary_list:
if dictionary[key_name] == key_value:
return dictionary
return None
def search_value_in_dictionary_list(dictionary_list, key_name, key_value, value_key):
dictionary = search_in_dictionary_list(dictionary_list, key_name, key_value)
if dictionary is not None:
return dictionary[value_key]
else:
return INVALID_VALUE
|
expected_output = {
"global_drop_stats": {
"Ipv4NoAdj": {"octets": 296, "packets": 7},
"Ipv4NoRoute": {"octets": 7964, "packets": 181},
"PuntPerCausePolicerDrops": {"octets": 184230, "packets": 2003},
"UidbNotCfgd": {"octets": 29312827, "packets": 466391},
"UnconfiguredIpv4Fia": {"octets": 360, "packets": 6},
}
}
|
def func(ord_list, num):
result = True if num in ord_list else False
return result
if __name__ == "__main__":
l = [-1,3,5,6,8,9]
# using binary search
def find(ordered_list, element):
start_index = 0
end_index = len(ordered_list) - 1
while True:
middle_index = int((end_index + start_index) / 2)
if middle_index == start_index or middle_index == end_index:
if ordered_list[middle_index] == element or ordered_list[end_index] == element:
return True
else:
return False
middle_element = ordered_list[middle_index]
if middle_element == element:
return True
elif middle_element > element:
end_index = middle_index
else:
start_index = middle_index
if __name__=="__main__":
l = [2, 4, 6, 8, 10]
print(find(l, 8))
|
# 54. Spiral Matrix
class Solution:
def spiralOrder(self, matrix):
if not matrix: return matrix
m, n = len(matrix), len(matrix[0])
visited = [[False] * n for _ in range(m)]
ans = []
dirs = ((0,1), (1,0), (0,-1), (-1,0))
cur = 0
i = j = 0
while len(ans) < m * n:
if not visited[i][j]:
ans.append(matrix[i][j])
visited[i][j] = True
di, dj = dirs[cur]
ii, jj = i+di, j+dj
if ii<0 or ii>=m or jj<0 or jj>=n or visited[ii][jj]:
cur = (cur+1) % 4
di, dj = dirs[cur]
i, j = i+di, j+dj
return ans
|
class Solution:
# @param s, a string
# @param wordDict, a set<string>
# @return a boolean
def wordBreak(self, s, wordDict):
n = len(s)
if n == 0:
return True
res = []
chars = ''.join(wordDict)
for i in xrange(n):
if s[i] not in chars:
return False
lw = s[-1]
lw_end = False
for word in wordDict:
if word[-1] == lw:
lw_end = True
if not lw_end:
return False
return self.dfs(s,[],wordDict, res)
def dfs(self, s, path, wordDict,res):
if not s :
res.append(path[:])
return True
for i in xrange(1,len(s)+1):
c = s[:i]
if c in wordDict:
path.append(c)
v = self.dfs(s[i:],path,wordDict,res)
if v:
return True
path.pop()
return False
|
clan = {
}
def add_member(tag, name, age, level):
clan[tag] = {
"Name": name,
"age": age,
"level": level
}
return clan
def display_clan():
print(clan)
add_member("Voodoo", "Andre Williams", 26, "Beginner")
display_clan()
|
class CRSError(Exception):
pass
class DriverError(Exception):
pass
class TransactionError(RuntimeError):
pass
class UnsupportedGeometryTypeError(Exception):
pass
class DriverIOError(IOError):
pass
|
# Search Part Problem
n = int(input())
part_list = list(map(int, input().split()))
m = int(input())
require_list = list(map(int, input().split()))
def binary_search(array, target, start, end):
mid = (start + end) // 2
if start >= end:
return "no"
if array[mid] == target:
return "yes"
if array[mid] > target:
return binary_search(array, target, start, mid - 1)
else:
return binary_search(array, target, mid + 1, end)
return "no"
part_list = sorted(part_list)
result = [binary_search(part_list, i, 0, n) for i in require_list]
for answer in result:
print(answer, end=" ")
|
time_convert = {"s": 1, "m": 60, "h": 3600, "d": 86400}
def convert_time_to_seconds(time):
try:
return int(time[:-1]) * time_convert[time[-1]]
except:
raise ValueError
|
def loadfile(name):
lines = []
f = open(name, "r")
for x in f:
if x.endswith('\n'):
x = x[:-1]
lines.append(x.split("-"))
return lines
def pathFromPosition (position, graph, path, s, e, goingTwice, bt):
beenThere = bt.copy()
path = path + "-" + position
print(path)
paths = []
if position == e:
return [path]
else:
edges = findEdgesFromPosition(position, graph)
if len(edges) == 0:
print("Doodlopend ", path)
return []
for edge in edges:
if not position[0].isupper():
if goingTwice == False:
graph = removeNodeFromGraph(graph, position)
else:
if position == s:
graph = removeNodeFromGraph(graph, position)
elif position in beenThere:
print(beenThere)
print("hiephoooi", path)
goingTwice = False
for p in beenThere:
graph = removeNodeFromGraph(graph, p)
else:
beenThere.append(position)
print("Beenthere", position, path)
cedge = edge.copy()
cedge.remove(position)
nextNode = cedge[0]
print(goingTwice)
paths.extend(pathFromPosition(nextNode, graph, path, s, e, goingTwice, beenThere))
return paths
def removeNodeFromGraph (graph, position):
g = []
for edge in graph:
if position not in edge:
g.append(edge)
return g
def findEdgesFromPosition (position, graph):
edges = []
for edge in graph:
if position in edge:
edges.append(edge)
return edges
originalGraph = loadfile("test.txt")
print(originalGraph)
endPaths = pathFromPosition("start", originalGraph, "", "start", "end", False, [])
endPaths2 = pathFromPosition("start", originalGraph, "", "start", "end", True, [])
print(endPaths)
print(endPaths2)
endPaths2 = list(dict.fromkeys(endPaths2))
print("Opdracht 12a: ", len(endPaths))
print("Opdracht 12b: ", len(endPaths2))
|
def launch(self, Dialog, **kwargs):
# This is where the magic happens!
# The lx module is persistent so you can store stuff there
# and access it in commands.
lx._widget = Dialog
lx._widgetOptions = kwargs
# widgetWrapper creates whatever widget is set via lx._widget above
# note we're using launchScript which allows for runtime blessing
lx.eval('launchWidget')
try:
return lx._widgetInstance
except:
return None
|
test = { 'name': 'q1_2',
'points': 1,
'suites': [ { 'cases': [ {'code': '>>> sum(standard_units(make_array(1,2,3,4,5))) == 0\nTrue', 'hidden': False, 'locked': False},
{'code': '>>> np.isclose(standard_units(make_array(1,2,3,4,5))[0], -1.41421356)\nTrue', 'hidden': False, 'locked': False}],
'scored': True,
'setup': '',
'teardown': '',
'type': 'doctest'}]}
|
x = input()
total = 0
while x != "NoMoreMoney":
money = float(x)
if money > 0:
total += money
print(f"Increase: {money:.2f}")
x = input()
elif money < 0:
print("Invalid operation!")
break
print(f"Total: {total:.2f}")
|
# !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on 2021/7/27 12:43 下午
@author: huangyiwei
"""
haa_table = ["00","0A","0B","0C","0D","0E","0F","0G","0H","0I","0J","0K","0L","0M","0N","0O","0P","0Q","0R","0S","0T","0U","0V","0W","0X","0Y","0Z","0a","0b","0c","0d","0e","0f","0g","0h","0i","0j","0k","0l","0m","0n","0o","0p","0q","0r","0s","0t","0u","0v","0w","0x","0y","0z","01","02","03","04","05","06","07","08","09","0+","0/","0!","0@","0#","0$","0%","0&","0(","0)","0=","0?","0*","0,","0.","0;","0:","0-","0_","0<","0>","A0","AA","AB","AC","AD","AE","AF","AG","AH","AI","AJ","AK","AL","AM","AN","AO","AP","AQ","AR","AS","AT","AU","AV","AW","AX","AY","AZ","Aa","Ab","Ac","Ad","Ae","Af","Ag","Ah","Ai","Aj","Ak","Al","Am","An","Ao","Ap","Aq","Ar","As","At","Au","Av","Aw","Ax","Ay","Az","A1","A2","A3","A4","A5","A6","A7","A8","A9","A+","A/","A!","A@","A#","A$","A%","A&","A(","A)","A=","A?","A*","A,","A.","A;","A:","A-","A_","A<","A>","B0","BA","BB","BC","BD","BE","BF","BG","BH","BI","BJ","BK","BL","BM","BN","BO","BP","BQ","BR","BS","BT","BU","BV","BW","BX","BY","BZ","Ba","Bb","Bc","Bd","Be","Bf","Bg","Bh","Bi","Bj","Bk","Bl","Bm","Bn","Bo","Bp","Bq","Br","Bs","Bt","Bu","Bv","Bw","Bx","By","Bz","B1","B2","B3","B4","B5","B6","B7","B8","B9","B+","B/","B!","B@","B#","B$","B%","B&","B(","B)","B=","B?","B*","B,","B.","B;","B:","B-","B_","B<","B>","C0","CA","CB","CC","CD","CE","CF","CG","CH","CI","CJ","CK","CL","CM","CN","CO","CP","CQ","CR","CS","CT","CU","CV","CW","CX","CY","CZ","Ca","Cb","Cc","Cd","Ce","Cf","Cg","Ch","Ci","Cj","Ck","Cl","Cm","Cn","Co","Cp","Cq","Cr","Cs","Ct","Cu","Cv","Cw","Cx","Cy","Cz","C1","C2","C3","C4","C5","C6","C7","C8","C9","C+","C/","C!","C@","C#","C$","C%","C&","C(","C)","C=","C?","C*","C,","C.","C;","C:","C-","C_","C<","C>","D0","DA","DB","DC","DD","DE","DF","DG","DH","DI","DJ","DK","DL","DM","DN","DO","DP","DQ","DR","DS","DT","DU","DV","DW","DX","DY","DZ","Da","Db","Dc","Dd","De","Df","Dg","Dh","Di","Dj","Dk","Dl","Dm","Dn","Do","Dp","Dq","Dr","Ds","Dt","Du","Dv","Dw","Dx","Dy","Dz","D1","D2","D3","D4","D5","D6","D7","D8","D9","D+","D/","D!","D@","D#","D$","D%","D&","D(","D)","D=","D?","D*","D,","D.","D;","D:","D-","D_","D<","D>","E0","EA","EB","EC","ED","EE","EF","EG","EH","EI","EJ","EK","EL","EM","EN","EO","EP","EQ","ER","ES","ET","EU","EV","EW","EX","EY","EZ","Ea","Eb","Ec","Ed","Ee","Ef","Eg","Eh","Ei","Ej","Ek","El","Em","En","Eo","Ep","Eq","Er","Es","Et","Eu","Ev","Ew","Ex","Ey","Ez","E1","E2","E3","E4","E5","E6","E7","E8","E9","E+","E/","E!","E@","E#","E$","E%","E&","E(","E)","E=","E?","E*","E,","E.","E;","E:","E-","E_","E<","E>","F0","FA","FB","FC","FD","FE","FF","FG","FH","FI","FJ","FK","FL","FM","FN","FO","FP","FQ","FR","FS","FT","FU","FV","FW","FX","FY","FZ","Fa","Fb","Fc","Fd","Fe","Ff","Fg","Fh","Fi","Fj","Fk","Fl","Fm","Fn","Fo","Fp","Fq","Fr","Fs","Ft","Fu","Fv","Fw","Fx","Fy","Fz","F1","F2","F3","F4","F5","F6","F7","F8","F9","F+","F/","F!","F@","F#","F$","F%","F&","F(","F)","F=","F?","F*","F,","F.","F;","F:","F-","F_","F<","F>","G0","GA","GB","GC","GD","GE","GF","GG","GH","GI","GJ","GK","GL","GM","GN","GO","GP","GQ","GR","GS","GT","GU","GV","GW","GX","GY","GZ","Ga","Gb","Gc","Gd","Ge","Gf","Gg","Gh","Gi","Gj","Gk","Gl","Gm","Gn","Go","Gp","Gq","Gr","Gs","Gt","Gu","Gv","Gw","Gx","Gy","Gz","G1","G2","G3","G4","G5","G6","G7","G8","G9","G+","G/","G!","G@","G#","G$","G%","G&","G(","G)","G=","G?","G*","G,","G.","G;","G:","G-","G_","G<","G>","H0","HA","HB","HC","HD","HE","HF","HG","HH","HI","HJ","HK","HL","HM","HN","HO","HP","HQ","HR","HS","HT","HU","HV","HW","HX","HY","HZ","Ha","Hb","Hc","Hd","He","Hf","Hg","Hh","Hi","Hj","Hk","Hl","Hm","Hn","Ho","Hp","Hq","Hr","Hs","Ht","Hu","Hv","Hw","Hx","Hy","Hz","H1","H2","H3","H4","H5","H6","H7","H8","H9","H+","H/","H!","H@","H#","H$","H%","H&","H(","H)","H=","H?","H*","H,","H.","H;","H:","H-","H_","H<","H>","I0","IA","IB","IC","ID","IE","IF","IG","IH","II","IJ","IK","IL","IM","IN","IO","IP","IQ","IR","IS","IT","IU","IV","IW","IX","IY","IZ","Ia","Ib","Ic","Id","Ie","If","Ig","Ih","Ii","Ij","Ik","Il","Im","In","Io","Ip","Iq","Ir","Is","It","Iu","Iv","Iw","Ix","Iy","Iz","I1","I2","I3","I4","I5","I6","I7","I8","I9","I+","I/","I!","I@","I#","I$","I%","I&","I(","I)","I=","I?","I*","I,","I.","I;","I:","I-","I_","I<","I>","J0","JA","JB","JC","JD","JE","JF","JG","JH","JI","JJ","JK","JL","JM","JN","JO","JP","JQ","JR","JS","JT","JU","JV","JW","JX","JY","JZ","Ja","Jb","Jc","Jd","Je","Jf","Jg","Jh","Ji","Jj","Jk","Jl","Jm","Jn","Jo","Jp","Jq","Jr","Js","Jt","Ju","Jv","Jw","Jx","Jy","Jz","J1","J2","J3","J4","J5","J6","J7","J8","J9","J+","J/","J!","J@","J#","J$","J%","J&","J(","J)","J=","J?","J*","J,","J.","J;","J:","J-","J_","J<","J>","K0","KA","KB","KC","KD","KE","KF","KG","KH","KI","KJ","KK","KL","KM","KN","KO","KP","KQ","KR","KS","KT","KU","KV","KW","KX","KY","KZ","Ka","Kb","Kc","Kd","Ke","Kf","Kg","Kh","Ki","Kj","Kk","Kl","Km","Kn","Ko","Kp","Kq","Kr","Ks","Kt","Ku","Kv","Kw","Kx","Ky","Kz","K1","K2","K3","K4","K5","K6","K7","K8","K9","K+","K/","K!","K@","K#","K$","K%","K&","K(","K)","K=","K?","K*","K,","K.","K;","K:","K-","K_","K<","K>","L0","LA","LB","LC","LD","LE","LF","LG","LH","LI","LJ","LK","LL","LM","LN","LO","LP","LQ","LR","LS","LT","LU","LV","LW","LX","LY","LZ","La","Lb","Lc","Ld","Le","Lf","Lg","Lh","Li","Lj","Lk","Ll","Lm","Ln","Lo","Lp","Lq","Lr","Ls","Lt","Lu","Lv","Lw","Lx","Ly","Lz","L1","L2","L3","L4","L5","L6","L7","L8","L9","L+","L/","L!","L@","L#","L$","L%","L&","L(","L)","L=","L?","L*","L,","L.","L;","L:","L-","L_","L<","L>","M0","MA","MB","MC","MD","ME","MF","MG","MH","MI","MJ","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","Ma","Mb","Mc","Md","Me","Mf","Mg","Mh","Mi","Mj","Mk","Ml","Mm","Mn","Mo","Mp","Mq","Mr","Ms","Mt","Mu","Mv","Mw","Mx","My","Mz","M1","M2","M3","M4","M5","M6","M7","M8","M9","M+","M/","M!","M@","M#","M$","M%","M&","M(","M)","M=","M?","M*","M,","M.","M;","M:","M-","M_","M<","M>","N0","NA","NB","NC","ND","NE","NF","NG","NH","NI","NJ","NK","NL","NM","NN","NO","NP","NQ","NR","NS","NT","NU","NV","NW","NX","NY","NZ","Na","Nb","Nc","Nd","Ne","Nf","Ng","Nh","Ni","Nj","Nk","Nl","Nm","Nn","No","Np","Nq","Nr","Ns","Nt","Nu","Nv","Nw","Nx","Ny","Nz","N1","N2","N3","N4","N5","N6","N7","N8","N9","N+","N/","N!","N@","N#","N$","N%","N&","N(","N)","N=","N?","N*","N,","N.","N;","N:","N-","N_","N<","N>","O0","OA","OB","OC","OD","OE","OF","OG","OH","OI","OJ","OK","OL","OM","ON","OO","OP","OQ","OR","OS","OT","OU","OV","OW","OX","OY","OZ","Oa","Ob","Oc","Od","Oe","Of","Og","Oh","Oi","Oj","Ok","Ol","Om","On","Oo","Op","Oq","Or","Os","Ot","Ou","Ov","Ow","Ox","Oy","Oz","O1","O2","O3","O4","O5","O6","O7","O8","O9","O+","O/","O!","O@","O#","O$","O%","O&","O(","O)","O=","O?","O*","O,","O.","O;","O:","O-","O_","O<","O>","P0","PA","PB","PC","PD","PE","PF","PG","PH","PI","PJ","PK","PL","PM","PN","PO","PP","PQ","PR","PS","PT","PU","PV","PW","PX","PY","PZ","Pa","Pb","Pc","Pd","Pe","Pf","Pg","Ph","Pi","Pj","Pk","Pl","Pm","Pn","Po","Pp","Pq","Pr","Ps","Pt","Pu","Pv","Pw","Px","Py","Pz","P1","P2","P3","P4","P5","P6","P7","P8","P9","P+","P/","P!","P@","P#","P$","P%","P&","P(","P)","P=","P?","P*","P,","P.","P;","P:","P-","P_","P<","P>","Q0","QA","QB","QC","QD","QE","QF","QG","QH","QI","QJ","QK","QL","QM","QN","QO","QP","QQ","QR","QS","QT","QU","QV","QW","QX","QY","QZ","Qa","Qb","Qc","Qd","Qe","Qf","Qg","Qh","Qi","Qj","Qk","Ql","Qm","Qn","Qo","Qp","Qq","Qr","Qs","Qt","Qu","Qv","Qw","Qx","Qy","Qz","Q1","Q2","Q3","Q4","Q5","Q6","Q7","Q8","Q9","Q+","Q/","Q!","Q@","Q#","Q$","Q%","Q&","Q(","Q)","Q=","Q?","Q*","Q,","Q.","Q;","Q:","Q-","Q_","Q<","Q>","R0","RA","RB","RC","RD","RE","RF","RG","RH","RI","RJ","RK","RL","RM","RN","RO","RP","RQ","RR","RS","RT","RU","RV","RW","RX","RY","RZ","Ra","Rb","Rc","Rd","Re","Rf","Rg","Rh","Ri","Rj","Rk","Rl","Rm","Rn","Ro","Rp","Rq","Rr","Rs","Rt","Ru","Rv","Rw","Rx","Ry","Rz","R1","R2","R3","R4","R5","R6","R7","R8","R9","R+","R/","R!","R@","R#","R$","R%","R&","R(","R)","R=","R?","R*","R,","R.","R;","R:","R-","R_","R<","R>","S0","SA","SB","SC","SD","SE","SF","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SP","SQ","SR","SS","ST","SU","SV","SW","SX","SY","SZ","Sa","Sb","Sc","Sd","Se","Sf","Sg","Sh","Si","Sj","Sk","Sl","Sm","Sn","So","Sp","Sq","Sr","Ss","St","Su","Sv","Sw","Sx","Sy","Sz","S1","S2","S3","S4","S5","S6","S7","S8","S9","S+","S/","S!","S@","S#","S$","S%","S&","S(","S)","S=","S?","S*","S,","S.","S;","S:","S-","S_","S<","S>","T0","TA","TB","TC","TD","TE","TF","TG","TH","TI","TJ","TK","TL","TM","TN","TO","TP","TQ","TR","TS","TT","TU","TV","TW","TX","TY","TZ","Ta","Tb","Tc","Td","Te","Tf","Tg","Th","Ti","Tj","Tk","Tl","Tm","Tn","To","Tp","Tq","Tr","Ts","Tt","Tu","Tv","Tw","Tx","Ty","Tz","T1","T2","T3","T4","T5","T6","T7","T8","T9","T+","T/","T!","T@","T#","T$","T%","T&","T(","T)","T=","T?","T*","T,","T.","T;","T:","T-","T_","T<","T>","U0","UA","UB","UC","UD","UE","UF","UG","UH","UI","UJ","UK","UL","UM","UN","UO","UP","UQ","UR","US","UT","UU","UV","UW","UX","UY","UZ","Ua","Ub","Uc","Ud","Ue","Uf","Ug","Uh","Ui","Uj","Uk","Ul","Um","Un","Uo","Up","Uq","Ur","Us","Ut","Uu","Uv","Uw","Ux","Uy","Uz","U1","U2","U3","U4","U5","U6","U7","U8","U9","U+","U/","U!","U@","U#","U$","U%","U&","U(","U)","U=","U?","U*","U,","U.","U;","U:","U-","U_","U<","U>","V0","VA","VB","VC","VD","VE","VF","VG","VH","VI","VJ","VK","VL","VM","VN","VO","VP","VQ","VR","VS","VT","VU","VV","VW","VX","VY","VZ","Va","Vb","Vc","Vd","Ve","Vf","Vg","Vh","Vi","Vj","Vk","Vl","Vm","Vn","Vo","Vp","Vq","Vr","Vs","Vt","Vu","Vv","Vw","Vx","Vy","Vz","V1","V2","V3","V4","V5","V6","V7","V8","V9","V+","V/","V!","V@","V#","V$","V%","V&","V(","V)","V=","V?","V*","V,","V.","V;","V:","V-","V_","V<","V>","W0","WA","WB","WC","WD","WE","WF","WG","WH","WI","WJ","WK","WL","WM","WN","WO","WP","WQ","WR","WS","WT","WU","WV","WW","WX","WY","WZ","Wa","Wb","Wc","Wd","We","Wf","Wg","Wh","Wi","Wj","Wk","Wl","Wm","Wn","Wo","Wp","Wq","Wr","Ws","Wt","Wu","Wv","Ww","Wx","Wy","Wz","W1","W2","W3","W4","W5","W6","W7","W8","W9","W+","W/","W!","W@","W#","W$","W%","W&","W(","W)","W=","W?","W*","W,","W.","W;","W:","W-","W_","W<","W>","X0","XA","XB","XC","XD","XE","XF","XG","XH","XI","XJ","XK","XL","XM","XN","XO","XP","XQ","XR","XS","XT","XU","XV","XW","XX","XY","XZ","Xa","Xb","Xc","Xd","Xe","Xf","Xg","Xh","Xi","Xj","Xk","Xl","Xm","Xn","Xo","Xp","Xq","Xr","Xs","Xt","Xu","Xv","Xw","Xx","Xy","Xz","X1","X2","X3","X4","X5","X6","X7","X8","X9","X+","X/","X!","X@","X#","X$","X%","X&","X(","X)","X=","X?","X*","X,","X.","X;","X:","X-","X_","X<","X>","Y0","YA","YB","YC","YD","YE","YF","YG","YH","YI","YJ","YK","YL","YM","YN","YO","YP","YQ","YR","YS","YT","YU","YV","YW","YX","YY","YZ","Ya","Yb","Yc","Yd","Ye","Yf","Yg","Yh","Yi","Yj","Yk","Yl","Ym","Yn","Yo","Yp","Yq","Yr","Ys","Yt","Yu","Yv","Yw","Yx","Yy","Yz","Y1","Y2","Y3","Y4","Y5","Y6","Y7","Y8","Y9","Y+","Y/","Y!","Y@","Y#","Y$","Y%","Y&","Y(","Y)","Y=","Y?","Y*","Y,","Y.","Y;","Y:","Y-","Y_","Y<","Y>","Z0","ZA","ZB","ZC","ZD","ZE","ZF","ZG","ZH","ZI","ZJ","ZK","ZL","ZM","ZN","ZO","ZP","ZQ","ZR","ZS","ZT","ZU","ZV","ZW","ZX","ZY","ZZ","Za","Zb","Zc","Zd","Ze","Zf","Zg","Zh","Zi","Zj","Zk","Zl","Zm","Zn","Zo","Zp","Zq","Zr","Zs","Zt","Zu","Zv","Zw","Zx","Zy","Zz","Z1","Z2","Z3","Z4","Z5","Z6","Z7","Z8","Z9","Z+","Z/","Z!","Z@","Z#","Z$","Z%","Z&","Z(","Z)","Z=","Z?","Z*","Z,","Z.","Z;","Z:","Z-","Z_","Z<","Z>","a0","aA","aB","aC","aD","aE","aF","aG","aH","aI","aJ","aK","aL","aM","aN","aO","aP","aQ","aR","aS","aT","aU","aV","aW","aX","aY","aZ","aa","ab","ac","ad","ae","af","ag","ah","ai","aj","ak","al","am","an","ao","ap","aq","ar","as","at","au","av","aw","ax","ay","az","a1","a2","a3","a4","a5","a6","a7","a8","a9","a+","a/","a!","a@","a#","a$","a%","a&","a(","a)","a=","a?","a*","a,","a.","a;","a:","a-","a_","a<","a>","b0","bA","bB","bC","bD","bE","bF","bG","bH","bI","bJ","bK","bL","bM","bN","bO","bP","bQ","bR","bS","bT","bU","bV","bW","bX","bY","bZ","ba","bb","bc","bd","be","bf","bg","bh","bi","bj","bk","bl","bm","bn","bo","bp","bq","br","bs","bt","bu","bv","bw","bx","by","bz","b1","b2","b3","b4","b5","b6","b7","b8","b9","b+","b/","b!","b@","b#","b$","b%","b&","b(","b)","b=","b?","b*","b,","b.","b;","b:","b-","b_","b<","b>","c0","cA","cB","cC","cD","cE","cF","cG","cH","cI","cJ","cK","cL","cM","cN","cO","cP","cQ","cR","cS","cT","cU","cV","cW","cX","cY","cZ","ca","cb","cc","cd","ce","cf","cg","ch","ci","cj","ck","cl","cm","cn","co","cp","cq","cr","cs","ct","cu","cv","cw","cx","cy","cz","c1","c2","c3","c4","c5","c6","c7","c8","c9","c+","c/","c!","c@","c#","c$","c%","c&","c(","c)","c=","c?","c*","c,","c.","c;","c:","c-","c_","c<","c>","d0","dA","dB","dC","dD","dE","dF","dG","dH","dI","dJ","dK","dL","dM","dN","dO","dP","dQ","dR","dS","dT","dU","dV","dW","dX","dY","dZ","da","db","dc","dd","de","df","dg","dh","di","dj","dk","dl","dm","dn","do","dp","dq","dr","ds","dt","du","dv","dw","dx","dy","dz","d1","d2","d3","d4","d5","d6","d7","d8","d9","d+","d/","d!","d@","d#","d$","d%","d&","d(","d)","d=","d?","d*","d,","d.","d;","d:","d-","d_","d<","d>","e0","eA","eB","eC","eD","eE","eF","eG","eH","eI","eJ","eK","eL","eM","eN","eO","eP","eQ","eR","eS","eT","eU","eV","eW","eX","eY","eZ","ea","eb","ec","ed","ee","ef","eg","eh","ei","ej","ek","el","em","en","eo","ep","eq","er","es","et","eu","ev","ew","ex","ey","ez","e1","e2","e3","e4","e5","e6","e7","e8","e9","e+","e/","e!","e@","e#","e$","e%","e&","e(","e)","e=","e?","e*","e,","e.","e;","e:","e-","e_","e<","e>","f0","fA","fB","fC","fD","fE","fF","fG","fH","fI","fJ","fK","fL","fM","fN","fO","fP","fQ","fR","fS","fT","fU","fV","fW","fX","fY","fZ","fa","fb","fc","fd","fe","ff","fg","fh","fi","fj","fk","fl","fm","fn","fo","fp","fq","fr","fs","ft","fu","fv","fw","fx","fy","fz","f1","f2","f3","f4","f5","f6","f7","f8","f9","f+","f/","f!","f@","f#","f$","f%","f&","f(","f)","f=","f?","f*","f,","f.","f;","f:","f-","f_","f<","f>","g0","gA","gB","gC","gD","gE","gF","gG","gH","gI","gJ","gK","gL","gM","gN","gO","gP","gQ","gR","gS","gT","gU","gV","gW","gX","gY","gZ","ga","gb","gc","gd","ge","gf","gg","gh","gi","gj","gk","gl","gm","gn","go","gp","gq","gr","gs","gt","gu","gv","gw","gx","gy","gz","g1","g2","g3","g4","g5","g6","g7","g8","g9","g+","g/","g!","g@","g#","g$","g%","g&","g(","g)","g=","g?","g*","g,","g.","g;","g:","g-","g_","g<","g>","h0","hA","hB","hC","hD","hE","hF","hG","hH","hI","hJ","hK","hL","hM","hN","hO","hP","hQ","hR","hS","hT","hU","hV","hW","hX","hY","hZ","ha","hb","hc","hd","he","hf","hg","hh","hi","hj","hk","hl","hm","hn","ho","hp","hq","hr","hs","ht","hu","hv","hw","hx","hy","hz","h1","h2","h3","h4","h5","h6","h7","h8","h9","h+","h/","h!","h@","h#","h$","h%","h&","h(","h)","h=","h?","h*","h,","h.","h;","h:","h-","h_","h<","h>","i0","iA","iB","iC","iD","iE","iF","iG","iH","iI","iJ","iK","iL","iM","iN","iO","iP","iQ","iR","iS","iT","iU","iV","iW","iX","iY","iZ","ia","ib","ic","id","ie","if","ig","ih","ii","ij","ik","il","im","in","io","ip","iq","ir","is","it","iu","iv","iw","ix","iy","iz","i1","i2","i3","i4","i5","i6","i7","i8","i9","i+","i/","i!","i@","i#","i$","i%","i&","i(","i)","i=","i?","i*","i,","i.","i;","i:","i-","i_","i<","i>","j0","jA","jB","jC","jD","jE","jF","jG","jH","jI","jJ","jK","jL","jM","jN","jO","jP","jQ","jR","jS","jT","jU","jV","jW","jX","jY","jZ","ja","jb","jc","jd","je","jf","jg","jh","ji","jj","jk","jl","jm","jn","jo","jp","jq","jr","js","jt","ju","jv","jw","jx","jy","jz","j1","j2","j3","j4","j5","j6","j7","j8","j9","j+","j/","j!","j@","j#","j$","j%","j&","j(","j)","j=","j?","j*","j,","j.","j;","j:","j-","j_","j<","j>","k0","kA","kB","kC","kD","kE","kF","kG","kH","kI","kJ","kK","kL","kM","kN","kO","kP","kQ","kR","kS","kT","kU","kV","kW","kX","kY","kZ","ka","kb","kc","kd","ke","kf","kg","kh","ki","kj","kk","kl","km","kn","ko","kp","kq","kr","ks","kt","ku","kv","kw","kx","ky","kz","k1","k2","k3","k4","k5","k6","k7","k8","k9","k+","k/","k!","k@","k#","k$","k%","k&","k(","k)","k=","k?","k*","k,","k.","k;","k:","k-","k_","k<","k>","l0","lA","lB","lC","lD","lE","lF","lG","lH","lI","lJ","lK","lL","lM","lN","lO","lP","lQ","lR","lS","lT","lU","lV","lW","lX","lY","lZ","la","lb","lc","ld","le","lf","lg","lh","li","lj","lk","ll","lm","ln","lo","lp","lq","lr","ls","lt","lu","lv","lw","lx","ly","lz","l1","l2","l3","l4","l5","l6","l7","l8","l9","l+","l/","l!","l@","l#","l$","l%","l&","l(","l)","l=","l?","l*","l,","l.","l;","l:","l-","l_","l<","l>","m0","mA","mB","mC","mD","mE","mF","mG","mH","mI","mJ","mK","mL","mM","mN","mO","mP","mQ","mR","mS","mT","mU","mV","mW","mX","mY","mZ","ma","mb","mc","md","me","mf","mg","mh","mi","mj","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","m1","m2","m3","m4","m5","m6","m7","m8","m9","m+","m/","m!","m@","m#","m$","m%","m&","m(","m)","m=","m?","m*","m,","m.","m;","m:","m-","m_","m<","m>","n0","nA","nB","nC","nD","nE","nF","nG","nH","nI","nJ","nK","nL","nM","nN","nO","nP","nQ","nR","nS","nT","nU","nV","nW","nX","nY","nZ","na","nb","nc","nd","ne","nf","ng","nh","ni","nj","nk","nl","nm","nn","no","np","nq","nr","ns","nt","nu","nv","nw","nx","ny","nz","n1","n2","n3","n4","n5","n6","n7","n8","n9","n+","n/","n!","n@","n#","n$","n%","n&","n(","n)","n=","n?","n*","n,","n.","n;","n:","n-","n_","n<","n>","o0","oA","oB","oC","oD","oE","oF","oG","oH","oI","oJ","oK","oL","oM","oN","oO","oP","oQ","oR","oS","oT","oU","oV","oW","oX","oY","oZ","oa","ob","oc","od","oe","of","og","oh","oi","oj","ok","ol","om","on","oo","op","oq","or","os","ot","ou","ov","ow","ox","oy","oz","o1","o2","o3","o4","o5","o6","o7","o8","o9","o+","o/","o!","o@","o#","o$","o%","o&","o(","o)","o=","o?","o*","o,","o.","o;","o:","o-","o_","o<","o>","p0","pA","pB","pC","pD","pE","pF","pG","pH","pI","pJ","pK","pL","pM","pN","pO","pP","pQ","pR","pS","pT","pU","pV","pW","pX","pY","pZ","pa","pb","pc","pd","pe","pf","pg","ph","pi","pj","pk","pl","pm","pn","po","pp","pq","pr","ps","pt","pu","pv","pw","px","py","pz","p1","p2","p3","p4","p5","p6","p7","p8","p9","p+","p/","p!","p@","p#","p$","p%","p&","p(","p)","p=","p?","p*","p,","p.","p;","p:","p-","p_","p<","p>","q0","qA","qB","qC","qD","qE","qF","qG","qH","qI","qJ","qK","qL","qM","qN","qO","qP","qQ","qR","qS","qT","qU","qV","qW","qX","qY","qZ","qa","qb","qc","qd","qe","qf","qg","qh","qi","qj","qk","ql","qm","qn","qo","qp","qq","qr","qs","qt","qu","qv","qw","qx","qy","qz","q1","q2","q3","q4","q5","q6","q7","q8","q9","q+","q/","q!","q@","q#","q$","q%","q&","q(","q)","q=","q?","q*","q,","q.","q;","q:","q-","q_","q<","q>","r0","rA","rB","rC","rD","rE","rF","rG","rH","rI","rJ","rK","rL","rM","rN","rO","rP","rQ","rR","rS","rT","rU","rV","rW","rX","rY","rZ","ra","rb","rc","rd","re","rf","rg","rh","ri","rj","rk","rl","rm","rn","ro","rp","rq","rr","rs","rt","ru","rv","rw","rx","ry","rz","r1","r2","r3","r4","r5","r6","r7","r8","r9","r+","r/","r!","r@","r#","r$","r%","r&","r(","r)","r=","r?","r*","r,","r.","r;","r:","r-","r_","r<","r>","s0","sA","sB","sC","sD","sE","sF","sG","sH","sI","sJ","sK","sL","sM","sN","sO","sP","sQ","sR","sS","sT","sU","sV","sW","sX","sY","sZ","sa","sb","sc","sd","se","sf","sg","sh","si","sj","sk","sl","sm","sn","so","sp","sq","sr","ss","st","su","sv","sw","sx","sy","sz","s1","s2","s3","s4","s5","s6","s7","s8","s9","s+","s/","s!","s@","s#","s$","s%","s&","s(","s)","s=","s?","s*","s,","s.","s;","s:","s-","s_","s<","s>","t0","tA","tB","tC","tD","tE","tF","tG","tH","tI","tJ","tK","tL","tM","tN","tO","tP","tQ","tR","tS","tT","tU","tV","tW","tX","tY","tZ","ta","tb","tc","td","te","tf","tg","th","ti","tj","tk","tl","tm","tn","to","tp","tq","tr","ts","tt","tu","tv","tw","tx","ty","tz","t1","t2","t3","t4","t5","t6","t7","t8","t9","t+","t/","t!","t@","t#","t$","t%","t&","t(","t)","t=","t?","t*","t,","t.","t;","t:","t-","t_","t<","t>","u0","uA","uB","uC","uD","uE","uF","uG","uH","uI","uJ","uK","uL","uM","uN","uO","uP","uQ","uR","uS","uT","uU","uV","uW","uX","uY","uZ","ua","ub","uc","ud","ue","uf","ug","uh","ui","uj","uk","ul","um","un","uo","up","uq","ur","us","ut","uu","uv","uw","ux","uy","uz","u1","u2","u3","u4","u5","u6","u7","u8","u9","u+","u/","u!","u@","u#","u$","u%","u&","u(","u)","u=","u?","u*","u,","u.","u;","u:","u-","u_","u<","u>","v0","vA","vB","vC","vD","vE","vF","vG","vH","vI","vJ","vK","vL","vM","vN","vO","vP","vQ","vR","vS","vT","vU","vV","vW","vX","vY","vZ","va","vb","vc","vd","ve","vf","vg","vh","vi","vj","vk","vl","vm","vn","vo","vp","vq","vr","vs","vt","vu","vv","vw","vx","vy","vz","v1","v2","v3","v4","v5","v6","v7","v8","v9","v+","v/","v!","v@","v#","v$","v%","v&","v(","v)","v=","v?","v*","v,","v.","v;","v:","v-","v_","v<","v>","w0","wA","wB","wC","wD","wE","wF","wG","wH","wI","wJ","wK","wL","wM","wN","wO","wP","wQ","wR","wS","wT","wU","wV","wW","wX","wY","wZ","wa","wb","wc","wd","we","wf","wg","wh","wi","wj","wk","wl","wm","wn","wo","wp","wq","wr","ws","wt","wu","wv","ww","wx","wy","wz","w1","w2","w3","w4","w5","w6","w7","w8","w9","w+","w/","w!","w@","w#","w$","w%","w&","w(","w)","w=","w?","w*","w,","w.","w;","w:","w-","w_","w<","w>","x0","xA","xB","xC","xD","xE","xF","xG","xH","xI","xJ","xK","xL","xM","xN","xO","xP","xQ","xR","xS","xT","xU","xV","xW","xX","xY","xZ","xa","xb","xc","xd","xe","xf","xg","xh","xi","xj","xk","xl","xm","xn","xo","xp","xq","xr","xs","xt","xu","xv","xw","xx","xy","xz","x1","x2","x3","x4","x5","x6","x7","x8","x9","x+","x/","x!","x@","x#","x$","x%","x&","x(","x)","x=","x?","x*","x,","x.","x;","x:","x-","x_","x<","x>","y0","yA","yB","yC","yD","yE","yF","yG","yH","yI","yJ","yK","yL","yM","yN","yO","yP","yQ","yR","yS","yT","yU","yV","yW","yX","yY","yZ","ya","yb","yc","yd","ye","yf","yg","yh","yi","yj","yk","yl","ym","yn","yo","yp","yq","yr","ys","yt","yu","yv","yw","yx","yy","yz","y1","y2","y3","y4","y5","y6","y7","y8","y9","y+","y/","y!","y@","y#","y$","y%","y&","y(","y)","y=","y?","y*","y,","y.","y;","y:","y-","y_","y<","y>","z0","zA","zB","zC","zD","zE","zF","zG","zH","zI","zJ","zK","zL","zM","zN","zO","zP","zQ","zR","zS","zT","zU","zV","zW","zX","zY","zZ","za","zb","zc","zd","ze","zf","zg","zh","zi","zj","zk","zl","zm","zn","zo","zp","zq","zr","zs","zt","zu","zv","zw","zx","zy","zz","z1","z2","z3","z4","z5","z6","z7","z8","z9","z+","z/","z!","z@","z#","z$","z%","z&","z(","z)","z=","z?","z*","z,","z.","z;","z:","z-","z_","z<","z>","10","1A","1B","1C","1D","1E","1F","1G","1H","1I","1J","1K","1L","1M","1N","1O","1P","1Q","1R","1S","1T","1U","1V","1W","1X","1Y","1Z","1a","1b","1c","1d","1e","1f","1g","1h","1i","1j","1k","1l","1m","1n","1o","1p","1q","1r","1s","1t","1u","1v","1w","1x","1y","1z","11","12","13","14","15","16","17","18","19","1+","1/","1!","1@","1#","1$","1%","1&","1(","1)","1=","1?","1*","1,","1.","1;","1:","1-","1_","1<","1>","20","2A","2B","2C","2D","2E","2F","2G","2H","2I","2J","2K","2L","2M","2N","2O","2P","2Q","2R","2S","2T","2U","2V","2W","2X","2Y","2Z","2a","2b","2c","2d","2e","2f","2g","2h","2i","2j","2k","2l","2m","2n","2o","2p","2q","2r","2s","2t","2u","2v","2w","2x","2y","2z","21","22","23","24","25","26","27","28","29","2+","2/","2!","2@","2#","2$","2%","2&","2(","2)","2=","2?","2*","2,","2.","2;","2:","2-","2_","2<","2>","30","3A","3B","3C","3D","3E","3F","3G","3H","3I","3J","3K","3L","3M","3N","3O","3P","3Q","3R","3S","3T","3U","3V","3W","3X","3Y","3Z","3a","3b","3c","3d","3e","3f","3g","3h","3i","3j","3k","3l","3m","3n","3o","3p","3q","3r","3s","3t","3u","3v","3w","3x","3y","3z","31","32","33","34","35","36","37","38","39","3+","3/","3!","3@","3#","3$","3%","3&","3(","3)","3=","3?","3*","3,","3.","3;","3:","3-","3_","3<","3>","40","4A","4B","4C","4D","4E","4F","4G","4H","4I","4J","4K","4L","4M","4N","4O","4P","4Q","4R","4S","4T","4U","4V","4W","4X","4Y","4Z","4a","4b","4c","4d","4e","4f","4g","4h","4i","4j","4k","4l","4m","4n","4o","4p","4q","4r","4s","4t","4u","4v","4w","4x","4y","4z","41","42","43","44","45","46","47","48","49","4+","4/","4!","4@","4#","4$","4%","4&","4(","4)","4=","4?","4*","4,","4.","4;","4:","4-","4_","4<","4>","50","5A","5B","5C","5D","5E","5F","5G","5H","5I","5J","5K","5L","5M","5N","5O","5P","5Q","5R","5S","5T","5U","5V","5W","5X","5Y","5Z","5a","5b","5c","5d","5e","5f","5g","5h","5i","5j","5k","5l","5m","5n","5o","5p","5q","5r","5s","5t","5u","5v","5w","5x","5y","5z","51","52","53","54","55","56","57","58","59","5+","5/","5!","5@","5#","5$","5%","5&","5(","5)","5=","5?","5*","5,","5.","5;","5:","5-","5_","5<","5>","60","6A","6B","6C","6D","6E","6F","6G","6H","6I","6J","6K","6L","6M","6N","6O","6P","6Q","6R","6S","6T","6U","6V","6W","6X","6Y","6Z","6a","6b","6c","6d","6e","6f","6g","6h","6i","6j","6k","6l","6m","6n","6o","6p","6q","6r","6s","6t","6u","6v","6w","6x","6y","6z","61","62","63","64","65","66","67","68","69","6+","6/","6!","6@","6#","6$","6%","6&","6(","6)","6=","6?","6*","6,","6.","6;","6:","6-","6_","6<","6>","70","7A","7B","7C","7D","7E","7F","7G","7H","7I","7J","7K","7L","7M","7N","7O","7P","7Q","7R","7S","7T","7U","7V","7W","7X","7Y","7Z","7a","7b","7c","7d","7e","7f","7g","7h","7i","7j","7k","7l","7m","7n","7o","7p","7q","7r","7s","7t","7u","7v","7w","7x","7y","7z","71","72","73","74","75","76","77","78","79","7+","7/","7!","7@","7#","7$","7%","7&","7(","7)","7=","7?","7*","7,","7.","7;","7:","7-","7_","7<","7>","80","8A","8B","8C","8D","8E","8F","8G","8H","8I","8J","8K","8L","8M","8N","8O","8P","8Q","8R","8S","8T","8U","8V","8W","8X","8Y","8Z","8a","8b","8c","8d","8e","8f","8g","8h","8i","8j","8k","8l","8m","8n","8o","8p","8q","8r","8s","8t","8u","8v","8w","8x","8y","8z","81","82","83","84","85","86","87","88","89","8+","8/","8!","8@","8#","8$","8%","8&","8(","8)","8=","8?","8*","8,","8.","8;","8:","8-","8_","8<","8>","90","9A","9B","9C","9D","9E","9F","9G","9H","9I","9J","9K","9L","9M","9N","9O","9P","9Q","9R","9S","9T","9U","9V","9W","9X","9Y","9Z","9a","9b","9c","9d","9e","9f","9g","9h","9i","9j","9k","9l","9m","9n","9o","9p","9q","9r","9s","9t","9u","9v","9w","9x","9y","9z","91","92","93","94","95","96","97","98","99","9+","9/","9!","9@","9#","9$","9%","9&","9(","9)","9=","9?","9*","9,","9.","9;","9:","9-","9_","9<","9>","+0","+A","+B","+C","+D","+E","+F","+G","+H","+I","+J","+K","+L","+M","+N","+O","+P","+Q","+R","+S","+T","+U","+V","+W","+X","+Y","+Z","+a","+b","+c","+d","+e","+f","+g","+h","+i","+j","+k","+l","+m","+n","+o","+p","+q","+r","+s","+t","+u","+v","+w","+x","+y","+z","+1","+2","+3","+4","+5","+6","+7","+8","+9","++","+/","+!","+@","+#","+$","+%","+&","+(","+)","+=","+?","+*","+,","+.","+;","+:","+-","+_","+<","+>","/0","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","/M","/N","/O","/P","/Q","/R","/S","/T","/U","/V","/W","/X","/Y","/Z","/a","/b","/c","/d","/e","/f","/g","/h","/i","/j","/k","/l","/m","/n","/o","/p","/q","/r","/s","/t","/u","/v","/w","/x","/y","/z","/1","/2","/3","/4","/5","/6","/7","/8","/9","/+","//","/!","/@","/#","/$","/%","/&","/(","/)","/=","/?","/*","/,","/.","/;","/:","/-","/_","/<","/>","!0","!A","!B","!C","!D","!E","!F","!G","!H","!I","!J","!K","!L","!M","!N","!O","!P","!Q","!R","!S","!T","!U","!V","!W","!X","!Y","!Z","!a","!b","!c","!d","!e","!f","!g","!h","!i","!j","!k","!l","!m","!n","!o","!p","!q","!r","!s","!t","!u","!v","!w","!x","!y","!z","!1","!2","!3","!4","!5","!6","!7","!8","!9","!+","!/","!!","!@","!#","!$","!%","!&","!(","!)","!=","!?","!*","!,","!.","!;","!:","!-","!_","!<","!>","@0","@A","@B","@C","@D","@E","@F","@G","@H","@I","@J","@K","@L","@M","@N","@O","@P","@Q","@R","@S","@T","@U","@V","@W","@X","@Y","@Z","@a","@b","@c","@d","@e","@f","@g","@h","@i","@j","@k","@l","@m","@n","@o","@p","@q","@r","@s","@t","@u","@v","@w","@x","@y","@z","@1","@2","@3","@4","@5","@6","@7","@8","@9","@+","@/","@!","@@","@#","@$","@%","@&","@(","@)","@=","@?","@*","@,","@.","@;","@:","@-","@_","@<","@>","#0","#A","#B","#C","#D","#E","#F","#G","#H","#I","#J","#K","#L","#M","#N","#O","#P","#Q","#R","#S","#T","#U","#V","#W","#X","#Y","#Z","#a","#b","#c","#d","#e","#f","#g","#h","#i","#j","#k","#l","#m","#n","#o","#p","#q","#r","#s","#t","#u","#v","#w","#x","#y","#z","#1","#2","#3","#4","#5","#6","#7","#8","#9","#+","#/","#!","#@","##","#$","#%","#&","#(","#)","#=","#?","#*","#,","#.","#;","#:","#-","#_","#<","#>","$0","$A","$B","$C","$D","$E","$F","$G","$H","$I","$J","$K","$L","$M","$N","$O","$P","$Q","$R","$S","$T","$U","$V","$W","$X","$Y","$Z","$a","$b","$c","$d","$e","$f","$g","$h","$i","$j","$k","$l","$m","$n","$o","$p","$q","$r","$s","$t","$u","$v","$w","$x","$y","$z","$1","$2","$3","$4","$5","$6","$7","$8","$9","$+","$/","$!","$@","$#","$$","$%","$&","$(","$)","$=","$?","$*","$,","$.","$;","$:","$-","$_","$<","$>","%0","%A","%B","%C","%D","%E","%F","%G","%H","%I","%J","%K","%L","%M","%N","%O","%P","%Q","%R","%S","%T","%U","%V","%W","%X","%Y","%Z","%a","%b","%c","%d","%e","%f","%g","%h","%i","%j","%k","%l","%m","%n","%o","%p","%q","%r","%s","%t","%u","%v","%w","%x","%y","%z","%1","%2","%3","%4","%5","%6","%7","%8","%9","%+","%/","%!","%@","%#","%$","%%","%&","%(","%)","%=","%?","%*","%,","%.","%;","%:","%-","%_","%<","%>","&0","&A","&B","&C","&D","&E","&F","&G","&H","&I","&J","&K","&L","&M","&N","&O","&P","&Q","&R","&S","&T","&U","&V","&W","&X","&Y","&Z","&a","&b","&c","&d","&e","&f","&g","&h","&i","&j","&k","&l","&m","&n","&o","&p","&q","&r","&s","&t","&u","&v","&w","&x","&y","&z","&1","&2","&3","&4","&5","&6","&7","&8","&9","&+","&/","&!","&@","&#","&$","&%","&&","&(","&)","&=","&?","&*","&,","&.","&;","&:","&-","&_","&<","&>","(0","(A","(B","(C","(D","(E","(F","(G","(H","(I","(J","(K","(L","(M","(N","(O","(P","(Q","(R","(S","(T","(U","(V","(W","(X","(Y","(Z","(a","(b","(c","(d","(e","(f","(g","(h","(i","(j","(k","(l","(m","(n","(o","(p","(q","(r","(s","(t","(u","(v","(w","(x","(y","(z","(1","(2","(3","(4","(5","(6","(7","(8","(9","(+","(/","(!","(@","(#","($","(%","(&","((","()","(=","(?","(*","(,","(.","(;","(:","(-","(_","(<","(>",")0",")A",")B",")C",")D",")E",")F",")G",")H",")I",")J",")K",")L",")M",")N",")O",")P",")Q",")R",")S",")T",")U",")V",")W",")X",")Y",")Z",")a",")b",")c",")d",")e",")f",")g",")h",")i",")j",")k",")l",")m",")n",")o",")p",")q",")r",")s",")t",")u",")v",")w",")x",")y",")z",")1",")2",")3",")4",")5",")6",")7",")8",")9",")+",")/",")!",")@",")#",")$",")%",")&",")(","))",")=",")?",")*","),",").",");","):",")-",")_",")<",")>","=0","=A","=B","=C","=D","=E","=F","=G","=H","=I","=J","=K","=L","=M","=N","=O","=P","=Q","=R","=S","=T","=U","=V","=W","=X","=Y","=Z","=a","=b","=c","=d","=e","=f","=g","=h","=i","=j","=k","=l","=m","=n","=o","=p","=q","=r","=s","=t","=u","=v","=w","=x","=y","=z","=1","=2","=3","=4","=5","=6","=7","=8","=9","=+","=/","=!","=@","=#","=$","=%","=&","=(","=)","==","=?","=*","=,","=.","=;","=:","=-","=_","=<","=>","?0","?A","?B","?C","?D","?E","?F","?G","?H","?I","?J","?K","?L","?M","?N","?O","?P","?Q","?R","?S","?T","?U","?V","?W","?X","?Y","?Z","?a","?b","?c","?d","?e","?f","?g","?h","?i","?j","?k","?l","?m","?n","?o","?p","?q","?r","?s","?t","?u","?v","?w","?x","?y","?z","?1","?2","?3","?4","?5","?6","?7","?8","?9","?+","?/","?!","?@","?#","?$","?%","?&","?(","?)","?=","??","?*","?,","?.","?;","?:","?-","?_","?<","?>","*0","*A","*B","*C","*D","*E","*F","*G","*H","*I","*J","*K","*L","*M","*N","*O","*P","*Q","*R","*S","*T","*U","*V","*W","*X","*Y","*Z","*a","*b","*c","*d","*e","*f","*g","*h","*i","*j","*k","*l","*m","*n","*o","*p","*q","*r","*s","*t","*u","*v","*w","*x","*y","*z","*1","*2","*3","*4","*5","*6","*7","*8","*9","*+","*/","*!","*@","*#","*$","*%","*&","*(","*)","*=","*?","**","*,","*.","*;","*:","*-","*_","*<","*>",",0",",A",",B",",C",",D",",E",",F",",G",",H",",I",",J",",K",",L",",M",",N",",O",",P",",Q",",R",",S",",T",",U",",V",",W",",X",",Y",",Z",",a",",b",",c",",d",",e",",f",",g",",h",",i",",j",",k",",l",",m",",n",",o",",p",",q",",r",",s",",t",",u",",v",",w",",x",",y",",z",",1",",2",",3",",4",",5",",6",",7",",8",",9",",+",",/",",!",",@",",#",",$",",%",",&",",(",",)",",=",",?",",*",",,",",.",",;",",:",",-",",_",",<",",>",".0",".A",".B",".C",".D",".E",".F",".G",".H",".I",".J",".K",".L",".M",".N",".O",".P",".Q",".R",".S",".T",".U",".V",".W",".X",".Y",".Z",".a",".b",".c",".d",".e",".f",".g",".h",".i",".j",".k",".l",".m",".n",".o",".p",".q",".r",".s",".t",".u",".v",".w",".x",".y",".z",".1",".2",".3",".4",".5",".6",".7",".8",".9",".+","./",".!",".@",".#",".$",".%",".&",".(",".)",".=",".?",".*",".,","..",".;",".:",".-","._",".<",".>",";0",";A",";B",";C",";D",";E",";F",";G",";H",";I",";J",";K",";L",";M",";N",";O",";P",";Q",";R",";S",";T",";U",";V",";W",";X",";Y",";Z",";a",";b",";c",";d",";e",";f",";g",";h",";i",";j",";k",";l",";m",";n",";o",";p",";q",";r",";s",";t",";u",";v",";w",";x",";y",";z",";1",";2",";3",";4",";5",";6",";7",";8",";9",";+",";/",";!",";@",";#",";$",";%",";&",";(",";)",";=",";?",";*",";,",";.",";;",";:",";-",";_",";<",";>",":0",":A",":B",":C",":D",":E",":F",":G",":H",":I",":J",":K",":L",":M",":N",":O",":P",":Q",":R",":S",":T",":U",":V",":W",":X",":Y",":Z",":a",":b",":c",":d",":e",":f",":g",":h",":i",":j",":k",":l",":m",":n",":o",":p",":q",":r",":s",":t",":u",":v",":w",":x",":y",":z",":1",":2",":3",":4",":5",":6",":7",":8",":9",":+",":/",":!",":@",":#",":$",":%",":&",":(",":)",":=",":?",":*",":,",":.",":;","::",":-",":_",":<",":>","-0","-A","-B","-C","-D","-E","-F","-G","-H","-I","-J","-K","-L","-M","-N","-O","-P","-Q","-R","-S","-T","-U","-V","-W","-X","-Y","-Z","-a","-b","-c","-d","-e","-f","-g","-h","-i","-j","-k","-l","-m","-n","-o","-p","-q","-r","-s","-t","-u","-v","-w","-x","-y","-z","-1","-2","-3","-4","-5","-6","-7","-8","-9","-+","-/","-!","-@","-#","-$","-%","-&","-(","-)","-=","-?","-*","-,","-.","-;","-:","--","-_","-<","->","_0","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_N","_O","_P","_Q","_R","_S","_T","_U","_V","_W","_X","_Y","_Z","_a","_b","_c","_d","_e","_f","_g","_h","_i","_j","_k","_l","_m","_n","_o","_p","_q","_r","_s","_t","_u","_v","_w","_x","_y","_z","_1","_2","_3","_4","_5","_6","_7","_8","_9","_+","_/","_!","_@","_#","_$","_%","_&","_(","_)","_=","_?","_*","_,","_.","_;","_:","_-","__","_<","_>","<0","<A","<B","<C","<D","<E","<F","<G","<H","<I","<J","<K","<L","<M","<N","<O","<P","<Q","<R","<S","<T","<U","<V","<W","<X","<Y","<Z","<a","<b","<c","<d","<e","<f","<g","<h","<i","<j","<k","<l","<m","<n","<o","<p","<q","<r","<s","<t","<u","<v","<w","<x","<y","<z","<1","<2","<3","<4","<5","<6","<7","<8","<9","<+","</","<!","<@","<#","<$","<%","<&","<(","<)","<=","<?","<*","<,","<.","<;","<:","<-","<_","<<","<>",">0",">A",">B",">C",">D",">E",">F",">G",">H",">I",">J",">K",">L",">M",">N",">O",">P",">Q",">R",">S",">T",">U",">V",">W",">X",">Y",">Z",">a",">b",">c",">d",">e",">f",">g",">h",">i",">j",">k",">l",">m",">n",">o",">p",">q",">r",">s",">t",">u",">v",">w",">x",">y",">z",">1",">2",">3",">4",">5",">6",">7",">8",">9",">+",">/",">!",">@",">#",">$",">%",">&",">(",">)",">=",">?",">*",">,",">.",">;",">:",">-",">_","><",">>"]
if __name__ == '__main__':
while(True):
raw_code = input("请输入IR Rawcode:")
if not raw_code or len(raw_code) == 0:
print(f"您的输入为空,请重新输入!")
continue
try:
print(f"HAA Encode:", "".join([haa_table[abs(int(int(i) / 5))] for i in str.split(raw_code)]))
except Exception as e:
print(e)
print(f"您的输入为:{raw_code}无法转换,请重新输入!")
|
#File Locations
EXTRACT_LIST_FILE = "ExtractList.xlsx"
RAW_DATA_FILE = "../../output/WorldBank/WDIData.csv"
OUTPUT_PATH = "../../output/WorldBank/split_output/"
|
# https://leetcode.com/problems/lucky-numbers-in-a-matrix
def lucky_numbers(matrix):
all_lucky_numbers, all_mins = [], []
for row in matrix:
found_min, col_index = float('Inf'), -1
for index, column in enumerate(row):
if column < found_min:
found_min = column
col_index = index
all_mins.append([found_min, col_index])
for a_min in all_mins:
[min_value, min_column] = a_min
maximum = float('-Inf')
for index in range(len(matrix)):
num = matrix[index][min_column]
maximum = max(num, maximum)
if maximum == min_value:
all_lucky_numbers.append(min_value)
return all_lucky_numbers
|
[
[float("NaN"), float("NaN"), 66.66666667, 33.33333333, 0.0],
[float("NaN"), float("NaN"), 33.33333333, 66.66666667, 66.66666667],
[float("NaN"), float("NaN"), 0.0, 0.0, 33.33333333],
]
|
encrypted_string = 'OMQEMDUEQMEK'
for i in range(1,27):
temp_str = ""
for x in encrypted_string:
int_val = ord(x) + i
if int_val > 90:
# 90 is the numerical value for 'Z'
# 65 is the numerical value for 'A'
# If int_val is greater than Z then
# the number is greater then 90 then
# we must again count the difference
# from A.
int_val = 64 + (int_val - 90)
temp_str += chr(int_val)
print(f"{i} {temp_str}")
|
"""
Contains methods for easily persisting `Pydantic <https://pydantic-docs.helpmanual.io/>`_ data structures to and from
arbitrary storage back-ends. Contains a base class for the store behavior, as well as subclasses which allow Google
Cloud Firestore or in-memory to be used as the storage back-end. Supports saving, retrieving, and deleting records by
ID, or performing `WHERE equals` clause-based retrieval and deletion. Pydantic models that include numpy array members
are supported out of the box.
"""
|
# -*- coding: utf-8 -*-
## \package dbr.moduleaccess
# MIT licensing
# See: docs/LICENSE.txt
## This class allows access to a 'name' attribute
#
# \param module_name
# \b \e unicode|str : Ideally set to the module's __name__ attribute
class ModuleAccessCtrl:
def __init__(self, moduleName):
self.ModuleName = moduleName
## Retrieves the module_name attribute
#
# \return
# \b \e unicode|str : Module's name
def GetModuleName(self):
return self.ModuleName
|
# ternary method
num1 = int(input('Enter the number 1::'))
num2 = int(input('\nEnter the number 2::'))
num3 = int(input('\nEnter the number 3::'))
max = (num1 if (num1 > num2 and num1 > num3) else (num2 if(num2 > num3 and num2 > num1) else num3))
print('\n\nThe maximum number is ::', max)
#with pre-define functions
# a = int(input('Enter the number A::'))
# b = int(input('\nEnter the number B::'))
# c = int(input('\nEnter the number C::'))
# print("\nThe greatest number is :: ", max(a, b, c))
# print("\nThe minimum number is:: ", min(a, b, c))
# simple method
# a = int(input('Enter the number A::'))
# b = int(input('\nEnter the number B::'))
# c = int(input('\nEnter the number C::'))
# if a > b and a > c:
# print('\n\nThe greatest is A',a)
# elif b > c and b > a:
# print('\n\nThe greatest is B::',b)
# else:
# print('\n\nThe greatest is C::', c)
|
num1 = int(input())
num2 = int(input())
if(num1>=num2):
print(num1)
else:print(num2)
|
contracts = dict((('张坏人',123),('张好人',222)))
def new_user():
a = '请输入用户名:'
while True:
name = input(a)
if name in contracts:
a = '此用户名已占用,请重新输入:'
continue
else:
break
password = input('请输入密码:')
contracts[name] = password
print('注册成功')
def old_user():
a = '请输入用户名:'
while True:
name = input(a)
if name not in contracts:
a = '此用户名不存在,请重新输入:'
continue
else:
break
b = ('请输入密码:')
while True:
password = int(input(b))
if contracts[name] == password:
print('欢迎进入系统')
break
else:
b = '密码错误,请重新输入:'
continue
print('''|--- 新建账号:N/n ---|
|--- 登录账号:E/e ---|
|--- 退出程序:Q/q ---|''')
c = ('请输入指令:')
while True:
temp = input(c)
if temp == 'N' or temp == 'n':
new_user()
break
elif temp == 'E' or temp == 'e':
old_user()
break
elif temp == 'Q' or temp == 'q':
break
else:
c = '您输入的指令有错,请重新输入:'
|
"""
This is a very common interview question.
Given a binary tree, check whether it’s a binary
search tree or not. Simple as that..
http://www.ardendertat.com/2011/10/10/programming-interview-questions-7-binary-search-tree-check/
"""
class Node:
def __init__(self, val=None):
self.left, self.right, self.val = None, None, val
INFINITY = float("infinity")
NEG_INFINITY = float("-infinity")
def isBST(tree, lastNode=[NEG_INFINITY]):
if tree is None:
return True
if not isBST(tree.left, lastNode):
return False
if tree.val < lastNode[0]:
return False
lastNode[0] = tree.val
return isBST(tree.right, lastNode)
|
"""
Set of test functions
so BeagleBone specific GPIO
functions can be tested
For obvious reasons these values
are ONLY for testing!
TODO:
Expand to use test values instead of set values
"""
def begin():
print("WARNING, not using actual GPIO")
def write(address, a, b):
#print("WARNING, not actual GPIO")
pass
def read(address, start, lenght):
return [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
class Solution:
def leastInterval(self, tasks: List[str], n: int) -> int:
tasksDict = collections.Counter(tasks)
heap = []
c = 0
for k, v in tasksDict.items():
heappush(heap, (-v, k))
while heap:
i = 0
stack = []
while i <= n:
if len(heap) > 0:
index, task = heappop(heap)
if index != -1:
stack.append((index + 1, task))
c += 1
if len(heap) == 0 and len(stack) == 0:
break
i += 1
for i in stack:
heappush(heap, i)
return c
|
# Written 9/10/14 by dh4gan
# Some useful functions for classifying eigenvalues and defining structure
def classify_eigenvalue(eigenvalues, threshold):
'''Given 3 eigenvalues, and some threshold, returns an integer
'iclass' corresponding to the number of eigenvalues below the threshold
iclass = 0 --> clusters (3 +ve eigenvalues, 0 -ve)
iclass = 1 --> filaments (2 +ve eigenvalues, 1 -ve)
iclass = 2 --> sheet (1 +ve eigenvalues, 2 -ve)
iclass = 3 --> voids (0 +ve eigenvalues, 3 -ve)
'''
iclass = 0
for i in range(3):
if(eigenvalues[i]<threshold):
iclass +=1
return int(iclass)
|
# -------------------------------------------------------------------------
#
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
# ----------------------------------------------------------------------------------
# The example companies, organizations, products, domain names,
# e-mail addresses, logos, people, places, and events depicted
# herein are fictitious. No association with any real company,
# organization, product, domain name, email address, logo, person,
# places, or events is intended or should be inferred.
# --------------------------------------------------------------------------
# Global constant variables (Azure Storage account/Batch details)
# import "config.py" in "batch_python_tutorial_ffmpeg.py"
# Update the Batch and Storage account credential strings below with the values
# unique to your accounts. These are used when constructing connection strings
# for the Batch and Storage client objects.
_BATCH_ACCOUNT_NAME = ''
_BATCH_ACCOUNT_KEY = ''
_BATCH_ACCOUNT_URL = ''
_STORAGE_ACCOUNT_NAME = ''
_STORAGE_ACCOUNT_KEY = ''
_INPUT_BLOB_PREFIX = '' # E.g. if files in container/READS/ then put 'READS'. Keep blank if files are directly in container and not in a sub-directory
_INPUT_CONTAINER = ''
_OUTPUT_CONTAINER = ''
_POOL_ID = ''
_DEDICATED_POOL_NODE_COUNT = 0
_LOW_PRIORITY_POOL_NODE_COUNT = 1
_POOL_VM_SIZE = 'STANDARD_D64_v3'
_JOB_ID = ''
|
def column_to_list(data, index):
"""
Função para pegar um certo atributo dos dados.
Argumentos:
data: lista de dados.
index: indice do atributo desejado.
Retorna:
Uma lista dos atributos desejados.
"""
return [d[index] for d in data]
def run(data_list):
# TAREFA 3
# Vamos checar com os gêneros se isso está funcionando (apenas para os primeiros 20)
print("\nTAREFA 3: Imprimindo a lista de gêneros das primeiras 20 amostras")
print(column_to_list(data_list, -2)[:20])
# ------------ NÃO MUDE NENHUM CÓDIGO AQUI ------------
assert type(column_to_list(data_list, -2)) is list, "TAREFA 3: Tipo incorreto retornado. Deveria ser uma lista."
assert len(column_to_list(data_list, -2)) == 1551505, "TAREFA 3: Tamanho incorreto retornado."
assert column_to_list(data_list, -2)[0] == "" and column_to_list(data_list, -2)[
1] == "Male", "TAREFA 3: A lista não coincide."
# -----------------------------------------------------
|
# Escreva um programa que leia a velocidade de um carro.
# Se ele ultrapassar 80km/h, mostre uma mensagem dizendo que ele foi multado.
# A multa vai custar R$7,00 para cada km acima do limite.
radar = 'Radar eletrônico!'
print('-' * len(radar))
print(radar)
print('-' * len(radar))
velocidade = int(input('Velocidade do carro: '))
if velocidade > 80:
multa = float((velocidade - 80) * 7)
print(f'Velocidade = {velocidade}km/h.')
print(f'Você ultrapassou o limite de 80km/h, sua multa será de R${multa:.2f}!')
else:
print(f'Velocidade = {velocidade}km/h.')
print(f'Faça uma boa viagem!')
|
class Solution:
def largeGroupPositions(self, S):
"""
:type S: str
:rtype: List[List[int]]
"""
return [[m.start(), m.end() - 1] for m in re.finditer(r'(\w)\1{2,}', S)]
|
minombre = "NaCho"
minombre = minombre.lower()
print (minombre)
for i in range(100):
print(i)
break
|
"""
Initializing the Python package
"""
__version__ = '0.31'
__all__ = (
'__version__',
)
|
"""SQL formatting for Teradata queries."""
class SQLFormattingError(Exception):
"""Custom Exception handling for empty SQL lists."""
pass
def to_sql_list(iterable):
"""
Transform a Python list to a SQL list.
input = [a1, a2]
output = "('a1', 'a2')"
"""
if iterable:
return '(' + ', '.join("'" + str(item) + "'" for item in iterable) + ')'
else:
raise SQLFormattingError('No element in list. Cannot process IN statement.')
|
class SceneManager:
def __init__(self):
self.scene_list = {}
self.current_scene = None
def append_scene(self, scene_name, scene):
self.scene_list[scene_name] = scene
def set_current_scene(self, scene_name):
self.current_scene = self.scene_list[scene_name]
class Scene:
def __init__(self, scene_manager):
self.sm = scene_manager
def handle_event(self, event):
pass
def update(self):
pass
def render(self):
pass
|
__all__ = ["ICCError", "CmdError", "CommError"]
class ICCError(Exception):
"""A general exception for the ICC.
Anything can throw one, passing a one line error message.
The top-level event loop will close/cleanup/destroy any running command
and return the error message on text.
"""
def __init__(self, error, details=None):
"""Create an ICCError.
Args:
error - one line of text, intended for users. Will be returned on text.
details - optional text, intended for operators/programmers.
Will be returned on debugText.
"""
self.error = error
self.details = details
if details:
self.args = (error, details)
else:
self.args = (error,)
class CmdError(Exception):
"""A exception due to commands sent to the ICC. Anything can throw one, passing a
one line error message. The top-level event loop will close/cleanup/destroy any
running command and return the error message on text.
"""
def __init__(self, error, details=None):
"""Create a CmdError.
Args:
error - one line of text, intended for users. Will be returned on text.
details - optional text, intended for operators/programmers.
Will be returned on debugText.
"""
self.error = error
self.details = details
if details:
self.args = (error, details)
else:
self.args = (error,)
class CommError(Exception):
"""An exception that specifies that a low-level communication error occurred.
These should only be thrown for serious communications errors.
The top-level event loop will close/cleanup/destroy any running command.
The error message will be returned on text.
"""
def __init__(self, device, error, details=None):
"""Create a CommError.
Args:
device - name of the device that had an error.
error - one line of text, intended for users. Will be returned on text.
details - optional text, intended for operators/programmers.
Will be returned on debugText.
"""
self.device = device
self.error = error
self.details = details
if details:
self.args = (device, error, details)
else:
self.args = (device, error)
|
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "6ff1526a",
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "3cea144b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'C:\\\\Users\\\\odemeo\\\\Documents\\\\Field_Data_Processing\\\\CACO_MET\\\\HoM_2021-06-29.csv'"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"path_nm='C:\\\\Users\\\\odemeo\\\\Documents\\\\Field_Data_Processing\\\\CACO_MET\\\\'\n",
"file_name='HoM_2021-06-29.csv'\n",
"path_nm + file_name"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "bf4fe8b9",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Date and Time in UTC</th>\n",
" <th>SampNum</th>\n",
" <th>Battery</th>\n",
" <th>BoardTemp</th>\n",
" <th>signalPercent</th>\n",
" <th>WXTDn</th>\n",
" <th>WXTDm</th>\n",
" <th>WXTDx</th>\n",
" <th>WXTSn</th>\n",
" <th>WXTSm</th>\n",
" <th>WXTSx</th>\n",
" <th>WXTTa</th>\n",
" <th>WXTUa</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>2021-06-29 14:56:00</td>\n",
" <td>2</td>\n",
" <td>3.684</td>\n",
" <td>32.25</td>\n",
" <td>-9999</td>\n",
" <td>170</td>\n",
" <td>202</td>\n",
" <td>238</td>\n",
" <td>0.0</td>\n",
" <td>5.1</td>\n",
" <td>7.0</td>\n",
" <td>26.3</td>\n",
" <td>77.4</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>2021-06-29 14:57:00</td>\n",
" <td>3</td>\n",
" <td>3.654</td>\n",
" <td>32.00</td>\n",
" <td>-9999</td>\n",
" <td>173</td>\n",
" <td>205</td>\n",
" <td>232</td>\n",
" <td>3.1</td>\n",
" <td>4.8</td>\n",
" <td>7.1</td>\n",
" <td>26.4</td>\n",
" <td>77.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>2021-06-29 14:58:00</td>\n",
" <td>4</td>\n",
" <td>3.654</td>\n",
" <td>31.75</td>\n",
" <td>-9999</td>\n",
" <td>180</td>\n",
" <td>210</td>\n",
" <td>247</td>\n",
" <td>2.8</td>\n",
" <td>4.7</td>\n",
" <td>7.1</td>\n",
" <td>26.4</td>\n",
" <td>78.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>2021-06-29 14:59:00</td>\n",
" <td>2</td>\n",
" <td>4.745</td>\n",
" <td>32.00</td>\n",
" <td>-9999</td>\n",
" <td>190</td>\n",
" <td>215</td>\n",
" <td>247</td>\n",
" <td>2.6</td>\n",
" <td>4.5</td>\n",
" <td>7.0</td>\n",
" <td>26.4</td>\n",
" <td>77.7</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>2021-06-29 15:00:00</td>\n",
" <td>3</td>\n",
" <td>4.730</td>\n",
" <td>32.00</td>\n",
" <td>-9999</td>\n",
" <td>169</td>\n",
" <td>207</td>\n",
" <td>243</td>\n",
" <td>2.6</td>\n",
" <td>4.8</td>\n",
" <td>7.0</td>\n",
" <td>26.4</td>\n",
" <td>76.7</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>122589</th>\n",
" <td>2021-09-22 18:06:00</td>\n",
" <td>-8486</td>\n",
" <td>3.639</td>\n",
" <td>31.25</td>\n",
" <td>-9999</td>\n",
" <td>145</td>\n",
" <td>182</td>\n",
" <td>229</td>\n",
" <td>2.4</td>\n",
" <td>5.4</td>\n",
" <td>9.1</td>\n",
" <td>24.8</td>\n",
" <td>74.5</td>\n",
" </tr>\n",
" <tr>\n",
" <th>122590</th>\n",
" <td>2021-09-22 18:07:00</td>\n",
" <td>-8485</td>\n",
" <td>3.639</td>\n",
" <td>31.25</td>\n",
" <td>-9999</td>\n",
" <td>135</td>\n",
" <td>189</td>\n",
" <td>243</td>\n",
" <td>2.4</td>\n",
" <td>4.9</td>\n",
" <td>8.3</td>\n",
" <td>24.9</td>\n",
" <td>74.2</td>\n",
" </tr>\n",
" <tr>\n",
" <th>122591</th>\n",
" <td>2021-09-22 18:08:00</td>\n",
" <td>-8484</td>\n",
" <td>3.639</td>\n",
" <td>31.50</td>\n",
" <td>-9999</td>\n",
" <td>135</td>\n",
" <td>194</td>\n",
" <td>246</td>\n",
" <td>2.5</td>\n",
" <td>4.9</td>\n",
" <td>8.3</td>\n",
" <td>25.1</td>\n",
" <td>73.2</td>\n",
" </tr>\n",
" <tr>\n",
" <th>122592</th>\n",
" <td>2021-09-22 18:09:00</td>\n",
" <td>-8483</td>\n",
" <td>3.639</td>\n",
" <td>31.50</td>\n",
" <td>-9999</td>\n",
" <td>153</td>\n",
" <td>201</td>\n",
" <td>246</td>\n",
" <td>2.5</td>\n",
" <td>5.3</td>\n",
" <td>8.5</td>\n",
" <td>25.2</td>\n",
" <td>71.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>122593</th>\n",
" <td>2021-09-22 18:10:00</td>\n",
" <td>-8482</td>\n",
" <td>3.654</td>\n",
" <td>31.25</td>\n",
" <td>-9999</td>\n",
" <td>171</td>\n",
" <td>203</td>\n",
" <td>232</td>\n",
" <td>3.5</td>\n",
" <td>6.3</td>\n",
" <td>9.4</td>\n",
" <td>25.0</td>\n",
" <td>71.4</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>122594 rows × 13 columns</p>\n",
"</div>"
],
"text/plain": [
" Date and Time in UTC SampNum Battery BoardTemp signalPercent \\\n",
"0 2021-06-29 14:56:00 2 3.684 32.25 -9999 \n",
"1 2021-06-29 14:57:00 3 3.654 32.00 -9999 \n",
"2 2021-06-29 14:58:00 4 3.654 31.75 -9999 \n",
"3 2021-06-29 14:59:00 2 4.745 32.00 -9999 \n",
"4 2021-06-29 15:00:00 3 4.730 32.00 -9999 \n",
"... ... ... ... ... ... \n",
"122589 2021-09-22 18:06:00 -8486 3.639 31.25 -9999 \n",
"122590 2021-09-22 18:07:00 -8485 3.639 31.25 -9999 \n",
"122591 2021-09-22 18:08:00 -8484 3.639 31.50 -9999 \n",
"122592 2021-09-22 18:09:00 -8483 3.639 31.50 -9999 \n",
"122593 2021-09-22 18:10:00 -8482 3.654 31.25 -9999 \n",
"\n",
" WXTDn WXTDm WXTDx WXTSn WXTSm WXTSx WXTTa WXTUa \n",
"0 170 202 238 0.0 5.1 7.0 26.3 77.4 \n",
"1 173 205 232 3.1 4.8 7.1 26.4 77.0 \n",
"2 180 210 247 2.8 4.7 7.1 26.4 78.0 \n",
"3 190 215 247 2.6 4.5 7.0 26.4 77.7 \n",
"4 169 207 243 2.6 4.8 7.0 26.4 76.7 \n",
"... ... ... ... ... ... ... ... ... \n",
"122589 145 182 229 2.4 5.4 9.1 24.8 74.5 \n",
"122590 135 189 243 2.4 4.9 8.3 24.9 74.2 \n",
"122591 135 194 246 2.5 4.9 8.3 25.1 73.2 \n",
"122592 153 201 246 2.5 5.3 8.5 25.2 71.0 \n",
"122593 171 203 232 3.5 6.3 9.4 25.0 71.4 \n",
"\n",
"[122594 rows x 13 columns]"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df=pd.read_csv(path_nm+file_name,skiprows=7)\n",
"df"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "9b2247aa",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>SampNum</th>\n",
" <th>Battery</th>\n",
" <th>BoardTemp</th>\n",
" <th>signalPercent</th>\n",
" <th>WXTDn</th>\n",
" <th>WXTDm</th>\n",
" <th>WXTDx</th>\n",
" <th>WXTSn</th>\n",
" <th>WXTSm</th>\n",
" <th>WXTSx</th>\n",
" <th>WXTTa</th>\n",
" <th>WXTUa</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>count</th>\n",
" <td>122594.000000</td>\n",
" <td>122594.000000</td>\n",
" <td>122594.000000</td>\n",
" <td>122594.0</td>\n",
" <td>122594.000000</td>\n",
" <td>122594.000000</td>\n",
" <td>122594.000000</td>\n",
" <td>122594.000000</td>\n",
" <td>122594.000000</td>\n",
" <td>122594.000000</td>\n",
" <td>122594.000000</td>\n",
" <td>122594.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>mean</th>\n",
" <td>292.856078</td>\n",
" <td>3.623003</td>\n",
" <td>23.456788</td>\n",
" <td>-9999.0</td>\n",
" <td>130.246709</td>\n",
" <td>183.433667</td>\n",
" <td>219.829209</td>\n",
" <td>2.371266</td>\n",
" <td>4.099445</td>\n",
" <td>5.886937</td>\n",
" <td>20.863037</td>\n",
" <td>86.168375</td>\n",
" </tr>\n",
" <tr>\n",
" <th>std</th>\n",
" <td>19517.272594</td>\n",
" <td>0.025389</td>\n",
" <td>5.225634</td>\n",
" <td>0.0</td>\n",
" <td>78.654022</td>\n",
" <td>91.405097</td>\n",
" <td>88.711210</td>\n",
" <td>1.723976</td>\n",
" <td>2.263441</td>\n",
" <td>3.041321</td>\n",
" <td>2.998218</td>\n",
" <td>11.434929</td>\n",
" </tr>\n",
" <tr>\n",
" <th>min</th>\n",
" <td>-32768.000000</td>\n",
" <td>3.563000</td>\n",
" <td>11.500000</td>\n",
" <td>-9999.0</td>\n",
" <td>0.000000</td>\n",
" <td>0.000000</td>\n",
" <td>0.000000</td>\n",
" <td>0.000000</td>\n",
" <td>0.000000</td>\n",
" <td>0.000000</td>\n",
" <td>12.300000</td>\n",
" <td>40.300000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25%</th>\n",
" <td>-17444.000000</td>\n",
" <td>3.608000</td>\n",
" <td>19.500000</td>\n",
" <td>-9999.0</td>\n",
" <td>46.000000</td>\n",
" <td>106.000000</td>\n",
" <td>178.000000</td>\n",
" <td>1.200000</td>\n",
" <td>2.500000</td>\n",
" <td>3.600000</td>\n",
" <td>18.800000</td>\n",
" <td>78.100000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>50%</th>\n",
" <td>2119.000000</td>\n",
" <td>3.624000</td>\n",
" <td>22.500000</td>\n",
" <td>-9999.0</td>\n",
" <td>162.000000</td>\n",
" <td>207.000000</td>\n",
" <td>241.000000</td>\n",
" <td>2.100000</td>\n",
" <td>3.800000</td>\n",
" <td>5.600000</td>\n",
" <td>20.700000</td>\n",
" <td>88.300000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>75%</th>\n",
" <td>17443.000000</td>\n",
" <td>3.639000</td>\n",
" <td>27.250000</td>\n",
" <td>-9999.0</td>\n",
" <td>189.000000</td>\n",
" <td>231.000000</td>\n",
" <td>270.000000</td>\n",
" <td>3.100000</td>\n",
" <td>5.200000</td>\n",
" <td>7.600000</td>\n",
" <td>22.700000</td>\n",
" <td>96.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>max</th>\n",
" <td>32767.000000</td>\n",
" <td>4.745000</td>\n",
" <td>39.750000</td>\n",
" <td>-9999.0</td>\n",
" <td>351.000000</td>\n",
" <td>358.000000</td>\n",
" <td>358.000000</td>\n",
" <td>16.200000</td>\n",
" <td>21.600000</td>\n",
" <td>27.900000</td>\n",
" <td>31.400000</td>\n",
" <td>100.000000</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" SampNum Battery BoardTemp signalPercent \\\n",
"count 122594.000000 122594.000000 122594.000000 122594.0 \n",
"mean 292.856078 3.623003 23.456788 -9999.0 \n",
"std 19517.272594 0.025389 5.225634 0.0 \n",
"min -32768.000000 3.563000 11.500000 -9999.0 \n",
"25% -17444.000000 3.608000 19.500000 -9999.0 \n",
"50% 2119.000000 3.624000 22.500000 -9999.0 \n",
"75% 17443.000000 3.639000 27.250000 -9999.0 \n",
"max 32767.000000 4.745000 39.750000 -9999.0 \n",
"\n",
" WXTDn WXTDm WXTDx WXTSn \\\n",
"count 122594.000000 122594.000000 122594.000000 122594.000000 \n",
"mean 130.246709 183.433667 219.829209 2.371266 \n",
"std 78.654022 91.405097 88.711210 1.723976 \n",
"min 0.000000 0.000000 0.000000 0.000000 \n",
"25% 46.000000 106.000000 178.000000 1.200000 \n",
"50% 162.000000 207.000000 241.000000 2.100000 \n",
"75% 189.000000 231.000000 270.000000 3.100000 \n",
"max 351.000000 358.000000 358.000000 16.200000 \n",
"\n",
" WXTSm WXTSx WXTTa WXTUa \n",
"count 122594.000000 122594.000000 122594.000000 122594.000000 \n",
"mean 4.099445 5.886937 20.863037 86.168375 \n",
"std 2.263441 3.041321 2.998218 11.434929 \n",
"min 0.000000 0.000000 12.300000 40.300000 \n",
"25% 2.500000 3.600000 18.800000 78.100000 \n",
"50% 3.800000 5.600000 20.700000 88.300000 \n",
"75% 5.200000 7.600000 22.700000 96.000000 \n",
"max 21.600000 27.900000 31.400000 100.000000 "
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.describe()"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "c5dd8235",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[<matplotlib.lines.Line2D at 0x1b77898dac0>]"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXAAAAD4CAYAAAD1jb0+AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAAA0PElEQVR4nO2dd5hV1dXG38UMRQSlDSgWRgU0KgiKiiVGxa7RmGgUo7HzJRqNMV8CaqJ+9p6InSh2sWuUQZAOCghDkTY06TDA0Nv0Wd8f99yZM+ee3s+968fDM/eeuvY957xn77XXXpuYGYIgCELyaBK1AYIgCII7RMAFQRASigi4IAhCQhEBFwRBSCgi4IIgCAklP8yTdejQgQsLC8M8pSAIQuKZOXPmZmYu0C4PVcALCwtRXF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kfFpjASxV/rZT7XOfYv9iKD3TyvI+AOYr615Ew+jYFgA+AbAMqZ7twwMsz5lo6MRMXBkA9AJQrFyPL5HqzU9UOQD8H4BFyvnfRSrCIfZlADAMKb99NVK1yZvDshspv/Qy5f+NAZRjGVL+6TnK/1fjVg4ZSi8IgpBQkuBCEQRBEHQQARcEQUgoIuCCIAgJRQRcEAQhoYiAC4IgJBQRcEEQhIQiAi4IgpBQ/h8uF62EF4KYiQAAAABJRU5ErkJggg==\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"plt.plot(df[\"WXTSn\"].values)\n"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "a472a001",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.any(np.isnan(df[\"WXTSn\"].values))"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "aba1f75b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0. , 3.1, 2.8, ..., 2.5, 2.5, 3.5])"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"wind_sp=df[\"WXTSn\"].values\n",
"wind_sp"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "1f938b5f",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"122594\n"
]
}
],
"source": [
"def windspeed_mean(ws,cf=1.):\n",
" mn=np.sum(cf*ws)/len(ws)\n",
" n=len(ws)\n",
" return mn,n\n",
"print(windspeed_mean(wind_sp,2)[1])"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "f8c3cb8c",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"4.742532260958938\n",
"122594\n"
]
}
],
"source": [
"x,y=windspeed_mean(wind_sp,2)\n",
"print(x)\n",
"print(y)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "8917271c",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"4.742532260958938\n"
]
}
],
"source": [
"x,_=windspeed_mean(wind_sp,2)\n",
"print(x)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "bf9d6e59",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"122594\n"
]
}
],
"source": [
"_,y=windspeed_mean(wind_sp,2)\n",
"print(y)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
|
class Solution:
def binary_search(self, array, val):
index = bisect_left(array, val)
if index != len(array) and array[index] == val:
return index
else:
return -1
def smallestCommonElement(self, mat: List[List[int]]) -> int:
values = mat[0]
mat.pop(0)
for i, val in enumerate(values):
flag = True
for arr in mat:
idx = self.binary_search(arr, val)
if idx == -1:
flag = False
break
if flag:
return val
return -1
|
# This problem was asked by Facebook.
# Given a binary tree, return all paths from the root to leaves.
# For example, given the tree
# 1
# / \
# 2 3
# / \
# 4 5
# it should return [[1, 2], [1, 3, 4], [1, 3, 5]].
####
class Node:
def __init__(self, val = None, left = None, right = None):
self.val = val
self.left = left
self.right = right
l1 = Node(5)
l2 = Node(3)
l3 = Node(7)
l4 = Node(4)
m1 = Node(2, l1, l2)
m2 = Node(1, l3, l4)
root = Node(6, m1, m2)
####
def paths(root):
# if no node, it does not contribute to the path
if not root:
return []
# if leaf node, return node as is
if not root.left and not root.right:
return [[root.val]]
# generate paths to the left and right of current node
p = paths(root.left) + paths(root.right)
# prepend current value to generated paths
p = [[root.val] + p[i] for i in range(len(p))]
return p
####
print(paths(root))
|
class ApiConfig:
api_key = None
api_base = 'https://www.quandl.com/api/v3'
api_version = None
page_limit = 100
|
_BEGIN = 0
ZERO=0
RAND=1
_END = 10
|
# -*- coding: utf-8 -*-
def main():
n, d = map(int, input().split())
s = [input() for _ in range(d)]
ans = 0
for i in range(d):
for j in range(i, d):
if i != j:
count = 0
for si, sj in zip(s[i], s[j]):
if si == 'o' or sj == 'o':
count += 1
ans = max(ans, count)
print(ans)
if __name__ == '__main__':
main()
|
TOPIC = "test.mosquitto.org"
# Temperature and umidity publish interval (seconds)
DATA_PUBLISH_INTERVAL = 5
# Data amount needed to start processing (reset after)
DATA_PROCESS_AMOUNT = 5
# Percentage of mean temperature which will be sent to the air conditioner
AIR_CONDITIONER_PERCENTAGE = 0.8
# Humidity below this level will turn the humidifier on
HUMIDIFIER_LOWER_THRESHOLD = 50
# Humidity above this level will turn the humidifier off
HUMIDIFIER_UPPER_THRESHOLD = 80
|
PAGINATE_MODULES = {
"Leads": {
"stream_name": "leads",
"module_name": "Leads",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Deals": {
"stream_name": "deals",
"module_name": "Deals",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Contacts": {
"stream_name": "contacts",
"module_name": "Contacts",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Accounts": {
"stream_name": "accounts",
"module_name": "Accounts",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Tasks": {
"stream_name": "tasks",
"module_name": "Tasks",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Events": {
"stream_name": "events",
"module_name": "Events",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Calls": {
"stream_name": "calls",
"module_name": "Calls",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Activities": {
"stream_name": "activities",
"module_name": "Activities",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Visits": {
"stream_name": "visits",
"module_name": "Visits",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Invoices": {
"stream_name": "invoices",
"module_name": "Invoices",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Notes": {
"stream_name": "notes",
"module_name": "Notes",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Attachments": {
"stream_name": "attachments",
"module_name": "Attachments",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
"Lead_Status_History": {
"stream_name": "lead_status_history",
"module_name": "Lead_Status_History",
"params": {"per_page": 200, "sort_by": "Modified_Time", "sort_order": "asc"},
"bookmark_key": "Modified_Time",
},
}
NON_PAGINATE_MODULES = {
"org": {
"module_name": "org",
"stream_name": "org_settings",
},
"settings/stages": {
"module_name": "settings/stages",
"stream_name": "settings_stages",
"params": {"module": "Deals"},
},
}
KNOWN_SUBMODULES = {
"Deals": [
{
"module_name": "Stage_History",
"stream_name": "deals_stage_history",
"bookmark_key": "Last_Modified_Time",
}
]
}
|
for arquivo in os.listdir(caminho):
caminho_completo = os.path.join(caminho, arquivo)
#zip.write(caminho_completo, arquivo)
print(caminho_completo)
|
class Utils:
def __init__(self, data_immigration=None, data_temp=None, data_us_dem=None, data_airport=None):
self.data_immigration = data_immigration
self.data_temp = data_temp
self.data_us_dem = data_us_dem
self.data_airport = data_airport
@staticmethod
def process_immigration_data(self):
"""
Pre-Process US immigration dataframe and return
"""
total_records = self.count()
print(f'Total records in immigration dataframe: {total_records:,}')
# From EDA we found our certain columns has 80+% missing data points and hence we drop them
drop_cols = ['occup', 'entdepu', 'insnum']
df = self.data_immigration.drop(*drop_cols)
# drop rows where all elements are missing
df.dropna(how='all', inplace=True)
new_total_records = df.count()
print(f'Total records after cleaning immigration data: {new_total_records:,}')
return df
def process_temp_data(self):
"""
Process global temperatures dataset, handle duplicate values for specific columns
"""
# drop rows with missing average temperature
df = self.data_temp.dropna(subset=['AverageTemperature'])
# drop duplicate rows
df.drop_duplicates(subset=['dt', 'City', 'Country'], inplace=True)
return df
def process_us_demographic_data(self):
"""
Clean and preprocess the US demographics dataset
"""
# drop rows with missing values
subset_cols = [
'Male Population',
'Female Population',
'Number of Veterans',
'Foreign-born',
'Average Household Size'
]
df_us_dem = self.data_us_dem.dropna(subset=subset_cols)
# drop duplicate columns
df_us_dem.dropDuplicates(subset=['City', 'State', 'State Code', 'Race'], inplace=True)
rows_dropped_with_duplicates = self.data_us_dem.count() - df_us_dem.count()
print(f"Total no. of Rows removed after preprocessing : {rows_dropped_with_duplicates}")
return df_us_dem
# As we saw from the EDA , Iata_code column has 80% + null values, hence we will be dropping that column
# drop rows with missing values
def process_air_traffic_data(self):
"""
Clean the US demographics dataset
"""
# drop rows with missing values
drop_cols = ["iata_code"]
subset_cols = ['gps_code', 'local_code']
df_airport = self.data_airport
data_airport = self.data_airport.drop_duplicates(subset=subset_cols, inplace=True)
data_airport.drop(labels=drop_cols, axis=1, inplace=True)
print(f"Total number of rows removed after processing data : {df_airport.shape[0] - data_airport.shape[0]}")
return data_airport
|
#!/usr/bin/env python3
# coding:utf-8
class Solution:
def Add(self, num1, num2):
"""
num1 ^ num2: 不计进位的相加
(num1 & num2) << 1: 进位
循环至进位为零
~(num1 ^ 0xffffffff): 模仿 C,当 num1 为负数时,把它从无符号数转为有符号数
C 的 int 的高位是符号位,Python 没有
"""
while num2 != 0:
num1, num2 =\
(num1 ^ num2) & 0xffffffff, ((num1 & num2) << 1) & 0xffffffff
return num1 if num1 <= 0x7fffffff else ~(num1 ^ 0xffffffff)
if __name__ == "__main__":
num1 = 66
num2 = 66
s = Solution()
ans = s.Add(num1, num2)
print(ans)
|
class Solution:
def removeCoveredIntervals(self, intervals: List[List[int]]) -> int:
intervals.sort(key=lambda x: (x[0], -x[1]))
count = 0
end = -1
for a, b in intervals:
if b > end:
count += 1
end = b
return count
|
def comb(n, k):
nCk = 1
MOD = 10**9+7
for i in range(n-k+1, n+1):
nCk *= i
nCk %= MOD
for i in range(1, k+1):
nCk *= pow(i, MOD-2, MOD)
nCk %= MOD
return nCk
n, a, b = map(int, input().split())
mod = 10**9+7
ans = pow(2, n, mod)-1-comb(n, a)-comb(n, b)
print(ans % mod)
|
dict1={1:"John",2:"Bob",3:"Bill"}
print(dict1)
print(dict1.items())
k=dict1.keys()
for key in k:
print(key)
v=dict1.values()
for value in v:
print(value)
print(dict1[3])
del dict1[2]
print(dict1)
|
#
# @lc app=leetcode id=119 lang=python3
#
# [119] Pascal's Triangle II
#
# https://leetcode.com/problems/pascals-triangle-ii/description/
#
# algorithms
# Easy (45.89%)
# Likes: 582
# Dislikes: 182
# Total Accepted: 237.3K
# Total Submissions: 515.4K
# Testcase Example: '3'
#
# Given a non-negative index k where k ≤ 33, return the k^th index row of the
# Pascal's triangle.
#
# Note that the row index starts from 0.
#
#
# In Pascal's triangle, each number is the sum of the two numbers directly
# above it.
#
# Example:
#
#
# Input: 3
# Output: [1,3,3,1]
#
#
# Follow up:
#
# Could you optimize your algorithm to use only O(k) extra space?
#
#
# @lc code=start
class Solution:
def getRow(self, rowIndex: int) -> List[int]:
if rowIndex==0:
return [1]
elif rowIndex==1:
return [1,1]
ans = [1,1]
for i in range(1,rowIndex):
ans = [1]+[ans[j-1]+ans[j] for j in range(1,len(ans))]+[1]
return ans
# @lc code=end
|
"""
/github/enums/repositorysubscription.py
Copyright (c) 2019-2020 ShineyDev
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class RepositorySubscription():
"""
Represents a user's subscription state.
https://developer.github.com/v4/enum/subscriptionstate/
"""
__slots__ = ("_subscription",)
def __init__(self, subscription):
self._subscription = subscription
def __repr__(self) -> str:
return "<{0.__class__.__name__} '{0._subscription}'>".format(self)
@classmethod
def from_data(cls, subscription):
return cls(subscription)
@property
def ignored(self) -> bool:
"""
The user is never notified.
"""
return self._subscription == "IGNORED"
@property
def subscribed(self) -> bool:
"""
The user is notified of all conversations.
"""
return self._subscription == "SUBSCRIBED"
@property
def unsubscribed(self) -> bool:
"""
The user is only notified when participating or mentioned.
"""
return self._subscription == "UNSUBSCRIBED"
|
#!/usr/bin/python3.8
# -*- coding: utf-8 -*-
__version__ = "0.2.2"
__author__ = 'Anton Vanke <f@hpu.edu.cn>'
class Gobang:
"""
五子棋
=====
一个简单的五子棋类, 可以在控制台下五子棋. 提供以下函数 :
new(): 新局
printcb(): 打印棋盘
player(): 获取当前应落子 ID (轮走方)
sortstep(): 处理总步表
loadstep(): 将 step 步表的内容载入棋盘
recall(): 前进后退的操作
move(): 落子
iswin(): 判断是否获胜
"""
# 棋盘的边长
SIDE = 15
def new(self):
"""新局"""
self.__init__()
def printcb(self):
"""打印棋盘"""
print("\033[7;32;40m+ ", end="")
for c in range(65, 80):
print(chr(c), end=" ")
print("\033[0m\n")
for row in range(len(self.chessboard)):
print("\033[7;32;40m" + chr(row + 97), end="\033[0m ")
for i in self.chessboard[row]:
if i == 0:
print(i, end=" ")
elif i == 1:
print("\033[31m{}\033[0m".format(i), end=" ")
elif i == 2:
print("\033[34m{}\033[0m".format(i), end=" ")
print("\n")
def player(self):
"""获取玩家ID"""
return (len(self.step) % 2) + 1
def sortstep(self):
"""将总步表分配给黑白子"""
self.white, self.black = {}, {}
for s in self.step.items():
if s[0] % 2 == 1:
self.black.update({s[0]: s[1]})
else:
self.white.update({s[0]: s[1]})
def loadstep(self):
""" 载入步表
将 self.step 载入到棋盘上
"""
try:
self.chessboard = [[0 for i in range(self.SIDE)]
for j in range(self.SIDE)]
step_list = list(self.step.values()).copy()
for i in range(len(step_list)):
self.chessboard[ord(step_list[i][0]) -
97][ord(step_list[i][1]) - 97] = (i % 2) + 1
self.sortstep()
return True
except TypeError:
return False
def recall(self, s=-1):
""" 悔棋
"""
if s == -1:
try:
if len(self.max_step) < len(self.step):
self.max_step = self.step.copy()
if len(self.step) == 0:
raise KeyError
except KeyError:
return False
else:
self.step.popitem()
return self.loadstep()
# 重下
elif s == 1:
if len(self.max_step) > len(self.step):
self.step.update(
{len(self.step) + 1: self.max_step[len(self.step) + 1]})
return self.loadstep()
else:
return False
def move(self, row: int = 7, column: int = 7, **kwgs):
"""移動棋盘
row: 棋盘的行号
column: 棋盘的列号
"""
if 's' in kwgs:
row = ord(kwgs['s'][0].lower()) - 97
column = ord(kwgs['s'][1].lower()) - 97
# 判斷是否在棋盤上
if 0 <= row < self.SIDE and 0 <= column < self.SIDE:
# 判斷該位置上是否有子落過
if self.chessboard[row][column] == 0:
self.chessboard[row][column] = self.player()
self.step[len(self.step) +
1] = chr(row + 97) + chr(column + 97)
self.sortstep()
return True
return False
def iswin(self):
"""判断是否结束
"""
step_set_ls = []
cb = self.chessboard
# 将步表转换为列表
for s in self.step.values():
step_set_ls.append((ord(s[0]) - 97, ord(s[1]) - 97))
# print(step_set_ls)
for r, c in step_set_ls:
try:
# 判断 -- 行有 5 子
if cb[r][c - 2] == cb[r][c - 1] == cb[r][c] == cb[r][
c + 1] == cb[r][c + 2] in (1, 2):
return True, cb[r][c]
except IndexError:
pass
try:
# 判断 | 有 5 子
if cb[r - 2][c] == cb[r - 1][c] == cb[r][c] == cb[
r + 1][c] == cb[r + 2][c] in (1, 2):
return True, cb[r][c]
except IndexError:
pass
try:
# 判断 \ 有 5 子
if cb[r - 2][c - 2] == cb[r - 1][c - 1] == cb[r][c] == cb[
r + 1][c + 1] == cb[r + 2][c + 2] in (1, 2):
return True, cb[r][c]
except IndexError:
pass
try:
# 判断 / 列有 5 子
if cb[r + 2][c - 2] == cb[r + 1][c - 1] == cb[r][c] == cb[
r - 1][c + 1] == cb[r - 2][c + 2] in (1, 2):
return True, cb[r][c]
except IndexError:
pass
return False, 0
def __init__(self):
# 棋盤
self.chessboard = [[0 for i in range(self.SIDE)]
for j in range(self.SIDE)]
# 總步表
self.step = {}
# 单局最长步表
self.max_step = {}
# 黑子步表
self.black = {}
# 白子步表
self.white = {}
def _test():
a = Gobang()
# 输入步表
a.step = {
1: 'no',
2: 'oo',
3: 'mn',
4: 'nn',
5: 'lm',
6: 'mm',
7: 'kl',
8: 'll',
}
# 加载
a.loadstep()
# 落子
a.move(9, 10)
# 打印棋盘
a.printcb()
# 输出输赢
print(a.iswin())
a.new()
a.printcb()
if __name__ == "__main__":
_test()
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# lzma_sdk for standalone build.
{
'targets': [
{
'target_name': 'ots_lzma_sdk',
'type': 'static_library',
'defines': [
'_7ZIP_ST', # Disable multi-thread support.
'_LZMA_PROB32', # This could increase the speed on 32bit platform.
],
'sources': [
'Alloc.c',
'Alloc.h',
'LzFind.c',
'LzFind.h',
'LzHash.h',
'LzmaEnc.c',
'LzmaEnc.h',
'LzmaDec.c',
'LzmaDec.h',
'LzmaLib.c',
'LzmaLib.h',
'Types.h',
],
'include_dirs': [
'.',
],
'direct_dependent_settings': {
'include_dirs': [
'../..',
],
},
},
],
}
|
"""
Given an integer n. Each number from 1 to n is grouped according to the sum of its digits.
Return how many groups have the largest size.
"""
class Solution:
def countLargestGroup(self, n: int) -> int:
def sum_digits(integer):
tot = 0
while integer:
tot += integer % 10
integer = integer // 10
return tot
counter = dict()
for i in range(1, n + 1):
tot = sum_digits(i)
if tot in counter:
counter[tot] += 1
else:
counter[tot] = 1
largest_group = 1
count = 0
for key in counter.keys():
if counter[key] == largest_group:
count += 1
elif counter[key] > largest_group:
count = 1
largest_group = counter[key]
return count
|
# Create a sequence where each element is an individual base of DNA.
# Make the array 15 bases long.
bases = 'ATTCGGTCATGCTAA'
# Print the length of the sequence
print("DNA sequence length:", len(bases))
# Create a for loop to output every base of the sequence on a new line.
print("All bases:")
for base in bases:
print(base)
|
# Team 5
def save_to_json(datatables: list, directory=None):
pass
def open_json():
pass
|
_base_ = "./FlowNet512_1.5AugCosyAAEGray_AggressiveV2_Flat_Pbr_01_ape.py"
OUTPUT_DIR = "output/deepim/lmPbrSO/FlowNet512_1.5AugCosyAAEGray_AggressiveV2_Flat_lmPbr_SO/duck"
DATASETS = dict(TRAIN=("lm_pbr_duck_train",), TEST=("lm_real_duck_test",))
# bbnc6
# objects duck Avg(1)
# ad_2 4.23 4.23
# ad_5 26.01 26.01
# ad_10 61.88 61.88
# rete_2 54.37 54.37
# rete_5 97.28 97.28
# rete_10 100.00 100.00
# re_2 59.15 59.15
# re_5 97.28 97.28
# re_10 100.00 100.00
# te_2 89.67 89.67
# te_5 100.00 100.00
# te_10 100.00 100.00
# proj_2 85.63 85.63
# proj_5 98.22 98.22
# proj_10 99.91 99.91
# re 2.02 2.02
# te 0.01 0.01
|
class Solution:
def sortArray(self, nums: List[int]) -> List[int]:
temp = [0] * len(nums)
def mergeSort(start, end):
if start < end:
mid = (start + end) // 2
mergeSort(start, mid)
mergeSort(mid + 1, end)
i = k = start
j = mid + 1
while i <= mid:
while j <= end and nums[j] < nums[i]:
temp[k] = nums[j]
j += 1
k += 1
temp[k] = nums[i]
i += 1
k += 1
while j <= end:
temp[k] = nums[j]
j += 1
k += 1
nums[start: end + 1] = temp[start: end + 1]
mergeSort(0, len(nums) - 1)
return nums
|
class Foo0():
def __init__(self):
pass
foo1 = Foo0()
class Foo0(): ## error: redefined class
def __init__(self, a):
pass
foo2 = Foo0()
|
# List of possible Pokemon types
types = [
"Normal", "Fire", "Water", "Electric", "Grass", "Ice", "Fighting", "Poison", "Ground", "Flying", "Psychic", "Bug", "Rock", "Ghost", "Dragon", "Dark", "Steel", "Fairy"
]
# Chart of type weaknesses. type_dict["Water"]["Fire"] assumes water is attacking fire.
type_dict = {"Normal": {"Normal":1, "Fire":1, "Water":1, "Electric":1, "Grass":1, "Ice":1, "Fighting":1, "Poison":1, "Ground":1, "Flying":1, "Psychic":1, "Bug":1, "Rock":0.5, "Ghost":0, "Dragon":1, "Dark":1, "Steel":0.5, "Fairy":1},
"Fire": {"Normal":1, "Fire":0.5, "Water":0.5, "Electric":1, "Grass":2, "Ice":2, "Fighting":1, "Poison":1, "Ground":1, "Flying":1, "Psychic":1, "Bug":2, "Rock":0.5, "Ghost":1, "Dragon":0.5, "Dark":1, "Steel":2, "Fairy":1},
"Water": {"Normal":1, "Fire":2, "Water":0.5, "Electric":1, "Grass":0.5, "Ice":1, "Fighting":1, "Poison":1, "Ground":2, "Flying":1, "Psychic":1, "Bug":1, "Rock":2, "Ghost":1, "Dragon":0.5, "Dark":1, "Steel":1, "Fairy":1},
"Electric": {"Normal":1, "Fire":1, "Water":2, "Electric":0.5, "Grass":0.5, "Ice":1, "Fighting":1, "Poison":1, "Ground":0, "Flying":2, "Psychic":1, "Bug":1, "Rock":1, "Ghost":1, "Dragon":0.5, "Dark":1, "Steel":1, "Fairy":1},
"Grass": {"Normal":1, "Fire":0.5, "Water":2, "Electric":1, "Grass":0.5, "Ice":1, "Fighting":1, "Poison":0.5, "Ground":2, "Flying":0.5, "Psychic":1, "Bug":0.5, "Rock":2, "Ghost":1, "Dragon":0.5, "Dark":1, "Steel":0.5, "Fairy":1},
"Ice": {"Normal":1, "Fire":0.5, "Water":0.5, "Electric":1, "Grass":2, "Ice":0.5, "Fighting":1, "Poison":1, "Ground":2, "Flying":2, "Psychic":1, "Bug":1, "Rock":1, "Ghost":1, "Dragon":2, "Dark":1, "Steel":0.5, "Fairy":1},
"Fighting": {"Normal":2, "Fire":1, "Water":1, "Electric":1, "Grass":1, "Ice":2, "Fighting":1, "Poison":0.5, "Ground":2, "Flying":0.5, "Psychic":0.5, "Bug":0.5, "Rock":2, "Ghost":0, "Dragon":1, "Dark":2, "Steel":2, "Fairy":0.5},
"Poison": {"Normal":1, "Fire":1, "Water":1, "Electric":1, "Grass":2, "Ice":1, "Fighting":1, "Poison":0.5, "Ground":0.5, "Flying":1, "Psychic":1, "Bug":1, "Rock":0.5, "Ghost":0.5, "Dragon":1, "Dark":1, "Steel":0, "Fairy":2},
"Ground": {"Normal":1, "Fire":2, "Water":1, "Electric":2, "Grass":0.5, "Ice":1, "Fighting":1, "Poison":2, "Ground":1, "Flying":0, "Psychic":1, "Bug":0.5, "Rock":2, "Ghost":1, "Dragon":1, "Dark":1, "Steel":2, "Fairy":1},
"Flying": {"Normal":1, "Fire":1, "Water":1, "Electric":0.5, "Grass":2, "Ice":1, "Fighting":2, "Poison":1, "Ground":1, "Flying":1, "Psychic":1, "Bug":2, "Rock":0.5, "Ghost":1, "Dragon":1, "Dark":1, "Steel":0.5, "Fairy":1},
"Psychic": {"Normal":1, "Fire":1, "Water":1, "Electric":1, "Grass":1, "Ice":1, "Fighting":2, "Poison":2, "Ground":1, "Flying":1, "Psychic":0.5, "Bug":1, "Rock":1, "Ghost":1, "Dragon":1, "Dark":0, "Steel":0.5, "Fairy":1},
"Bug": {"Normal":1, "Fire":0.5, "Water":1, "Electric":1, "Grass":2, "Ice":1, "Fighting":0.5, "Poison":0.5, "Ground":1, "Flying":0.5, "Psychic":2, "Bug":1, "Rock":1, "Ghost":0.5, "Dragon":1, "Dark":2, "Steel":0.5, "Fairy":0.5},
"Rock": {"Normal":1, "Fire":2, "Water":1, "Electric":1, "Grass":1, "Ice":2, "Fighting":0.5, "Poison":1, "Ground":0.5, "Flying":2, "Psychic":1, "Bug":2, "Rock":1, "Ghost":1, "Dragon":1, "Dark":1, "Steel":0.5, "Fairy":1},
"Ghost": {"Normal":0, "Fire":1, "Water":1, "Electric":1, "Grass":1, "Ice":1, "Fighting":1, "Poison":1, "Ground":1, "Flying":1, "Psychic":2, "Bug":1, "Rock":1, "Ghost":2, "Dragon":1, "Dark":0.5, "Steel":1, "Fairy":1},
"Dragon": {"Normal":1, "Fire":1, "Water":1, "Electric":1, "Grass":1, "Ice":1, "Fighting":1, "Poison":1, "Ground":1, "Flying":1, "Psychic":1, "Bug":1, "Rock":1, "Ghost":1, "Dragon":2, "Dark":1, "Steel":0.5, "Fairy":0},
"Dark": {"Normal":1, "Fire":1, "Water":1, "Electric":1, "Grass":1, "Ice":1, "Fighting":0.5, "Poison":1, "Ground":1, "Flying":1, "Psychic":2, "Bug":1, "Rock":1, "Ghost":2, "Dragon":1, "Dark":0.5, "Steel":1, "Fairy":0.5},
"Steel": {"Normal":1, "Fire":0.5, "Water":0.5, "Electric":0.5, "Grass":1, "Ice":2, "Fighting":1, "Poison":1, "Ground":1, "Flying":1, "Psychic":1, "Bug":1, "Rock":2, "Ghost":1, "Dragon":1, "Dark":1, "Steel":0.5, "Fairy":1},
"Fairy": {"Normal":1, "Fire":0.5, "Water":1, "Electric":1, "Grass":1, "Ice":1, "Fighting":2, "Poison":0.5, "Ground":1, "Flying":1, "Psychic":1, "Bug":1, "Rock":1, "Ghost":1, "Dragon":2, "Dark":2, "Steel":0.5, "Fairy":1}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.