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

  Рет қаралды 591

NICspy

NICspy

Күн бұрын

A. Phone Desktop || B. Symmetric Encoding || C. Beautiful Triple Pairs || D. Ingenuity-2 || E. Money Buys Happiness
contest URL: codeforces.com...
Contact me:-
LinkedIn - / swapnil-tayal-53a5b4221
Instagram - / swapnil_tayal
#codeforces #cp #cpp #educational #EducationalCodeforces #div3 #div2 #codeforcessolutions #editorial #educational #Codeforces946 #946

Пікірлер: 10
@harshmaheriya4416
@harshmaheriya4416 4 ай бұрын
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 4 ай бұрын
does it work?, but i guess its not generalized, there are cases in which it might not work
@harshmaheriya4416
@harshmaheriya4416 4 ай бұрын
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 4 ай бұрын
@@harshmaheriya4416 thats nice, 💯
@prankershaha2978
@prankershaha2978 4 ай бұрын
Brother pelease provide me drive link of 100 day phython Course by Dr angela yuu
@nicspyy
@nicspyy 3 ай бұрын
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 4 ай бұрын
hey can you explain the second last test case of problem E
@Predator-pv7of
@Predator-pv7of 4 ай бұрын
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 3 ай бұрын
totaly forgot the context of the quesiton 🥲
@nicspyy
@nicspyy 4 ай бұрын
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
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 230 МЛН
Winning Codeforces Round 971 (Div. 4) in honor of @que_tourist
1:39:42
Crafting a Successful Career in Cloud & DevOps Domain
1:17:17
Codeforces Round 943 (Div 3) | Video Solutions - A to G1 | by Viraj Chandra | TLE Eliminators
2:04:35
INDIA WORLD CHAMPIONS!!!!!!!!!!!!!!
20:50
GothamChess
Рет қаралды 369 М.
Learn Web Development And ACTUALLY Get A Job | Ultimate Guide
1:33:52
James Cross
Рет қаралды 1,3 МЛН
first Codeforces round in 2 years (Round 973)
1:39:57
William Lin PP
Рет қаралды 18 М.
Kramnik Went Nuts | Accuses the Indian Olympiad Team
12:19
ChessPulse Hub
Рет қаралды 58 М.