import numpy as np
def sum_squared_error(y,t):
  return 0.5 * np.sum((y-t)**2)
t = np.array([0,0,1,0,0])
y1 = np.array([0.1,0.05,0.6,0.0,0.1])
print(sum_squared_error(y1,t))
y2 = np.array([0.1,0.05,0.1,0.0,0.1])
print(sum_squared_error(y2,t))
