add = lambda x, y : add(x ^ y, (x & y) << 1) if y else x
from math import floor, sin, cos, sqrt, factorial, radians, pow, tau, pi, asin, gamma, atan, log2, tan, e, ceil, acos, lgamma, log, expfrom cmath import exp, phaseimport numpy as npfrom scipy import linalg, integrate#I'm sorrydef add(x, y):return ceil(pow(sqrt(pow(factorial(x)/gamma(x), pow(tau/pi, tau/pi)) + \phase(-1+0j)/asin(pi/tau)*pow(x, pi/atan(pow(tan(pi/6), tan(pi*-1/4))))*abs(exp(tau*1j))*y + \pow(factorial(floor(e))*y,gamma(floor(pi)))*linalg.det(np.array([[x,0],[0,x]])) + \ceil(acos(cos(pi/gamma(floor(pi))) - ceil(np.euler_gamma)))*x*pow(y,integrate.quad(lambda x:x+x,1,2)[0]) + \linalg.det(np.eye(10))*pow(y,ceil(pi))) + linalg.det(np.full((5,5),1)) + \lgamma(sin(acos(tan(log(abs(exp(floor(pi) % ceil(e)))))))), sin(radians(factorial(4) + gamma(4))))) if x>0 and y>0 else None#I'm so sorry- add = lambda x, y : add(x ^ y, (x & y) << 1) if y else x
import unittest class MyTest(unittest.TestCase): def test0(self): self.assertEqual(add(3,4), 7) def test1(self): self.assertEqual(add(1,5), 6) def test2(self): self.assertEqual(add(78,81), 159) def test3(self): self.assertEqual(add(9,21), 30) def test4(self): self.assertEqual(add(5,7), 12) def test5(self): self.assertEqual(add(50, 50), 100) def test6(self): self.assertEqual(add(-50, -250), -300) if __name__ == '__main__': unittest.main()
- import unittest
- class MyTest(unittest.TestCase):
- def test0(self):
- self.assertEqual(add(3,4), 7)
- def test1(self):
- self.assertEqual(add(1,5), 6)
- def test2(self):
- self.assertEqual(add(78,81), 159)
- def test3(self):
- self.assertEqual(add(9,21), 30)
- def test4(self):
- self.assertEqual(add(5,7), 12)
- def test5(self):
- self.assertEqual(add(50, 50), 100)
- def test6(self):
- self.assertEqual(add(-50, -250), -300)
- if __name__ == '__main__':
- unittest.main()