Sponsors

C/C++

Codeforces Round #429 (Div....

#include<cstdio> using namespace std; const int MAXN = 300000+5; const int MAXE...

Codeforces Round #429 (Div....

#include<bits/stdc++.h> using namespace std; int main(){ std::ios::sync_with_stdio(false); int m; cin>>m; int a,b; for(int i=0;i<m;i++) cin>>a; vector<pair<int,int> >br(m); for(int i=0;i<m;i++){ cin>>b; br=make_pair(b,i); } sort(a,a+m); int...

Codeforces Round #429 (Div....

#include<cstdio> int main() { int n;int t;scanf("%d",&n); for(int i=1;i<=n;i++) {scanf("%d",&t); if(t%2) { printf("First"); return 0; } } printf("Second"); return 0; }

Codeforces Round #429 (Div....

#include<iostream> using namespace std; int i,j,n,k,a; string s; main(){ for(cin>>n>>k>>s;i<s.size();)a-'a']++; for(i=0;j<26;)a>k?i=1:0; cout<<(i?"NOn":"YESn"); }

Codeforces Round #419 (Div....

#include <bits/stdc++.h> using namespace std; const int N=200007; int n,k,q,a,b,p,c,i; int main(){ cin>>n>>k>>q; for(i=0;i<n;i++)cin>>a>>b,p++,p--; for(i=1;i<N;i++)p+=p,c+=c+(p>=k); for(i=0;i<q;i++){cin>>a>>b;cout<<c-c<<'n'; } }

Codeforces Round #419 (Div....

#include<bits/stdc++.h> int m,s,t; int main(){ t=0; scanf("%d:%d",&m,&s); while(m/10+m%10*10!=s){ s++,t++; if(s>59)m++,s=0; if(m>23)m=0; } printf("%dn",t); }

Codeforces Round #419 (Div....

#include <bits/stdc++.h> using namespace std; typedef pair<long long,long long> ii; long long...

Codeforces Round #419 (Div....

#include <bits/stdc++.h> #define ll long long using namespace std; const int N...

Codeforces Round #419 (Div....

#include<cstdio> #include<algorithm> #include<queue> using namespace std; const int N=5010; int n,m,c,d,fa; int w,head,next; void add(int f,int...

Codeforces Round #419 (Div....

#include <cstdio> #include <iostream> #include <cstring> #include <cstdlib> using namespace std; #define ll long...

Codeforces Round #419 (Div....

#include <bits/stdc++.h> #define inf 0x3f3f3f3f #define rep(i, n) for (int i...

Codeforces Round #420 (Div....

#include <stdio.h> #define m 1000000007u typedef long long unsigned llu; typedef unsigned...

Explore more titles

AL East Injury Notes: Yesavage, Springer, Holliday, Uceta

AL East Injury Crisis: Key Updates on Springer, Holliday, and Yesavage The American League East has long been regarded as the most grueling division in...

Hacks Recap: New York or Nowhere

Hacks Recap: Deborah Vance and the Little Debbies Take on New York The latest episode of Hacks, titled "New York or Nowhere," brings a fresh...

Why is Tesla Up $28

Understanding the Recent $28 Surge in Tesla StockTesla investors have plenty to celebrate as the company’s stock recently witnessed a significant $28 jump. This...

Candace Owens Responds to Erika Kirk Pulling Out of Event With VP JD Vance

Candace Owens Criticizes Erika Kirk Over TPUSA Event Cancellation The political commentary landscape is heating up following a public disagreement between two prominent figures. Candace...

Passive component demand splits in 2026; AI and autos hold firm

The Shift in Passive Component Demand: AI and Automotive Drive 2026 Growth As we approach 2026, the global passive components sector is witnessing a significant...

Cuba’s president warns US against attacking island or trying to depose him

Cuba's President Issues Stern Warning to United States Over Regime Change Threats In a recent and forceful address, Cuban President Miguel Diaz-Canel has sent a...

Samsung’s compact speakers bring wireless home theater sound anywhere

Samsung Redefines Home Audio with Compact Wireless Speakers Samsung has officially released its highly anticipated line of compact lifestyle speakers, bringing a new level of...

Bihar hostel horror: Canteen guard held for rape, murder of minor student, ‘claims he acted to defame institution’

Shocking Incident: Bihar Hostel Guard Arrested for Murder and Rape of MinorIn a chilling turn of events that has sparked widespread outrage across the...

A Harry Potter Star’s Lowest Rated Movie Just Became Free to Stream

The Post-Potter Evolution of Daniel Radcliffe For most of the world, Daniel Radcliffe will always be the boy with the lightning-shaped scar. For over a...

Advertisement