+ 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 Antworten
+ 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