[PYTHON] Nintendo Code Puzzle Table 1st question

nin1.py


m=2
while pow(m,17)%3569!=915:
   m+=1
else:
   print m

There is no need to shorten it,

nin1s.py


m=2
while pow(m,17)%3569!=915: m+=1
else: print m

Line breaks cannot be omitted. I'm exhausted. .. .. .. I didn't use lambda because I don't know.

Recommended Posts

Nintendo Code Puzzle Table 1st question
Code convention, method correspondence table