We invite you to participate in CodeChef’s Starters 28, this Wednesday, 2nd March, rated for Div 2, 3 & 4 Coders.
Time: 8 PM — 11:00 PM IST
Joining me on the problem setting panel are:
Contest Admins: Utkarsh Utkarsh.25dec Gupta, Daanish Mahajan
Setters: Utkarsh Utkarsh.25dec Gupta, Srikkanth srikkanthr R, Daanish Mahajan, Manuj DarkSparkle Nanthan, Satyam satyam343, Vishesh vishesh312 Saraswat, Nandeesh nandyboy Gupta
Testers: Abhinav abhinavvv306 Sharma, Manan mexomerf Grover
Statement Verifier: Nishank IceKnight1093 Suresh
Editorialist: Lavish lavish315 Gupta
The video editorials of the problems will be available on our YouTube channel as soon as the contest ends. Subscribe to get notifications about our new editorials.
Also, if you have some original and engaging problem ideas, and you’re interested in them being used in CodeChef's contests, you can share them here.
Hope to see you participating. Good Luck!
Reminder: Contest starts in 25 minutes
Lmao, I solved CNTFRAC by calculating number of solutions to $$$wz + xy = kxz$$$ (took around 500s) and then store the answer in an array.
Lol nice one :D
In problem travelling in graph can someone help why my approach is wrong I use dsu and checking maximum node from 1 node components and adding necessary nodes till n and 1 are in same components.simlary from nth node
include<bits/stdc++.h>
using namespace std;
define int long long
define all(xs) xs.begin(), xs.end()
define make_unique(x) sort(all((x))); (x).resize(unique(all((x))) — (x).begin())
map<int, int> mp; map<int, int> mp2; struct D {
};
signed main() { ios::sync_with_stdio(false); cin.tie(0); int t; cin >> t; while (t--) { mp.clear(); mp2.clear(); int n; cin >> n; D obj(n); int m; cin >> m; vector<pair<int, int>> tt; for (int i = 0; i < m; i++) { int u, v; cin >> u >> v; tt.emplace_back(u , v); obj.merge(u , v); } if (obj.find(1) == obj.find(n)) { cout << 0 << "\n"; continue ; }
// cout << mx
}