Sponsors

Tag: C Programming

Playrix Codescapes Cup (Codeforces...

#include <bits/stdc++.h> using namespace std; typedef int64_t ll; #define f(i,j,k) for(int i=j;i<k;i++) const...

Playrix Codescapes Cup (Codeforces...

#include <iostream> #include <algorithm> #include <vector> using namespace std; int n, c, d; int...

Playrix Codescapes Cup (Codeforces...

from heapq import heappush, heappop n = input() p = map(int,...

Playrix Codescapes Cup (Codeforces...

main(n,t,k,d){scanf("%d%d%d%d",&n,&t,&k,&d);puts(d<(n-1)/k*t?"YES":"NO");}

Codeforces Round #412 (rated,...

#include<bits/stdc++.h> #define ll long long ll multmod(ll a, ll b, ll...

Codeforces Round #412 (rated,...

import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.util.StringTokenizer; public class...

Codeforces Round #412 (rated,...

#include<bits/stdc++.h> using namespace std; int n; long long a; int check(int x){ int i,j,res,ress,t,sum; long...

Codeforces Round #412 (rated,...

#include<bits/stdc++.h> using namespace std; int a; int cnt; int n; int getsc(int id, bool...

Codeforces Round #412 (rated,...

#include <bits/stdc++.h> using namespace std; int p,x,y,i; int luc(int s){ s = (s/50)%475; for...

Codeforces Round #412 (rated,...

#include <iostream> using namespace std; int n,i,a,a1,b,f; string s={"maybe","unrated","rated"}; int main(){ cin>>n; for(;i<n;i++){ cin>>a>>b; if(a!=b){f=2;break;} if(i>0&&a>a1)f=1; a1=a; } cout<<s; }

Codeforces Round #411 (Div....

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.StringTokenizer; public class...

Codeforces Round #411 (Div....

#include <stdio.h> int n; int main() { scanf("%d",&n); if(n%4>1)return printf("NOn"),0; printf("YESn"); for(int i=1;i<n;i+=4) { if(n%4)printf("%d %dn%d %dn%d %dn",i+2,n,i+2,i+3,i+3,n); else...

Advertisement

spot_img