EasyCTF_2018: Over and Over
Category: Programming Points: 30 Description:
over and over and over and over and over and ... Given a number
N
, print the string "over [and over]" such that the string containsN
"over"s. There should not be newlines in the string. For example: ForN
= 1, print "over". ForN
= 5, print "over and over and over and over and over". For Python, consider usingfor
andrange
. For Java/CXX, consider using afor
loop. Try doing it withwhile
too for practice!
Write-up
times=int(input())
output=""
for i in range(times):
output+="over and "
print(output.strip("and "))
Therefore, there is no flag.