let's start Code

Showing posts with label Codeforces. Show all posts
Showing posts with label Codeforces. Show all posts

2015 ACM Amman Collegiate Programming Contest ( H.Bridge)

Problem link: H. Bridges Idea:   First, find all bridges in the given graph, then remove them from the graph and find all components of the resulting graph. Consider each component as a single vertex and add the bridges again, now you have a tree where all edges are bridges (in the original graph).In the resulting tree, to make an edge...
Share:

Number of single cycle components in an undirected graph (CF-977E)

E. Cyclic Components resource হিন্টঃ প্রতিটি কম্পোনেন্ট এ চেক করবো তাদের প্রত্যেকটি নোডের ডিগ্রি দুই কিনা, যদি দুই হয় তাইলে সেটা একটা সিঙ্গেল সাইকেল কম্পোনেন্ট। This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears...
Share:

F1. Tree Cutting (Easy Version

F1. Tree Cutting (Easy Version) Topic: DFS Concept: প্রতিটা প্যারেন্ট এর চাইল্ড কোন কোন কালার আছে তার হিসাব রাখবো, যেমন প্রথম উদাহরনে - ১ নং নোডের চাইল্ড এর সংখ্যা হবে ১টা লাল, ২টা নীল , ১টা নরমাল। ২ নং নোডের চাইল্ড এর সংখ্যা হবে ১টা লাল, ১টা নীল , ২টা নরমাল। ৩ নং এর ১টা নরমাল (নিজের কালার)। ৪ নং নোডের চাইল্ড এর সংখ্যা হবে ১টা লাল ( এইটা বাদ...
Share:

C. Connect

C. Connect Topic: BFS, Flood Fill, DFS This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional...
Share:

B. F1 Champions

B. F1 Champions operatopr overloading conecpt  Solution 01: help from rng_58 //copy 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 #include<bits/stdc++.h> using...
Share:

About

let's start CODE

Popular Posts

Labels

Categories