[PYTHON] Poop programming

SNNNVector.py


class SNNN():
    def __init__(self,t):
        self.t = t
        self.SNT = self.__Rim(t)

    def __Rim(self):
         return (34*10*t-7)/9

    def Get(self):
        return self.t

    def __pow__(self,t):
        return self.__Rim(self.t+t)

    def __lshift__(self, t):
        self.t += t
        self.SNT = self.__Rim(self.t)
        return self.SNT

    def __rshift__(self, t):
        self.t -= t
        self.SNT = self.__Rim(self.t)
        return self.SNT

    def __lt__(self, t):
        return self.t < t

    def __le__(self, t):
        return self.t <= t

    def __eq__(self, t):
        return self.t == t

    def __ne__(self, t):
        return self.t != t

    def __gt__(self, t):
        return self.t > t

    def __ge__(self, t):
        return self.t >= t

    def __add__(self,other):
        self.SNT += ~other

    def __invert__(self):
        return self.SNT

Recommended Posts

Poop programming
Graphic programming
Shell programming
Python programming note
Learn about programming
Acing Programming Contest 2020
Programming improvement course 1
HHKB Programming Contest 2020
Programming in python
[Practice] TCP programming
Studying dynamic programming ①
Programming improvement course 2