चैनल का पता:
श्रेणियाँ:
काम
भाषा: हिंदी
ग्राहकों:
32.58K
चैनल से विवरण
For Jobs, internship and coding contests updates :- https://t.me/placementlelo
If you want any other exam answers for free
Contact us :- @exam_cheating_bot
Collaborations/ Paid Promotions:
Contact - @growth_admin
Ratings & Reviews
Reviews can be left only by registered users. All reviews are moderated by admins.
5 stars
0
4 stars
0
3 stars
0
2 stars
1
1 stars
1
नवीनतम संदेश
2024-03-17 08:00:15
Infosys Exam Answers Group https://telegram.me/+njYA5MfMVcs5OTRl
13.2K viewsedited 05:00
2024-02-18 16:57:54
Add Volunteer Experience to your Resume: Who should apply: If you are a Student Placement Coordinator / you have a good network (connections) in your college
Graduation Year: 2024 / 2025 / 2026 / 2027
Volunteer Certificate will be provided Apply Now: https://forms.gle/5hw1t9gboRQBeiZd8
Apply Only if you are seriously interested Share this opportunity with your friends who are eligible
14.0K views13:57
2024-01-21 15:55:14
C++
Lots of Trees
Infosys
https://telegram.me/PLACEMENTLELO
21.9K views12:55
2024-01-21 15:53:04
C++Good Edges
Infosyshttps://telegram.me/+19mMyesoV7llODI1
#include
using namespace std;
const int N=500005;
typedef long long ll;
int T,n,k,t,h[N];
ll dp[N][2];
struct edge{
int ver,net;
ll val;
}f[N*2];
void add(int x,int y,int z){
f[++t].net=h[x];
h[x]=t,f[t].ver=y;
f[t].val=z;
}
void dfs(int x,int fa){
dp[x][0]=dp[x][1]=0;
priority_queue q;
for(int i=h[x];i;i=f[i].net){
int y=f[i].ver;
if(y==fa) continue;
dfs(y,x);
dp[x][0]+=dp[y][0];
q.push(dp[y][1]+f[i].val-dp[y][0]);
}
dp[x][1]=dp[x][0];
int p=k;
while(p--&&q.size()&&q.top()>0){
if(p) dp[x][1]+=q.top();
dp[x][0]+=q.top();
q.pop();
}
}
int main(){
scanf("%d",&T);
while(T--){
int x,y,z;t=0;
scanf("%d%d",&n,&k);
for(int i=1;i scanf("%d%d%d",&x,&y,&z);
add(x,y,z),add(y,x,z);
}
dfs(1,0);
printf("%lld\n",dp[1][0]);
for(int i=1;i<=n;++i) h[i]=0,dp[i][0]=dp[i][1]=0;
}
return 0;
}
C++
Good Edges
Infosys
https://telegram.me/+19mMyesoV7llODI1
17.0K views12:53
2024-01-14 16:13:38
Meesho Screening Test Study Material
39.4K views13:13
2024-01-14 16:09:39
Latest Off-Campus Jobs and Internships are Uploaded regularly here 1. https://telegram.me/PLACEMENTLELO
2. https://telegram.me/OFF_CAMPUS_JOBS_AND_INTERNSHIPS
Must Join
28.8K views13:09
2024-01-13 17:50:42
Meesho Questions PDF
This is only for reference,everyone will get different questions.
46.6K viewsedited 14:50
2024-01-13 17:02:56
Meesho Exam Questions with Answers along with Candidate Experience.
You can use this as an example of how questions will come and you have to answer.
You might get different questions other than these so prepare accordingly.
https://telegram.me/PLACEMENTLELO
32.6K views14:02