Computer and submarine