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 #411 (Div. 2), problem: (C) Find Amir Solution In C/C++

#include<iostream> main(){int n;std::cin>>n;std::cout<<(n-1)/2;}

Codeforces Round #411 (Div. 2), problem: (B) 3-palindrome Solution In C/C++

#include <cstdio> int n; int main (){ scanf("%d", &n); for (int i = 0; i <...

Codeforces Round #411 (Div. 2), problem: (A) Fake NP Solution In C/C++

#include <iostream> int l,r; int main() { std::cin>>l>>r; std::cout<<(l==r ? l:2); return 0; }

Codeforces Round #410 (Div. 2), problem: (E) Mike and code of a permutation Solution In C/C++

#pragma warning(disable:4996) #include <stdio.h> #include <iostream> #include <iomanip> #include <vector> #include <algorithm> #include <string.h> #include <stdlib.h> #include <assert.h> #include <cmath> #include <map> #include...

Codeforces Round #410 (Div. 2), problem: (D) Mike and distribution Solution In C/C++

#include<bits/stdc++.h> using namespace std; const int maxn=100000+10; int b,n,flag=1,dp; struct node { int id,x; }a; int cmp(node a,node b) { return a.x>b.x; } int...

Codeforces Round #410 (Div. 2), problem: (C) Mike and gcd problem Solution In C/C++

#include <bits/stdc++.h> using namespace std; int main(){ int n, num = 0, x, sum =...

Codeforces Round #410 (Div. 2), problem: (B) Mike and strings Solution In C/C++

#include <bits/stdc++.h> using namespace std; string s; int main() { int n, t, ans; ans = INT_MAX; cin>>n; string temp; for(int...

Codeforces Round #410 (Div. 2), problem: (A) Mike and palindrome Solution In C/C++

#include<iostream> using namespace std; main() { string s;cin>>s; int n=s.size(),cnt=0; for(int i=0;i<n/2;i++) { if(s!=s)cnt++; } cout<<(cnt==1||cnt==0&&n%2==1?"YES":"NO")<<endl; }

Codeforces Round #409 (rated, Div. 1, based on VK Cup 2017 Round 2), problem: (E) Verifying Kingdom Solution In C/C++

#include<cstdio> #include<cstring> #include<algorithm> #include<cctype> #include<ctime> #include<cstdlib> #include<string> #include<queue> #include<cmath> #include<set> #include<map> #include<bitset> #include<vector> #define rep(x,a,b) for (int x=int(a);x<=(int)(b);x++) #define drp(x,a,b) for (int x=int(a);x>=(int)(b);x--) #define cross(x,a) for (int...

Codeforces Round #409 (rated, Div. 1, based on VK Cup 2017 Round 2), problem: (D) Varying Kibibits Solution In C/C++

#include <bits/stdc++.h> #define MAXN (1000000) #define MAXM (6) #define mod (1000000007) #define ll long long int n; int...

Codeforces Round #409 (rated, Div. 2, based on VK Cup 2017 Round 2), problem: (E) Vulnerable Kerbals Solution in JAVA

import java.util.ArrayList; import java.util.Scanner; /* 4 10 2 4 6 8 4 10 2 9 1 0 */ public class...

Codeforces Round #409 (rated, Div. 2, based on VK Cup 2017 Round 2), problem: (D) Volatile Kite Solution In C/C++

#include<cstdio> #include<cstdlib> #include<cmath> #include<algorithm> #include<cstring> using namespace std; #define maxn 1005 int x,y; int n; long long area(int i) { int j=(i-1+n)%n,k=(i+1)%n; long long...

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...