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

  Рет қаралды 481

NICspy

NICspy

Күн бұрын

A. Maximize? || B. Prefiquence || C. Assembly via Remainders || D. Permutation Game || E. Cells Arrangement
contest URL: codeforces.com...
Contact me:-
LinkedIn - / swapnil-tayal-53a5b4221
Instagram - / swapnil_tayal
#codeforces #cp #cpp #educational #EducationalCodeforces #div3 #div2 #codeforcessolutions #editorial #educational #Codeforces943 #943

Пікірлер: 9
@sabaokangan
@sabaokangan 6 ай бұрын
Thank you so much for sharing with us ❤ from New York
@nicspyy
@nicspyy 6 ай бұрын
ohh !! video reached new york, ✌️ welcome
@nicspyy
@nicspyy 6 ай бұрын
B solution: void solve(){ int n,m; cin>>n>>m; string a,b; cin>>a>>b; int j=0; int k=0; for(int i=0; iind2; ind2--; ind1--; vi a(n), v(n); forn(i,0,n){ cin>>v[i]; v[i]--; } forn(i,0,n) cin>>a[i]; vi b, s, vb(n), vs(n); while(!vs[ind2]){ s.push_back(a[ind2]); vs[ind2] = true; ind2 = v[ind2]; } while(!vb[ind1]){ b.push_back(a[ind1]); vb[ind1] = true; ind1 = v[ind1]; } int sb = 0; int sc = 0; int csb = 0; int csc = 0; for(int i=0; i
@ayushgaur235
@ayushgaur235 6 ай бұрын
in problem A simply print input-1 and it will work
@nicspyy
@nicspyy 6 ай бұрын
Your task is to find any integer y (1 ≤ y < x), then how -1?
@mayankrohilla4105
@mayankrohilla4105 6 ай бұрын
@@nicspyy the answer will be n-1, not -1
@nicspyy
@nicspyy 6 ай бұрын
@@mayankrohilla4105 ohh !! that also works great
@Now_I_am_all_fired_up
@Now_I_am_all_fired_up 6 ай бұрын
Expected Rating of D ... ?
@nicspyy
@nicspyy 6 ай бұрын
1300 - 1400 most probaly
Codeforces Round 945 (Div. 2) || Editorial for Problem A,B,C
33:22
Codeforces Round 958 (Div. 2) || Editorial for Problem A,B,C
22:01
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 11 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,8 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 66 МЛН
Codeforces Round 936 (Div 2) | Video Solutions - A to E | by Gaurish Baliga | TLE Eliminators
2:24:47
Codeforces Round 943 (Div 3) | Video Solutions - A to G1 | by Viraj Chandra | TLE Eliminators
2:04:35
Codeforces Round 959 (Div. 1 + Div. 2) A to E - Arabic
18:06
mostafa swefy
Рет қаралды 505
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,2 МЛН
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 11 МЛН