| Task: | Merkkijono |
| Sender: | Emunemu |
| Submission time: | 2021-10-04 21:34:17 +0300 |
| Language: | C++ (C++17) |
| Status: | READY |
| Result: | 0 |
| group | verdict | score |
|---|---|---|
| #1 | WRONG ANSWER | 0 |
| test | verdict | time | |
|---|---|---|---|
| #1 | ACCEPTED | 0.01 s | details |
| #2 | ACCEPTED | 0.01 s | details |
| #3 | ACCEPTED | 0.01 s | details |
| #4 | ACCEPTED | 0.01 s | details |
| #5 | ACCEPTED | 0.01 s | details |
| #6 | ACCEPTED | 0.01 s | details |
| #7 | ACCEPTED | 0.01 s | details |
| #8 | ACCEPTED | 0.01 s | details |
| #9 | ACCEPTED | 0.01 s | details |
| #10 | ACCEPTED | 0.01 s | details |
| #11 | WRONG ANSWER | 0.01 s | details |
| #12 | WRONG ANSWER | 0.01 s | details |
| #13 | WRONG ANSWER | 0.01 s | details |
| #14 | WRONG ANSWER | 0.01 s | details |
| #15 | WRONG ANSWER | 0.01 s | details |
| #16 | WRONG ANSWER | 0.02 s | details |
Code
#include <stdio.h>
#include <iostream>
#include <math.h>
using namespace std;
string ToStr( char c ) {
return string( 1, c );
}
int main()
{
string ans = "";
string abc = "abcdefghijlkmnop";
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string c = ToStr(abc.at(i));
for (int j = 0; j <= pow(2,i+1)-2; j+=2) {
ans.insert(j,c);
}
}
/*string c = ToStr(abc.at(0));
ans.insert(0,c);*/
cout << ans;
return 0;
}
Test details
Test 1
Verdict: ACCEPTED
| input |
|---|
| 1 |
| correct output |
|---|
| a |
| user output |
|---|
| a |
Test 2
Verdict: ACCEPTED
| input |
|---|
| 2 |
| correct output |
|---|
| bab |
| user output |
|---|
| bab |
Test 3
Verdict: ACCEPTED
| input |
|---|
| 3 |
| correct output |
|---|
| cbcacbc |
| user output |
|---|
| cbcacbc |
Test 4
Verdict: ACCEPTED
| input |
|---|
| 4 |
| correct output |
|---|
| dcdbdcdadcdbdcd |
| user output |
|---|
| dcdbdcdadcdbdcd |
Test 5
Verdict: ACCEPTED
| input |
|---|
| 5 |
| correct output |
|---|
| edecedebedecedeaedecedebedeced... |
| user output |
|---|
| edecedebedecedeaedecedebedeced... |
Test 6
Verdict: ACCEPTED
| input |
|---|
| 6 |
| correct output |
|---|
| fefdfefcfefdfefbfefdfefcfefdfe... |
| user output |
|---|
| fefdfefcfefdfefbfefdfefcfefdfe... |
Test 7
Verdict: ACCEPTED
| input |
|---|
| 7 |
| correct output |
|---|
| gfgegfgdgfgegfgcgfgegfgdgfgegf... |
| user output |
|---|
| gfgegfgdgfgegfgcgfgegfgdgfgegf... Truncated |
Test 8
Verdict: ACCEPTED
| input |
|---|
| 8 |
| correct output |
|---|
| hghfhghehghfhghdhghfhghehghfhg... |
| user output |
|---|
| hghfhghehghfhghdhghfhghehghfhg... Truncated |
Test 9
Verdict: ACCEPTED
| input |
|---|
| 9 |
| correct output |
|---|
| ihigihifihigihieihigihifihigih... |
| user output |
|---|
| ihigihifihigihieihigihifihigih... Truncated |
Test 10
Verdict: ACCEPTED
| input |
|---|
| 10 |
| correct output |
|---|
| jijhjijgjijhjijfjijhjijgjijhji... |
| user output |
|---|
| jijhjijgjijhjijfjijhjijgjijhji... Truncated |
Test 11
Verdict: WRONG ANSWER
| input |
|---|
| 11 |
| correct output |
|---|
| kjkikjkhkjkikjkgkjkikjkhkjkikj... |
| user output |
|---|
| ljliljlhljliljlgljliljlhljlilj... Truncated |
Test 12
Verdict: WRONG ANSWER
| input |
|---|
| 12 |
| correct output |
|---|
| lkljlklilkljlklhlkljlklilkljlk... |
| user output |
|---|
| klkjklkiklkjklkhklkjklkiklkjkl... Truncated |
Test 13
Verdict: WRONG ANSWER
| input |
|---|
| 13 |
| correct output |
|---|
| mlmkmlmjmlmkmlmimlmkmlmjmlmkml... |
| user output |
|---|
| mkmlmkmjmkmlmkmimkmlmkmjmkmlmk... Truncated |
Test 14
Verdict: WRONG ANSWER
| input |
|---|
| 14 |
| correct output |
|---|
| nmnlnmnknmnlnmnjnmnlnmnknmnlnm... |
| user output |
|---|
| nmnknmnlnmnknmnjnmnknmnlnmnknm... Truncated |
Test 15
Verdict: WRONG ANSWER
| input |
|---|
| 15 |
| correct output |
|---|
| onomonolonomonokonomonolonomon... |
| user output |
|---|
| onomonokonomonolonomonokonomon... Truncated |
Test 16
Verdict: WRONG ANSWER
| input |
|---|
| 16 |
| correct output |
|---|
| popnpopmpopnpoplpopnpopmpopnpo... |
| user output |
|---|
| popnpopmpopnpopkpopnpopmpopnpo... Truncated |
