Codeforces Round 946 (Div. 3) || Editorial for Problem A,B,C,D,E

  Рет қаралды 599

NICspy

NICspy

Күн бұрын

Пікірлер: 10
@prankershaha2978
@prankershaha2978 5 ай бұрын
Brother pelease provide me drive link of 100 day phython Course by Dr angela yuu
@nicspyy
@nicspyy 4 ай бұрын
i tried to find it, but not able to on the same source where i find previous ones, by ya will try to find, if i got hand on that course
@Predator-pv7of
@Predator-pv7of 5 ай бұрын
hey can you explain the second last test case of problem E
@Predator-pv7of
@Predator-pv7of 5 ай бұрын
Like after the five months, he will have 12 bucks in his hand, so he can buy happiness of first, second, third and fifth month, and thus the total cost will be 11 and happiness 14?
@nicspyy
@nicspyy 4 ай бұрын
totaly forgot the context of the quesiton 🥲
@harshmaheriya4416
@harshmaheriya4416 5 ай бұрын
I have a dought in question 4 Can't we just maintain balance between the position of R and H EX ; Start with origin and move the R and H like this if( s[i]=='N' ){ if( y1=y2 ){ y1--; ans+='H';} else{ y2--;ans+='R';} }else if( s[i]=='E' ){ if( x1
@nicspyy
@nicspyy 5 ай бұрын
does it work?, but i guess its not generalized, there are cases in which it might not work
@harshmaheriya4416
@harshmaheriya4416 5 ай бұрын
It worked you have to make another 2 flag for h and r moved and when x1==x2 and other case you have to move which piece is not moved yet
@nicspyy
@nicspyy 5 ай бұрын
@@harshmaheriya4416 thats nice, 💯
@nicspyy
@nicspyy 5 ай бұрын
B solution: void solve(){ int n; cin>>n; string s; cin>>s; set st; for(auto i: s){ st.insert(i); } string str = ""; for(auto i: st) str += i; // cout
Codeforces Round 948 (Div. 2) || Editorial for Problem A,B,C
17:54
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 104 МЛН
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 38 МЛН
Count GCD || Codeforces CodeTon Round 3 Problem D
24:15
Competitive Coding - Newton School
Рет қаралды 2,8 М.
Codeforces Round 959 (Div. 1 + Div. 2) A to E - Arabic
18:06
mostafa swefy
Рет қаралды 505
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН