Skip to content

Commit 2adbbf4

Browse files
committed
Solve 2591 - HameKameKa in python
1 parent cb9b5df commit 2adbbf4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

solutions/beecrowd/2591/2591.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
local c = tonumber(io.read("*n"))
2+
io.read() -- go to next line
3+
4+
for i=1,c do
5+
local line = io.read()
6+
local first_a, _ = string.find(line, "meka")
7+
first_a = first_a - 2
8+
local second_a = string.len(line) - first_a - 6
9+
10+
print(string.format('k%s', string.rep("a", first_a * second_a)))
11+
end

0 commit comments

Comments
 (0)