Task: | Palindromi |
Sender: | Username* |
Submission time: | 2024-01-20 13:14:41 +0200 |
Language: | C++ (C++20) |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.00 s | details |
#2 | WRONG ANSWER | 0.00 s | details |
#3 | WRONG ANSWER | 0.00 s | details |
#4 | WRONG ANSWER | 0.00 s | details |
#5 | WRONG ANSWER | 0.00 s | details |
#6 | WRONG ANSWER | 0.00 s | details |
#7 | WRONG ANSWER | 0.00 s | details |
#8 | WRONG ANSWER | 0.00 s | details |
#9 | WRONG ANSWER | 0.00 s | details |
#10 | WRONG ANSWER | 0.00 s | details |
#11 | WRONG ANSWER | 0.00 s | details |
#12 | WRONG ANSWER | 0.00 s | details |
#13 | WRONG ANSWER | 0.00 s | details |
#14 | WRONG ANSWER | 0.00 s | details |
#15 | WRONG ANSWER | 0.00 s | details |
#16 | WRONG ANSWER | 0.00 s | details |
#17 | WRONG ANSWER | 0.00 s | details |
Code
#include "bits/stdc++.h" typedef long long ll; using namespace std; int main() { // palindrome int n; int k; cin >> n; cin >> k; string p; for (int i = 0; i< k; ++i) { p += 'a'; } //cout << p; string r; vector<char> ch = {'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y','z'}; for (int i = 0; i<= n-k; ++i) { r += ch[i % ch.size()-1]; } cout << p << r << endl; return 0; }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
1 1 |
correct output |
---|
a |
user output |
---|
a |
Test 2
Verdict: WRONG ANSWER
input |
---|
2 1 |
correct output |
---|
ab |
user output |
---|
a b |
Test 3
Verdict: WRONG ANSWER
input |
---|
2 2 |
correct output |
---|
aa |
user output |
---|
aa |
Test 4
Verdict: WRONG ANSWER
input |
---|
3 1 |
correct output |
---|
abc |
user output |
---|
a bc |
Test 5
Verdict: WRONG ANSWER
input |
---|
3 2 |
correct output |
---|
aab |
user output |
---|
aa b |
Test 6
Verdict: WRONG ANSWER
input |
---|
3 3 |
correct output |
---|
aaa |
user output |
---|
aaa |
Test 7
Verdict: WRONG ANSWER
input |
---|
4 1 |
correct output |
---|
abca |
user output |
---|
a bcd |
Test 8
Verdict: WRONG ANSWER
input |
---|
4 2 |
correct output |
---|
aabc |
user output |
---|
aa bc |
Test 9
Verdict: WRONG ANSWER
input |
---|
4 3 |
correct output |
---|
aaab |
user output |
---|
aaa b |
Test 10
Verdict: WRONG ANSWER
input |
---|
4 4 |
correct output |
---|
aaaa |
user output |
---|
aaaa |
Test 11
Verdict: WRONG ANSWER
input |
---|
100 1 |
correct output |
---|
abcabcabcabcabcabcabcabcabcabc... |
user output |
---|
a bcdefghijklmnopqrstuvwxy bcd... Truncated |
Test 12
Verdict: WRONG ANSWER
input |
---|
100 2 |
correct output |
---|
aabcabcabcabcabcabcabcabcabcab... |
user output |
---|
aa bcdefghijklmnopqrstuvwxy bc... Truncated |
Test 13
Verdict: WRONG ANSWER
input |
---|
100 5 |
correct output |
---|
aaaaabcabcabcabcabcabcabcabcab... |
user output |
---|
aaaaa bcdefghijklmnopqrstuvwxy... Truncated |
Test 14
Verdict: WRONG ANSWER
input |
---|
100 10 |
correct output |
---|
aaaaaaaaaabcabcabcabcabcabcabc... |
user output |
---|
aaaaaaaaaa bcdefghijklmnopqrst... Truncated |
Test 15
Verdict: WRONG ANSWER
input |
---|
100 50 |
correct output |
---|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... |
user output |
---|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... Truncated |
Test 16
Verdict: WRONG ANSWER
input |
---|
100 90 |
correct output |
---|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... |
user output |
---|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... Truncated |
Test 17
Verdict: WRONG ANSWER
input |
---|
100 100 |
correct output |
---|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... |
user output |
---|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... Truncated |