Sponsors

AI Startups Make Trial-and-Error...

AI Startups Are Redefining the Speed of Discovery In the...

The Fraudster Behind Steve...

The Fraudster Behind Steve Ballmer’s NBA Nightmare The intersection of...

Sim: MISI aims to...

Empowering Futures: How MISI is Building a Highly Skilled...

‘Patent BS!’: David Axelrod...

'Patent BS!' David Axelrod Slams Trump's Shutdown Blame Game...

SL Green Realty Corp...

SL Green Realty Corp (SLG) Q3 2025: Strategic Wins...

The Independent’s “Record CO₂...

Debunking the Hype: Why the Recent CO₂ "Surge" Isn't...

China vs the World:...

America Mobilizes Global Allies Against China’s Rare Earth Export...

TiVo Stops Selling DVRs,...

The End of an Era: TiVo Exits Hardware Business...

The end of retirement?...

The End of Traditional Retirement: Securing Income After 60 The...

(no subject)

Navigating Digital Peril: Key Takeaways from the RISKS Digest...

Chicago ICE raids, National...

Chicago Schools Distribute ‘Know Your Rights’ Leaflets Amidst Heightened...

The Future Of Sustainable...

Revolutionizing Sustainability: How CLEANR and Worldly Axion are Reshaping...

Advertisement

Kim Kardashian Apologizes After Defending Jeffree Star: ‘I Feel A Bit Naive’

Kim Kardashian-West walked back previous statements she created defensive controversial beauty blogger...

FC Cincinnati Leads The Open Cup Semifinal Against The NYRB, 1-0

The stars – majors association football Commissioner Don Garber and U.S. association...

Codeforces Round #419 (Div. 2), problem: (B) Karen and Coffee Solution In C/C++

#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. 2), problem: (A) Karen and Morning Solution In C/C++

#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. 1), problem: (E) Karen and Neighborhood Solution In C/C++

#include <bits/stdc++.h> using namespace std; typedef pair<long long,long long> ii; long long n,k,i,w,res; long long m; map...

Codeforces Round #419 (Div. 1), problem: (D) Karen and Cards Solution In C/C++

#include <bits/stdc++.h> #define ll long long using namespace std; const int N = 500010; ll maxn,minn,sum; int...

Codeforces Round #419 (Div. 1), problem: (C) Karen and Supermarket Solution In C/C++

#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 t){ static int cnt=0; w=t; next=head; head=cnt; } int...

Codeforces Round #419 (Div. 1), problem: (B) Karen and Test Solution In C/C++

#include <cstdio> #include <iostream> #include <cstring> #include <cstdlib> using namespace std; #define ll long long const int N=200010; const...

Codeforces Round #419 (Div. 1), problem: (A) Karen and Game Solution In C/C++

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

Codeforces Round #420 (Div. 2), problem: (E) Okabe and El Psy Kongroo Solution In C/C++

#include <stdio.h> #define m 1000000007u typedef long long unsigned llu; typedef unsigned u; u M; u X,Y,*A,*B,*C; int...

Codeforces Round #420 (Div. 2), problem: (D) Okabe and City Solution In C/C++

#include<iostream> #include<cstdio> #include<cstring> #include<queue> #include<cmath> using namespace std; const int maxn=1e4+5; const int inf=0x7f7f7f7f; int x,y,dis; bool vis; int k,n,m; int bfs() { queue<int>q; q.push(1); //memset //for(int i=1;i<=n;i++)dis=inf; memset(dis,0x7f,sizeof...

Codeforces Round #420 (Div. 2), problem: (C) Okabe and Boxes Solution In C/C++

#include <cstdio> using namespace std; int n,s,top; int main() { int i,j,ans=0; char op; scanf("%d",&n); for(i=j=1;i<=2*n;++i) { scanf("%s",op); if(op=='a') scanf("%d",&s); else { if(top) { if(s==j) --top; else top=0,++ans; } ++ j; } } printf("%dn",ans); }

Sim: MISI aims to...

Empowering Futures: How MISI is Building a Highly Skilled...

‘Patent BS!’: David Axelrod...

'Patent BS!' David Axelrod Slams Trump's Shutdown Blame Game...

SL Green Realty Corp...

SL Green Realty Corp (SLG) Q3 2025: Strategic Wins...

The Independent’s “Record CO₂...

Debunking the Hype: Why the Recent CO₂ "Surge" Isn't...

China vs the World:...

America Mobilizes Global Allies Against China’s Rare Earth Export...

TiVo Stops Selling DVRs,...

The End of an Era: TiVo Exits Hardware Business...

The end of retirement?...

The End of Traditional Retirement: Securing Income After 60 The...

(no subject)

Navigating Digital Peril: Key Takeaways from the RISKS Digest...

Chicago ICE raids, National...

Chicago Schools Distribute ‘Know Your Rights’ Leaflets Amidst Heightened...

The Future Of Sustainable...

Revolutionizing Sustainability: How CLEANR and Worldly Axion are Reshaping...

Together, Power Plants and...

The Symbiotic Solution: Power Plants Fueling Global Greenhouses In the...

Regional Lenders Are Merging...

The Consolidation Wave: Why Regional Lenders Are Merging to...