| Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
|---|---|---|---|---|---|---|
| 1 | Kotlin | 247 | 108 | 139 | 12 minutes ago |
// Template for reading lines from stdin and printing the line count to stdout.// Copy this code to your IDE to get started.funmain()=with(generateSequence(::readLine).toList()){ varp1=0 for(yinindices)for(xinindices)for(din1..<size) if(sequenceOf(xtoy,x+dtoy,x+dtoy+d,xtoy+d) .all{(x,y)->yinindices&&xinindices&&this[y][x]=='#'} )p1++ println(p1)}