Advertisement
Guest User

Untitled

a guest
Nov 9th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.26 KB | None | 0 0
  1.    @Test
  2.     fun nahojdenieCheacSumm(){
  3.         val mass = arrayOf(3, 1, 4, 1, 5, 9)
  4.         var result = 0
  5.         for (i in 0..mass.lastIndex){
  6.             result = (result + i) * 113
  7.             result %= 10000007
  8.         }
  9.         print(result)
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement