Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
11
Task/Semordnilap/Sidef/semordnilap.sidef
Normal file
11
Task/Semordnilap/Sidef/semordnilap.sidef
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
var c = 0
|
||||
var seen = Hash()
|
||||
|
||||
ARGF.each { |line|
|
||||
line.chomp!
|
||||
var r = line.reverse
|
||||
((seen{r} := 0 ++) && (c++ < 5) && say "#{line} #{r}") ->
|
||||
|| (seen{line} := 0 ++)
|
||||
}
|
||||
|
||||
say c
|
||||
Loading…
Add table
Add a link
Reference in a new issue