Gauss- Bonnet theorem establishes the connection/identity between isometric (left hand side of equation) and Euler topological constant (right hand side ). In short
$ \int K dA + \int \kappa_{g} \,ds= 2 \pi \chi$
where for compact surfaces the first term is total/integral curvature or solid angle in steridians, second term is rotation in tangent plane measured in radians which together elegantly sum up to Euler charactristic $2 \pi \chi.$ Sudden jumps with geodesics can be accommodated/interpreted as external angles sum $\Sigma \psi_{i}$ around the contour for the line integral.
For a Torus with cancelling geodesic sections:
$0+ 0=2 \pi \chi \rightarrow \, \chi=0 \tag1$
For a hemisphere bounded by an equator:
$2 \pi +0 = 2 \pi \chi \rightarrow \, \chi=1 \tag2 $
For a closed convex loop on a developable surface (Gauss curvature $K=0\,$ for cones, cylinders/developable helicoids) for either continuous ( like a circle in a flat plane or non-intersecting continuous loop on a curved surface) curves or discontinuous sloped curves (segment of circle $M$ like the one you sketched of developed cone patch):
$0+ 2 \pi=2 \pi \chi \rightarrow \, \chi=1 \tag3 $
The matter is thus established by isometry/topological considerations.
EDIT1:
I am in agreement with the question setter. I would suppose he wanted the student to recognize a group of such isometric/homeomorphic equivalents.