this question is from December cook off which i have not solved till now i have thought many time how to solve it please help i am a very very noob coder question maker was 3 star on codechef when he had made this contest question and now he is 7 star but till now i haven’t solved this question please help i have recently learnnt about printing subsequences please help
https://www.codechef.com/COOK113B/problems/PRFYIT
please help anybody …
@ chhavibansal can you help in this question also please
did u read the editorial for the same?
or refer to the already submitted codesss
Yes many times it’s hard to understand the editorial from my point of view so please
Please Explain a bit in layman’s language I have understood the question but find difficulty in how to approach towards solution
for the time being try watching this
i am also trying to understand from the same
if u happen to understand just ping me
I had seen this video many times toady i understood whole answer you did nothing but said looking for it that i think gave me the courage to see it again credit goes to u also @chhavibansal
its great u understood
waise question kaffi sahi tha editorial se samjh anhi raha tha.
i`ll make the code too.
thanks for sharing the question
I am seeing this video from 3 months lol now i got it basically it uses prefix sum
noo i made it myself settters solution mae ek code mae choti si problem hai please try to resolve that
this my code link https://ide.codingblocks.com/s/220237
this one is editorial https://discuss.codechef.com/t/prfyit-editorial/46620
difference dono code mae bs itna hai ki … i took input like this
char s[1001];
int main()
{
int t;
cin>>t;
while(t--)
{
int N;
cin>>s;
int n=strlen(s);
//and editorial is like this
> char S[N];
int main() { scanf("%d", &q); for (; q; q --) { scanf("%s", &S[1]); n = strlen(S + 1);
https://ide.codingblocks.com/s/220237 please help @Ishitagambhir @chhavibansal @rishabhmahajan546 please help anyone i hope would have understood my problem i want to solve this test case using simple cin so that next time i see a contest problem similar to this i would be able to solve
scanf("%s", &S[1]);
this implies that he is inserting from position 1 and not 0
tabhi usne
for(int i = 1 ; i<=N ; i++)
chalaya h
try to modify the code in the same context
i got it thanks…