CSES - Datatähti 2022 alku - Results
Submission details
Task:Merkkijono
Sender:kkaktuss
Submission time:2021-10-11 13:03:01 +0300
Language:Ruby
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.07 sdetails
#20.07 sdetails
#30.07 sdetails
#40.07 sdetails
#50.07 sdetails
#60.07 sdetails
#70.07 sdetails
#80.07 sdetails
#90.07 sdetails
#100.07 sdetails
#110.07 sdetails
#120.07 sdetails
#130.07 sdetails
#140.07 sdetails
#150.07 sdetails
#160.07 sdetails

Code

a=["a"]
b=("a".."p").to_a
i=1
(gets.to_i-1).times 
{ a = a.flat_map {|t| [b[i], t]}<<b[i]
i+=1 }
puts a.join.to_s

Test details

Test 1

Verdict:

input
1

correct output
a

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 2

Verdict:

input
2

correct output
bab

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 3

Verdict:

input
3

correct output
cbcacbc

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 4

Verdict:

input
4

correct output
dcdbdcdadcdbdcd

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 5

Verdict:

input
5

correct output
edecedebedecedeaedecedebedeced...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 6

Verdict:

input
6

correct output
fefdfefcfefdfefbfefdfefcfefdfe...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 7

Verdict:

input
7

correct output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 8

Verdict:

input
8

correct output
hghfhghehghfhghdhghfhghehghfhg...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 9

Verdict:

input
9

correct output
ihigihifihigihieihigihifihigih...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 10

Verdict:

input
10

correct output
jijhjijgjijhjijfjijhjijgjijhji...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 11

Verdict:

input
11

correct output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 12

Verdict:

input
12

correct output
lkljlklilkljlklhlkljlklilkljlk...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 13

Verdict:

input
13

correct output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 14

Verdict:

input
14

correct output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 15

Verdict:

input
15

correct output
onomonolonomonokonomonolonomon...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^

Test 16

Verdict:

input
16

correct output
popnpopmpopnpoplpopnpopmpopnpo...

user output
(empty)

Error:
input/code.rb:5: syntax error, unexpected '\n', expecting =>
....flat_map {|t| [b[i], t]}<<b[i]
...                               ^
input/code.rb:6: syntax error, unexpected '}', expecting end-of-input
i+=1 }
     ^