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

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


გაგზავნის თარიღი: 07.05.2019 04:03:07

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

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

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

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







#include <bits/stdc++.h>
using namespace std;
int main(){
    string s;
    cin>>s;
    for(int i=0;i<s.length();i++){
        if(isdigit(s[i])==false){
            cout<<s[i];
        }
        else{
            for(int z=0;z<s[i]-'0';z++){
                cout<<s[i+1];
            }
        }
    }
    
}

ტესტები

შემავალი მონაცემები
ABC
გამომავალი მონაცემები
ABC
თქვენი პასუხი
ABC
ჩეკერის პასუხი
YES
შემავალი მონაცემები
Z
გამომავალი მონაცემები
Z
თქვენი პასუხი
Z
ჩეკერის პასუხი
YES
შემავალი მონაცემები
O2A3O2AO
გამომავალი მონაცემები
OAAOOOAAO
თქვენი პასუხი
OAAAOOOOAAAO
ჩეკერის პასუხი
NO
შემავალი მონაცემები
A2B3C4D5E6F7G
გამომავალი მონაცემები
ABBCCCDDDDEEEEEFFFFFFGGGGGGG
თქვენი პასუხი
ABBBCCCCDDDDDEEEEEEFFFFFFFGGGGGGGG
ჩეკერის პასუხი
NO
შემავალი მონაცემები
2A
გამომავალი მონაცემები
AA
თქვენი პასუხი
AAA
ჩეკერის პასუხი
NO
შემავალი მონაცემები
ZYXWVUTSRQPONMLKJIHGFEDCBA
გამომავალი მონაცემები
ZYXWVUTSRQPONMLKJIHGFEDCBA
თქვენი პასუხი
ZYXWVUTSRQPONMLKJIHGFEDCBA
ჩეკერის პასუხი
YES
შემავალი მონაცემები
ZYXWVUTSRQPONMLKJIHGFEDCBAABCDEFGHIJKLMNOPQRSTUVWXYZ
გამომავალი მონაცემები
ZYXWVUTSRQPONMLKJIHGFEDCBAABCDEFGHIJKLMNOPQRSTUVWXYZ
თქვენი პასუხი
ZYXWVUTSRQPONMLKJIHGFEDCBAABCDEFGHIJKLMNOPQRSTUVWXYZ
ჩეკერის პასუხი
YES
შემავალი მონაცემები
49Z48Y47X46W45V44U43T42S41R40Q39P38O37N36M30G29F28E27D26C25B24AABCDEFG
გამომავალი მონაცემები
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEEEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDCCCCCCCCCCCCCCCCCCCCCCCCCCBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAABCDEFG
თქვენი პასუხი
9999ZZZZZZZZZZ8888YYYYYYYYY7777XXXXXXXX6666WWWWWWW5555VVVVVV4444UUUUU3333TTTT2222SSS1111RR0000Q999PPPPPPPPPP888OOOOOOOOO777NNNNNNNN666MMMMMMM000G99FFFFFFFFFF88EEEEEEEEE77DDDDDDDD66CCCCCCC55BBBBBB44AAAAAABCDEFG
ჩეკერის პასუხი
NO
შემავალი მონაცემები
4W9H8J7H7E3D3B3Y3G9V6H9Z9N8O9I7P2A2H2I8A9QQ9E7Z8M9K2G4L4V8H6UX4D2R7T4H5H4L4M2XCJ
გამომავალი მონაცემები
WWWWHHHHHHHHHJJJJJJJJHHHHHHHEEEEEEEDDDBBBYYYGGGVVVVVVVVVHHHHHHZZZZZZZZZNNNNNNNNNOOOOOOOOIIIIIIIIIPPPPPPPAAHHIIAAAAAAAAQQQQQQQQQQEEEEEEEEEZZZZZZZMMMMMMMMKKKKKKKKKGGLLLLVVVVHHHHHHHHUUUUUUXDDDDRRTTTTTTTHHHHHHHHHLLLLMMMMXXCJ
თქვენი პასუხი
WWWWWHHHHHHHHHHJJJJJJJJJHHHHHHHHEEEEEEEEDDDDBBBBYYYYGGGGVVVVVVVVVVHHHHHHHZZZZZZZZZZNNNNNNNNNNOOOOOOOOOIIIIIIIIIIPPPPPPPPAAAHHHIIIAAAAAAAAAQQQQQQQQQQQEEEEEEEEEEZZZZZZZZMMMMMMMMMKKKKKKKKKKGGGLLLLLVVVVVHHHHHHHHHUUUUUUUXDDDDDRRRTTTTTTTTHHHHHHHHHHHLLLLLMMMMMXXXCJ
ჩეკერის პასუხი
NO
შემავალი მონაცემები
60G42V68P34U62H4P29F34C38G82X3X96V34I55B45G40G77I75D57T95D80T37M7W47A10O57N94EWA
გამომავალი მონაცემები
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH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EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEWA
თქვენი პასუხი
000000G2222VVV888888PPPPPPPPP444UUUUU222222HHHPPPPP99FFFFFFFFFF444CCCCC888GGGGGGGGG22222222XXXXXXX666666666VVVVVVV444IIIII55555BBBBBB5555GGGGGG0000G7777777IIIIIIII5555555DDDDDD77777TTTTTTTT555555555DDDDDD00000000T777MMMMMMMMWWWWWWWW7777AAAAAAAA0O77777NNNNNNNN444444444EEEEEWA
ჩეკერის პასუხი
NO
შემავალი მონაცემები
82V84M76A74P98Y97A74W56N74E86T88V72I58I63L72W59R87Q80R51E55W94E59J83P77Z88I84JXE
გამომავალი მონაცემები
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN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PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJXE
თქვენი პასუხი
22222222VVV44444444MMMMM6666666AAAAAAA4444444PPPPP888888888YYYYYYYYY777777777AAAAAAAA4444444WWWWW66666NNNNNNN4444444EEEEE66666666TTTTTTT88888888VVVVVVVVV2222222III88888IIIIIIIII333333LLLL2222222WWW99999RRRRRRRRRR77777777QQQQQQQQ00000000R11111EE55555WWWWWW444444444EEEEE99999JJJJJJJJJJ33333333PPPP7777777ZZZZZZZZ88888888IIIIIIIII44444444JJJJJXE
ჩეკერის პასუხი
NO
შემავალი მონაცემები
99N99Q99U99A99M99O99S99N99E99R99V99Y99U99R99U99N99S99P99V99Q99Y99K99F99Q99A99GXG
გამომავალი მონაცემები
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGXG
თქვენი პასუხი
999999999NNNNNNNNNN999999999QQQQQQQQQQ999999999UUUUUUUUUU999999999AAAAAAAAAA999999999MMMMMMMMMM999999999OOOOOOOOOO999999999SSSSSSSSSS999999999NNNNNNNNNN999999999EEEEEEEEEE999999999RRRRRRRRRR999999999VVVVVVVVVV999999999YYYYYYYYYY999999999UUUUUUUUUU999999999RRRRRRRRRR999999999UUUUUUUUUU999999999NNNNNNNNNN999999999SSSSSSSSSS999999999PPPPPPPPPP999999999VVVVVVVVVV999999999QQQQQQQQQQ999999999YYYYYYYYYY999999999KKKKKKKKKK999999999FFFFFFFFFF999999999QQQQQQQQQQ999999999AAAAAAAAAA999999999GGGGGGGGGGXG
ჩეკერის პასუხი
NO