Task: | Monistus |
Sender: | zli0122 |
Submission time: | 2023-11-02 15:14:27 +0200 |
Language: | C++ (C++20) |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
#2 | WRONG ANSWER | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | WRONG ANSWER | 0.00 s | 1, 2 | details |
#2 | WRONG ANSWER | 0.00 s | 1, 2 | details |
#3 | WRONG ANSWER | 0.00 s | 1, 2 | details |
#4 | WRONG ANSWER | 0.00 s | 1, 2 | details |
#5 | WRONG ANSWER | 0.00 s | 1, 2 | details |
#6 | WRONG ANSWER | 0.00 s | 1, 2 | details |
#7 | WRONG ANSWER | 0.00 s | 1, 2 | details |
#8 | WRONG ANSWER | 0.01 s | 2 | details |
#9 | WRONG ANSWER | 0.03 s | 2 | details |
#10 | WRONG ANSWER | 0.03 s | 2 | details |
#11 | WRONG ANSWER | 0.06 s | 2 | details |
#12 | WRONG ANSWER | 0.05 s | 2 | details |
#13 | WRONG ANSWER | 0.04 s | 2 | details |
#14 | WRONG ANSWER | 0.04 s | 2 | details |
Code
// https://cses.fi/484/task/B #include <iostream> #include <vector> using namespace std; int main() { string word; int len; vector<string> w_queue; vector<string> ss_queue; int ss_size; string curr_w = ""; cin >> word; for (int _ = 0; _ < 4; _++) { ss_size = 0; len = int(word.size()); int cd = 0; for (int i = 0; i < len; i++) { if (isalpha(word[i]) || (cd > 0)) { curr_w += word[i]; cd --; } else { w_queue.push_back(curr_w); curr_w = ""; int number = word[i] - 48; string ss = ""; for (int j = i + 1; j < i + 1 + number; j++) { char c = word[j]; ss += c; if (isdigit(c)) { cd = max(c - 48, cd); } cd--; } ss_queue.push_back( ss ); ss_size++; i += number; } } word = ""; for (int i = 0; i < ss_size; i++) { word += w_queue[i] += ss_queue[i] += ss_queue[i]; } word += curr_w; cout << word << endl; curr_w = ""; w_queue.clear(); ss_queue.clear(); } //cout << word << endl; }
Test details
Test 1
Group: 1, 2
Verdict: WRONG ANSWER
input |
---|
987654321o987654321p |
correct output |
---|
oooooooooooooooooooooooooooooo... |
user output |
---|
87654321o87654321o87654321p876... Truncated |
Test 2
Group: 1, 2
Verdict: WRONG ANSWER
input |
---|
1e1o1zo1r1h1y1m1b1mn |
correct output |
---|
eeoozzorrhhyymmbbmmn |
user output |
---|
eeoozzorrhhyymmbbmmn eeoozzorrhhyymmbbmmn eeoozzorrhhyymmbbmmn eeoozzorrhhyymmbbmmn |
Test 3
Group: 1, 2
Verdict: WRONG ANSWER
input |
---|
h4y21n7dz6vr1p4go1ec |
correct output |
---|
hynnnnynnnndzvrppdzvrppdzvrppg... |
user output |
---|
hy21ny21ndz6vr1pdz6vr1p4goeec hy1n1ny1n1ndzvr1pdzvr1pdzvr1p4... Truncated |
Test 4
Group: 1, 2
Verdict: WRONG ANSWER
input |
---|
bv2olah1h6o4f2mx3z1k |
correct output |
---|
bvololahhhofmxmxfmxmxofmxmxfmx... |
user output |
---|
bvololahhho4f2mxo4f2mxz1kz1k bvololahhhof2mxf2mxof2mxf2mxzk... Truncated |
Test 5
Group: 1, 2
Verdict: WRONG ANSWER
input |
---|
xewpp2f1l6a5jp1v2v1y |
correct output |
---|
xewppfffllajpvvajpvvajpvvjpjpv... |
user output |
---|
xewppf1f1la5jp1va5jp1vv1v1y xewppfffllajp1vajp1vajp1vvjp1v... Truncated |
Test 6
Group: 1, 2
Verdict: WRONG ANSWER
input |
---|
1v4z1kjm1t6vp5c1m2np |
correct output |
---|
vvzkkjzkkjmttvpcmmvpcmmvpcmmnc... |
user output |
---|
vvz1kjz1kjmttvp5c1mvp5c1m2np vvzkkjzkkjmttvpc1mvpc1mvpc1m2n... Truncated |
Test 7
Group: 1, 2
Verdict: WRONG ANSWER
input |
---|
y2bl9cp21v7kgesxm2uv |
correct output |
---|
yblblcpvvvvkgecpkkkkgecpvvvvkg... |
user output |
---|
yblblcp21v7kgecp21v7kgesxmuvuv yblblcp1v1vkgecp21kgecp21vkges... Truncated |
Test 8
Group: 2
Verdict: WRONG ANSWER
input |
---|
987654321b987654321f987654321u... |
correct output |
---|
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb... |
user output |
---|
87654321b87654321b87654321f876... Truncated |
Test 9
Group: 2
Verdict: WRONG ANSWER
input |
---|
agjv4321w9dskvax5ws21r321l9n7d... |
correct output |
---|
agjvwwwwwwwwwwwwwwwwdskvaxwsds... |
user output |
---|
agjv321w321wdskvax5wsdskvax5ws... Truncated |
Test 10
Group: 2
Verdict: WRONG ANSWER
input |
---|
4mr1d71k432jt9sddyoy2oq7jvc1bm... |
correct output |
---|
mrddmrddkkjtjtjtjtjtjtjtjtkkjt... |
user output |
---|
mr1dmr1d1k432jt1k432jtsddyoy2o... Truncated |
Test 11
Group: 2
Verdict: WRONG ANSWER
input |
---|
1a1l1m1a1t1gc1yv1x1p1w1x1d1d1p... |
correct output |
---|
aallmmaattggcyyvxxppwwxxddddpp... |
user output |
---|
aallmmaattggcyyvxxppwwxxddddpp... Truncated |
Test 12
Group: 2
Verdict: WRONG ANSWER
input |
---|
321e321b321a321r321m321f321s32... |
correct output |
---|
eeeeeeeebbbbbbbbaaaaaaaarrrrrr... |
user output |
---|
21e21e21b21b21a21a21r21r21m21m... Truncated |
Test 13
Group: 2
Verdict: WRONG ANSWER
input |
---|
4321e4321l4321t4321w4321g4321c... |
correct output |
---|
eeeeeeeeeeeeeeeellllllllllllll... |
user output |
---|
321e321e321l321l321t321t321w32... Truncated |
Test 14
Group: 2
Verdict: WRONG ANSWER
input |
---|
987654321u987654321p987654321g... |
correct output |
---|
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuu... |
user output |
---|
87654321u87654321u87654321p876... Truncated |