+ 5
[ Challenge 4 ] The Great Kian
The great Kian is looking for a smart prime minister. He's looking for a guy who can solve the OLP (Old Legendary Problem). OLP is an old problem (obviously) that no one was able to solve it yet Given the sequenceĀ a1, a2, ..., anĀ find the three valuesĀ a1Ā + a4Ā + a7Ā + ...,Ā a2Ā + a5Ā + a8Ā + ...Ā andĀ a3Ā + a6Ā + a9Ā + ...(these summations go on while the indexes are valid SAMPLE INPUT 5 1 2 3 4 5 SAMPLE OUTPUT 5 7 3 explanation 1+4 = 5 2+5 =7 3
6 Answers
+ 27
here is my try āŗ
https://code.sololearn.com/cOkektN0R2Cv/?ref=app
+ 13
I'm early!! Python One-linear
Just enter the number, example : 12345
https://code.sololearn.com/cI5xaYgxJ4Fk/?ref=app
+ 9
Nice challenge š
https://code.sololearn.com/cugUUDEFFB9u/?ref=app
+ 4
https://code.sololearn.com/Wq9TPUtikxAz/?ref=app
0