# Codeforces Round #379 (Div. 2)

/Tag: Codeforces Round #379 (Div. 2)

## Codeforces Round #379 (Div. 2), problem: (F) Anton and School Solution in C/C++

By |2017-04-07T22:11:49+06:00November 16th, 2016|Categories: C/C++, Programming||

Hey guys I just tried the Anton and School problem , hope you might like my solution feel free to comment better solution .   #include <stdio.h> #define N 200000 #define B 30 int main() { int i, j, n; long long sum; static [...]

## CodeForces Round #379 (Div. 2), problem: (E) Anton and Tree Solution in C/C++

By |2017-04-07T22:11:50+06:00November 16th, 2016|Categories: C/C++, Programming||

Hey guys I just tried the Anton and Tree problem , hope you might like my solution feel free to comment better solution .   #include<stdio.h> #include<stdlib.h> typedef unsigned u; u D[222222],C[222222],B[222222],A[222222],I; u F(u x){if(D[x]!=x)return D[x]=F(D[x]);return x;} u *G[222222],Ga[222222],Gi[222222]; void add(u i,u j) { [...]

## Codeforces Round #379 (Div. 2), problem: (D) Anton and Chess Solution in C

By |2017-04-07T22:11:50+06:00November 16th, 2016|Categories: C/C++, Programming||

Hey guys I just tried the Anton and Chess problem , hope you might like my solution feel free to comment better solution . #include #include typedef unsigned u; u F(u a,u b){return(b>=a)+(b>a);} char C[3][3],c[3];u D[3][3]; int main() { u q,x,y,a,b,dx,dy,dz,i,j; for(i=-1;++i

## Codeforces Round #379 (Div. 2), problem: (C) Anton and Making Potions Solution in C

By |2017-04-07T22:11:50+06:00November 16th, 2016|Categories: C/C++, Programming||

Hey guys I just tried the Anton and Making Potions problem , hope you might like my solution feel free to comment better solution . #include #define N 200000 struct type2 { int c, d; } yy[N]; int binsearch(struct type2 *yy, int x, int [...]

## Codeforces Round #379 (Div. 2), problem: (A) Anton and Danik Solution in C/C++

By |2016-11-15T17:39:27+06:00November 16th, 2016|Categories: C/C++||

Hey guys I just tried the Anton and Danik problem , hope you might like my solution feel free to comment better solution . #include using namespace std; int main() { int n, a, d, i; string s; cin>>n>>s; a=0; d=0; for(i=0; id) cout

## Codeforces Round #379 (Div. 2), problem: (B) Anton and Digits Solution In C/C++

By |2017-04-07T22:11:50+06:00November 16th, 2016|Categories: C/C++, Programming||

Hey guys I just tried the anton and digits problem , hope you might like my solution feel free to comment better solution . #include<bits/stdc++.h> using namespace std; int main() { long long int two, thr, fv, sx,ans, Min; ans=0; cin>>two>>thr>>fv>>sx; Min = two; [...]