Sponsors

Celebrating Black History Month:...

As February unfolds, so does the annual celebration of...

The Path to Self-Mastery:...

Embarking on a journey of self-mastery and breaking free...

Wizards of Waverly Place...

In a spellbinding announcement, Disney has officially revealed that...

Jim Irsay’s Reported ‘Suspected...

In a shocking turn of events last month, Jim...

Coachella 2024: Iconic headliners,...

Coachella Valley Music and Arts Festival, one of the...

2024 Taiwan Election: Pivotal...

As Taiwan gears up for its 2024 presidential election,...

Michael Strahan’s Daughter’s Medulloblastoma...

In a recent and heartbreaking revelation, Michael Strahan, former...

Michigan vs. Washington: The...

In a highly anticipated matchup, the 2024 National Championship...

Jason Kelce: Unmasking the...

In the world of professional football, where conformity often...

A Comprehensive Analysis of...

Boeing, a global aerospace giant, has long been a...

Unlocking Full-Stack Mastery: Web...

In the rapidly evolving landscape of technology, the demand...

Financial Fitness: Smart Money...

As we embark on a new year, it's essential...

Advertisement

Codeforces Round #408 (Div. 2), problem: (D) Police Stations Solution in C

#include <iostream> #include <string> #include <vector> #include <map> #include <queue> #include <algorithm> #include <numeric> #include <climits> using namespace std; int main(int...

Codeforces Round #408 (Div. 2), problem: (C) Bank Hacking Solution in C

#include <limits.h> #include <stdio.h> #include <stdlib.h> #define N 300000 struct E { int i, j, a; } ee; int...

Codeforces Round #408 (Div. 2), problem: (B) Find The Bone Solution in C

#include <stdio.h> #define N 1000000 int main() { static int hole; int n, m, k, i,...

Codeforces Round #408 (Div. 2), problem: (A) Buying A House Solution in C

#include<stdio.h> #include<stdlib.h> #include<math.h> #define MAX 1000000009 int main() { int i,n,m,k,min=MAX,t,temp; scanf("%d %d %d",&n,&m,&k); for(i=1;i<=n;i++) { scanf("%d",&t); if(t>0 && t<=k) { temp=abs(m-i); if(temp<min) min=temp; } } printf("%dn",(min*10)); return 0; }

April Fools Contest 2017, problem: (G) BF Calculator Solution in C/C++

#include<cstdio> int main() { int ans=0,a=0; char c; scanf("%d",&ans); while (scanf("%c%d",&c,&a) != EOF) { if (c=='+') ans+=a; if (c=='-') ans-=a; } a=0; if...

April Fools Contest 2017, problem: (F) Crunching Numbers Just for You Solution in C

#include <stdio.h> #include<algorithm> #include<time.h> using namespace std; int a; int main() { int n,i; ...

April Fools Contest 2017, problem: (D) Touchy-Feely Palindromes Solution in C

#include <stdio.h> #include <string.h> int main(){ int i, num, flag=0; char str; scanf("%s", str); num = strlen(str); if(num ==...

April Fools Contest 2017, problem: (C) INTERCALC Solution in C

#include<stdio.h> int main(){ int a, i, n, max=0; scanf("%d", &n); for(i=0; i<n; i++){ ...

April Fools Contest 2017, problem: (B) Kids’ Riddle Solution in C

#include<stdio.h> int main(void) { unsigned x, y, result = 0; scanf("%u", &x); do { y = x &...

April Fools Contest 2017, problem: (A) Numbers Joke Solution in C

#include<stdio.h> int main(void) { int mas = {4, 22, 27, 58, 85, 94, 121, 166,...

Top 10 inspirational quotes for women

Women increasingly inhabit top ranking roles in traditionally male dominated industries, lead...

Codeforces Round #407 (Div. 2), problem: (E) The Great Mixing Solution in C

#include<bits/stdc++.h> using namespace std; int n,k,f; bitset<2001> dp; int main() { cin>>n>>k; for(int i=1,t;i<=k;i++) { scanf("%d",&t); f=1; } dp=1; int now=0; for(int i=1;i<=1000;i++) { now^=1; dp.reset(); for(int j=0;j<=1000;j++) if(f)dp|=(dp<<j)>>n; if(dp) { return 0*printf("%dn",i); } } puts("-1"); return 0; }

Wizards of Waverly Place...

In a spellbinding announcement, Disney has officially revealed that...

Jim Irsay’s Reported ‘Suspected...

In a shocking turn of events last month, Jim...

Coachella 2024: Iconic headliners,...

Coachella Valley Music and Arts Festival, one of the...

2024 Taiwan Election: Pivotal...

As Taiwan gears up for its 2024 presidential election,...

Michael Strahan’s Daughter’s Medulloblastoma...

In a recent and heartbreaking revelation, Michael Strahan, former...

Michigan vs. Washington: The...

In a highly anticipated matchup, the 2024 National Championship...

Jason Kelce: Unmasking the...

In the world of professional football, where conformity often...

A Comprehensive Analysis of...

Boeing, a global aerospace giant, has long been a...

Unlocking Full-Stack Mastery: Web...

In the rapidly evolving landscape of technology, the demand...

Financial Fitness: Smart Money...

As we embark on a new year, it's essential...

Winter Skincare Essentials: Must-Have...

As winter sets in and the temperature drops, it's...

Morning Glow: DIY Beauty...

Unlocking the secret to radiant and glowing skin often...