ამოხსნების სტატუსი

ამ გვერდზე თქვენ იხილავთ გაგზავნილი ამოხსნების სტატუსს.


გაგზავნის თარიღი: 07.05.2019 11:56:28

ამოცანა: სტრიქონის გაშლა

მომხმარებელი: nika31

ვერდიქტი: ამოუხსნელი

შეფასება: 0 ქულა







#include <bits/stdc++.h>
using namespace std;
int main(){
    long long b,i,k=0;
    string a;
    cin>>a;
    b=a.length();
    for(i=1;i<=b-1;i++){
            while(a[i-1]==a[i]){k++;i++;}
        if(k!=0 && a[i+1]!=a[i]){
            cout<<k<<a[i-1];
        }
        if(k==0){
            cout<<a[i-1];
        }
        k=0;
    }

    return 0;
}

ტესტები

შემავალი მონაცემები
ABC
გამომავალი მონაცემები
ABC
თქვენი პასუხი
AB
ჩეკერის პასუხი
NO
შემავალი მონაცემები
Z
გამომავალი მონაცემები
Z
თქვენი პასუხი

                    
ჩეკერის პასუხი
NO
შემავალი მონაცემები
O2A3O2AO
გამომავალი მონაცემები
OAAOOOAAO
თქვენი პასუხი
O2A3O2A
ჩეკერის პასუხი
NO
შემავალი მონაცემები
A2B3C4D5E6F7G
გამომავალი მონაცემები
ABBCCCDDDDEEEEEFFFFFFGGGGGGG
თქვენი პასუხი
A2B3C4D5E6F7
ჩეკერის პასუხი
NO
შემავალი მონაცემები
2A
გამომავალი მონაცემები
AA
თქვენი პასუხი
2
ჩეკერის პასუხი
NO
შემავალი მონაცემები
ZYXWVUTSRQPONMLKJIHGFEDCBA
გამომავალი მონაცემები
ZYXWVUTSRQPONMLKJIHGFEDCBA
თქვენი პასუხი
ZYXWVUTSRQPONMLKJIHGFEDCB
ჩეკერის პასუხი
NO
შემავალი მონაცემები
ZYXWVUTSRQPONMLKJIHGFEDCBAABCDEFGHIJKLMNOPQRSTUVWXYZ
გამომავალი მონაცემები
ZYXWVUTSRQPONMLKJIHGFEDCBAABCDEFGHIJKLMNOPQRSTUVWXYZ
თქვენი პასუხი
ZYXWVUTSRQPONMLKJIHGFEDCB1ABCDEFGHIJKLMNOPQRSTUVWXY
ჩეკერის პასუხი
NO
შემავალი მონაცემები
49Z48Y47X46W45V44U43T42S41R40Q39P38O37N36M30G29F28E27D26C25B24AABCDEFG
გამომავალი მონაცემები
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEEEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDCCCCCCCCCCCCCCCCCCCCCCCCCCBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAABCDEFG
თქვენი პასუხი
49Z48Y47X46W45V14U43T42S41R40Q39P38O37N36M30G29F28E27D26C25B241ABCDEF
ჩეკერის პასუხი
NO
შემავალი მონაცემები
4W9H8J7H7E3D3B3Y3G9V6H9Z9N8O9I7P2A2H2I8A9QQ9E7Z8M9K2G4L4V8H6UX4D2R7T4H5H4L4M2XCJ
გამომავალი მონაცემები
WWWWHHHHHHHHHJJJJJJJJHHHHHHHEEEEEEEDDDBBBYYYGGGVVVVVVVVVHHHHHHZZZZZZZZZNNNNNNNNNOOOOOOOOIIIIIIIIIPPPPPPPAAHHIIAAAAAAAAQQQQQQQQQQEEEEEEEEEZZZZZZZMMMMMMMMKKKKKKKKKGGLLLLVVVVHHHHHHHHUUUUUUXDDDDRRTTTTTTTHHHHHHHHHLLLLMMMMXXCJ
თქვენი პასუხი
4W9H8J7H7E3D3B3Y3G9V6H9Z9N8O9I7P2A2H2I8A91Q9E7Z8M9K2G4L4V8H6UX4D2R7T4H5H4L4M2XC
ჩეკერის პასუხი
NO
შემავალი მონაცემები
60G42V68P34U62H4P29F34C38G82X3X96V34I55B45G40G77I75D57T95D80T37M7W47A10O57N94EWA
გამომავალი მონაცემები
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHPPPPFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEWA
თქვენი პასუხი
60G42V68P34U62H4P29F34C38G82X3X96V34I15B45G40G17I75D57T95D80T37M7W47A10O57N94EW
ჩეკერის პასუხი
NO
შემავალი მონაცემები
82V84M76A74P98Y97A74W56N74E86T88V72I58I63L72W59R87Q80R51E55W94E59J83P77Z88I84JXE
გამომავალი მონაცემები
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV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LLLLLLLLLLLLWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRREEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJXE
თქვენი პასუხი
82V84M76A74P98Y97A74W56N74E86T18V72I58I63L72W59R87Q80R51E15W94E59J83P17Z18I84JX
ჩეკერის პასუხი
NO
შემავალი მონაცემები
99N99Q99U99A99M99O99S99N99E99R99V99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