Submission details
Task:Leimasin
Sender:pupukani
Submission time:2025-09-28 15:37:55 +0300
Language:C++ (C++17)
Status:READY
Result:0
Feedback
groupverdictscore
#10
#20
#30
Test results
testverdicttimegroup
#10.00 s1, 2, 3details
#20.00 s1, 2, 3details
#30.00 s1, 2, 3details
#40.00 s1, 2, 3details
#50.00 s2, 3details
#60.00 s2, 3details
#70.02 s2, 3details
#80.11 s2, 3details
#90.23 s3details
#100.24 s3details
#110.77 s3details
#12--3details
#13--3details
#14--3details

Compiler report

In file included from /usr/include/c++/11/cassert:44,
                 from input/code.cpp:5:
input/code.cpp: In function 'int main()':
input/code.cpp:15:32: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   15 |         assert(leimasin.size() == m);
      |                ~~~~~~~~~~~~~~~~^~~~
input/code.cpp:18:30: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   18 |         for (size_t i = 0; i < k; ++i)
      |                            ~~^~~
input/code.cpp:32:38: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   32 |                 for (size_t i = 0; i < m; ++i)
      |                                    ~~^~~

Code

#include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <cassert>

int main(void)
{
	int n, m, k;
	std::cin >> n >> m >> k;

	std::string leimasin;
	std::cin >> leimasin;

	assert(leimasin.size() == m);
	std::vector<size_t> kohdat;

	for (size_t i = 0; i < k; ++i)
	{
		int kohta;
		std::cin >> kohta;
		kohdat.push_back(kohta);
	}

	for (auto kohta : kohdat)
		std::cout << kohta << " ";
	std::cout << std::endl;

	std::string mj = std::string(n, '.');
	for (auto kohta : kohdat)
	{
		for (size_t i = 0; i < m; ++i)
		{
			mj[kohta + i] = leimasin[i];
		}
	}
	std::cout << mj << std::endl;
}

Test details

Test 1

Group: 1, 2, 3

Verdict:

input
1000 1 100
a
585 600 750 170 794 845 341 39...

correct output
............a....aa..............

user output
585 600 750 170 794 845 341 39...

Test 2

Group: 1, 2, 3

Verdict:

input
1000 4 100
zhrb
795 569 744 662 315 869 913 21...

correct output
.........................zhrb....

user output
795 569 744 662 315 869 913 21...

Test 3

Group: 1, 2, 3

Verdict:

input
1000 100 100
wkmtgzytnfwptwukbartgunjyrkyml...

correct output
wkmtgzywkmtgzytnfwptwukbartgun...

user output
501 469 753 740 22 180 810 198...

Test 4

Group: 1, 2, 3

Verdict:

input
1000 1000 100
njplbyvkaytbcyzbylzntnmpfapvfg...

correct output
njplbyvkaytbcyzbylzntnmpfapvfg...

user output
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

Test 5

Group: 2, 3

Verdict:

input
100000 1 1000
a
61541 4948 46214 29629 8779 76...

correct output
.................................

user output
61541 4948 46214 29629 8779 76...

Test 6

Group: 2, 3

Verdict:

input
100000 10 1000
ntsconpqnv
17118 69319 2115 8873 892 9994...

correct output
.....................ntsconpqn...

user output
17118 69319 2115 8873 892 9994...

Test 7

Group: 2, 3

Verdict:

input
100000 10000 1000
wcyeepjmmvavmoncfxclqrsebjzwbf...

correct output
.................................

user output
43707 73596 16433 54845 5924 6...

Test 8

Group: 2, 3

Verdict:

input
100000 100000 1000
chdcxwwznawllrxcxlckeziomcsjhc...

correct output
chdcxwwznawllrxcxlckeziomcsjhc...

user output
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

Test 9

Group: 3

Verdict:

input
1000000 1 500000
a
406018 635983 429225 943593 90...

correct output
.a...aa.....a.aaaa.a.aaa..aa.a...

user output
406018 635983 429225 943593 90...

Test 10

Group: 3

Verdict:

input
1000000 10 500000
frvhrhlrxi
85148 459715 677814 98302 4081...

correct output
frvhfrvhrhlrxihrhlrxifrvhrfrvf...

user output
85148 459715 677814 98302 4081...

Test 11

Group: 3

Verdict:

input
1000000 1000 500000
hklmkntjqgilackgurwlerwvvfjwwr...

correct output
.hklhklmkntjqgilackgurwlerwvvf...

user output
232339 904814 702228 664617 87...

Test 12

Group: 3

Verdict:

input
1000000 10000 500000
yxajftmelgwiofcugtrvcltdemhyuu...

correct output
yxajftyxayxajftmelgwiofcugtrvc...

user output
(empty)

Test 13

Group: 3

Verdict:

input
1000000 100000 500000
yyzteckvutdnprlklyxgenyqpznght...

correct output
.yyyyzteckvutdnpryyzteckvutdnp...

user output
(empty)

Test 14

Group: 3

Verdict:

input
1000000 1000000 500000
hhgvveiosloznsihxtccfjbizayyhl...

correct output
hhgvveiosloznsihxtccfjbizayyhl...

user output
(empty)