prompt string | response string |
|---|---|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | k = int(input())
rs = set(map(int, input().split(' ')))
for i in range(25 - k):
for j in range(1, 10000000):
if j not in rs:
rs.add(j)
break
print(max(rs) - 25)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, m = 0;
cin >> n;
while (n--) cin >> d, m = max(m, d);
cout << max(0, m - 25);
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | raw_input()
print max(max(map(int, raw_input().split())) - 25, 0)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | k = int(raw_input().strip())
ranks = map(int, raw_input().strip().split(' '))
max_pos = max(ranks)
if(max_pos > 25):
print abs(25 - max_pos)
else:
print 0
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie();
bool b = false;
int k, x, c;
cin >> k;
int arr[k];
for (int i = 0; i < k; i++) {
cin >> arr[i];
}
sort(arr, arr + k);
for (int i = 0; i < k; i++) {
if (arr[i] > 25) {
b = true;
c =... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | # coding: utf-8
# MemSQL Start[c]UP3.0 - Round 1
# A - Declined Finalists (http://codeforces.com/contest/859/problem/A)
num = int(input())
last = max(map(int, input().split()))
if last <= 25: print(0)
else: print(last - 25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import sys
def solve(num, contestants):
max_rank = max(contestants)
if max_rank <= 25:
return 0
else:
return max_rank - 25
if __name__ == "__main__":
num = int(sys.stdin.readline())
contestants = map(int, sys.stdin.readline().split())
print solve(num, contestants)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
long long int i, j, k, t, q, n, m, xm, ym, ii, jj, iii, jjj, row, col, fcost,
nn, mm, co, fl;
string s, s1, s2, s3;
char c[101][101], c1;
long long int fco, eo, oo, panga, cou, oj, ojv;
map<long long, vector<pair<long long, long long>>> map1, map2, map3;
map<long long, ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(input())
ip=list(map(int,input().split()))
if max(ip)>25:
print(max(ip)-25)
else:
print(0)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
coders = sorted(list(map(int, input().split())))
first_25 = [i for i in coders if i<=25]
others = [25] + coders[len(first_25):]
current = others[0]
ans = 0
if len(coders) == 25:
print(coders[-1]-25)
else:
for i in range(1, len(others)):
ans += others[i] - others[i-1]
print(ans)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | def solution(l1):
return max(0,max(l1)-25)
def answer():
n = int(input())
l1 = [int(x) for x in input().split()]
print(solution(l1))
answer() |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... |
raw_input()
xs = map(int, raw_input().split(' '))
print max(0, max(xs) - 25)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = input()
lst = list(map(int,input().split()))
m = max(lst)
if m>25:
print(m-25)
else:
print(0) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #A
n = int(input())
a = [int(i) for i in input().split()]
a.sort()
if a[n - 1] <= 25:
print('0')
else:
print(a[n-1] - 25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | K = int(raw_input())
nums = map(int, raw_input().split())
max_num_known = max(nums)
print(max(0, max_num_known - 25)) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
print (max(max(map(int,input().split()))-25,0)) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
S = max([int(i) for i in input().split()])
if( S <= 25):
print(0)
else:
print(S-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
public class Solution {
private static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int n = sc.nextInt();
int max = 0;
for (int i = 0; i < n; i++) {
max = Math.max(max, sc.nextInt());
}
System.out.println(max <= 25 ? 0 : max - 25);
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
ai = list(map(int,input().split()))
res = True
for i in ai:
if i <= 25:
res = True
else:
res = False
break
if res == True:
print(0)
else:
print(max(ai)-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
a = list(map(int, input().split()))
print(0 if max(a) <= 25 else max(a)-25)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual soluti... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.Scanner;
public class DeclinedFInalists {
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int max = Integer.MIN_VALUE;
for(int i = 0; i < n; i++)
{
int temp = in.nextInt();
max ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
public class MemSql {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int k = sc.nex... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import sys
K = int(sys.stdin.readline())
rs = [int(x) for x in sys.stdin.readline().split()]
maxr = max(rs)
lenr = len(rs)
if maxr <= 25 :
print 0
else :
print maxr - 25
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, M = 0;
int may = 0, men = 0;
scanf("%d", &N);
int aux;
for (int i = 0; i < N; i++) {
scanf("%d", &aux);
if (aux > 25)
may++;
else
men++;
if (aux > M) M = aux;
}
int r1 = 0, r2 = 0;
if (may > 0) {
r2 = may;
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int k;
cin >> k;
vector<int> finalists;
for (int i{0}, a; i < k; ++i) {
cin >> a;
finalists.push_back(a);
}
sort(finalists.begin(), finalists.end());
if (finalists[k - 1] <= 25... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner jin = new Scanner(System.in);
int n = jin.nextInt();
int mx = 0;
for (int i=0;i<n;i++)
{
int k = jin.nextInt();
mx = (mx < k) ? k : mx;
}
mx = (mx... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import sys
n, c = [i for i in sys.stdin.read().strip().split('\n')]
n = int(n)
c = [int(i) for i in c.split()]
print(max(max(c) - 25, 0)) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = input()
s = map(int,raw_input().split())
a = 0
b = []
for i in s:
if i<=25:
a+=1
else:
b.append(i)
c = 0
if a==n:
print 0
else:
b.append(25-(n-a))
b = sorted(b)
for i in xrange(len(b)-1):
c+=b[i+1]-b[i]-1
print c
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, mx = 0;
cin >> k;
for (int i = 1; i <= k; i++) {
int x;
cin >> x;
mx = max(mx, x);
}
cout << max(0, mx - 25);
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
long long int ma = 0;
for (int i = 0; i < n; i++) {
long long int x;
cin >> x;
if (x > ma) ma = x;
}
if (ma > 25)
cout << ma - 25 << endl;
else
cout << 0 << endl;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.StringTokenizer;
public class whatever {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = ne... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(raw_input())
x=max(map(int,raw_input().split()))
print max(0,x-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
void solve(int n) {
vector<int> ranks(n, 0);
for (int &el : ranks) cin >> el;
int max_el = *max_element(ranks.begin(), ranks.end());
if (max_el <= 25) {
printf("%d\n", 0);
} else {
int dif = max_el - 25;
printf("%d\n",... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | input()
print(max(max(list(map(int, input().split()))) - 25, 0)) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | a = input()
onsite= list(map(int, input().split() ))
ans= max(0, (max(onsite) -25 ))
print(ans) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 20, S = 1e3;
const long long inf = 1e17;
int p[N], a[N], b[N], ab[S][S];
char arch[N], cbl[S][S];
vector<long long> v, g[N];
bool mark[N], bb = false;
long long n, c, c1, m, k, q, l, r, mn = inf, mx = 0, ans = 0, ans1 = 0,
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.*;
import java.util.Arrays;
import java.util.StringTokenizer;
public class Solution {
// VM options: -Xmx1024m -Xss1024m
private static String inputFilename = "input.txt";
private static String outputFilename = "output.txt";
private BufferedReader in;
private StringTokenizer line;
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int k, r[30];
int main() {
memset(r, 0, sizeof(r));
cin >> k;
for (int i = 1; i <= k; i++) cin >> r[i];
sort(r + 1, r + k + 1);
if (r[k] <= 25) {
cout << 0;
} else {
int ans = k - 25;
for (int i = 1; i <= k; i++) ans += r[i] - r[i - 1] - 1;
cout ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(input())
m=list(map(int,input().split()))
if max(m)<=25:print(0)
else:print(max(m)-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #Declined Finalists
input()
arr = list(map(int,input().split()))
m = max(arr)
print ((m-25) if m> 25 else 0) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | IL = lambda: list(map(int, input().split()))
n = int(input())
R = IL()
print(max(max(R) - 25, 0)) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, b[30], m;
while (cin >> n) {
for (int i = 0; i < n; i++) cin >> b[i];
sort(b, b + n);
if (b[n - 1] > 25)
m = b[n - 1] - 25;
else
m = 0;
cout << m << endl;
}
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(input())
a=list(map(int,input().split()))
c=[0]
for i in a:
if(i>25):
c.append(i-25)
print(max(c))
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, i, j, maxi = 0;
cin >> k;
int a[k];
for (i = 0; i < k; i++) cin >> a[i];
for (i = 0; i < k; i++) {
if (a[i] > maxi) maxi = a[i];
}
if (maxi > 25)
printf("%d", maxi - 25);
else
printf("0");
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... |
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class A implements Closeable {
private InputReader in = new InputReader(System.in);
private P... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | k = int(input())
mas = list(map(int, input().split()))
res = 0
for i in mas:
if i > 25 and (res < (i - 25)):
res = i - 25
print(res) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | """http://codeforces.com/problemset/problem/859/A"""
n = int(input())
c = map(int,input().split())
print( max(max(c) - 25, 0) )
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, maxi = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
int x;
cin >> x;
maxi = max(maxi, x);
}
cout << max(0, maxi - 25);
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int i, j, k, n, maxi = INT_MIN;
cin >> n;
for (i = 0; i < n; i++) {
cin >> j;
maxi = max(j, maxi);
}
if (maxi > 25)
cout << maxi - 25;
else
cout << 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Scanner;
public class fence {
public static void main(String[] args) {
Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
PrintWriter o= new PrintWriter(System.out);
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | kohli = input()
print max(max(map(int, raw_input().split())) - 25, 0) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan=new Scanner (System.in);
int n=scan.nextInt();
int max=Integer.MIN_VALUE;
int[] hm=new int[1000001];
for(int i=0;i<n;i++) {
int temp=scan.nextInt();
hm[temp]=1;
if(temp>max)
max=temp;
}
if(max<=25)
System.o... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, mx = 0;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> x;
mx = max(mx, x - 25);
}
cout << mx;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t = 1;
while (t--) {
int n, maxx = 0;
cin >> n;
int a[n];
for (int i = 0; i < n; ++i) {
cin >> a[i];
if (a[i] > maxx) maxx = a[i];
}
(maxx - 25) > 0 ? cout ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.*;
import java.util.*;
public class B
{
public static void main(String[] args)
{
Scanner c= new Scanner(System.in);
int K = c.nextInt();
int max = 25;
for(int i=0; i<K; i++) max = Math.max(max, c.nextInt());
System.out.println(max-25);
//31324
}
} |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<long long, long long>;
using pcc = pair<char, char>;
using pdd = pair<double, double>;
using pci = pair<char, int>;
using si = set<int>;
using s = string;
using seti = set<int>;
using useti = unordered_set<i... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
import java.io.*;
import java.math.*;
public class Main implements Runnable
{
public static void main(String args[]) throws Exception
{
new Thread(null, new Main(),"Main",1<<26).start(); //To increase recursion-stack size in java
}
public void run()
{
InputReader sc = new InputReader(Sy... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
public class DeclinedFinalists {
@SuppressWarnings("resource")
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int max = 0;
for(int i = 0; i < k; i++)
max = Math.max(max, sc.nextInt());
System.out.println(Math.max(max-25, 0));
}
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | """
██╗ ██████╗ ██╗ ██████╗ ██████╗ ██╗ █████╗
██║██╔═══██╗██║ ╚════██╗██╔═████╗███║██╔══██╗
██║██║ ██║██║ █████╔╝██║██╔██║╚██║╚██████║
██║██║ ██║██║ ██╔═══╝ ████╔╝██║ ██║ ╚═══██║
██║╚██████╔╝██║ ███████╗╚██████╔╝ ██║ █████╔╝
╚═╝ ╚═════╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚════╝
__ __ _ ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
long long int power(long long int a, long long int b) {
if (b == 0) return 1;
long long int z = power(a, b / 2);
if (b % 2) return a * z * z;
return z * z;
}
int main() {
int n;
cin >> n;
int x = 0;
for (int i = 0; i < n; i++) {
int a;
cin >> a;
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
p = list(map(int, input().split()))
a = max(p)
if a < 25:
print(0)
else:
print(a - 25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
scanf("%d", &n);
int mx = 0, res = 0;
for (int i = 1; i <= n; i++) {
int j;
cin >> j;
mx = max(j, mx);
}
if (mx > 25) {
res = mx - 25;
}
cout << res << endl;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(input())
a=[]
a=[int(i) for i in input().split()]
a.sort()
p = int(a[n-1])
if p>25:
print(p-25)
else:
print("0")
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.Scanner;
public class A {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int max = 0;
for(int i = 0; i < N; i++){
max = Math.max(max, sc.nextInt());
}
System.out.println(Math.max(0, max-25));
}
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Nirakh
*/
public class Main {
public static void main(String[] args) {
InputStream in... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | k=input()
a=map(int,raw_input().split())
ma = max(a)
if ma<=25:
print 0
else:
print ma-25 |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | __author__ = 'Alexander'
import sys
def Task(n, numbers):
elem = max(numbers)
return max(0, elem - 25)
def Main():
n = int(input().strip())
numbers = map(int, input().strip().split())
outp = Task(n, numbers)
print("{}\n".format(outp))
def Test():
#These "asserts" using only for self-check... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
//import com.sun.xml.internal.ws.util.StringUtils;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Inp... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | t=input()
a=map(int,raw_input().split())
print max(0,max(a)-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | k = int(input())
b = input().strip().split()
b = [int(i) for i in b]
a = max(b)
print(max(0,a-25)) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
a = input().split()
max = 0
for i in range(n):
a[i] = int(a[i])
if a[i] > max:
max = a[i]
if max <= 25:
print(0)
else:
print(max - 25)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File : 859a.py
# Author : recurze
# Date : 15:25 08.12.2018
# Last Modified Date: 15:25 08.12.2018
n = int(raw_input())
a = max(list(map(int, raw_input().split())))
print max(a - 25, 0)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
long x;
vector<long> v;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> x;
v.push_back(x);
}
sort(v.begin(), v.end(), greater<int>());
x = v[0];
if (x > 25) {
cout << x - 25;
} else {
cout << 0;
}
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | //package memSQL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class contest {
public static void main(String args[])
{
Scanner in = new Scanner(System.in);
int K = in.nextInt();
ArrayList<Integer> list = new ArrayList<Integer>();
for(int i = 0; i < K; i... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... |
n = int(input())
l = list(map(int, input().split()))
mp = max(l)
if mp < 26:
print(0)
else:
print(mp - 25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | k = int(input())
r_line = input().split()
r = list(map(int, r_line))
r = sorted(r)
max = r[k - 1]
ans = 0 if max <= 25 else max - 25
print(ans) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
L = input().split()
mx = 0
for i in range(n):
L[i] = int(L[i])
mx = max(mx, L[i])
print(max(0, mx - 25)) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... |
if __name__=="__main__":
n=input()
r=map(int,raw_input().split())
m=max(r)-25
if m<0:
print "0"
else:
print m |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.Scanner;
public class DecFinalist {
public static void main(String[] args) {
int n;
int k;
int m = 0;
Scanner scanner = new Scanner(System.in);
n = scanner.nextInt();
for(int i= 0; i<n; i++){
k = scanner.nextInt();
m = Math.max(m, k);
}
if(m<=25) ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
void smain();
int main() {
ios_base::sync_with_stdio(0);
smain();
return 0;
}
long long n;
long long a[1001];
void smain() {
for (; cin >> n;) {
for (long long i = 0; i < n; i++) cin >> a[i];
sort(a, a + n);
long long p = 1, res = 0;
for (long long i... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | input()
c =max(map(int,input().split()))-25
if c>0:
print(c)
else:
print(0) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | K = int(raw_input())
c = [int(x) for x in raw_input().rstrip().split()]
c_max = max(c)
min_dec = max(c_max - 25, 0)
print min_dec
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int INF = 1000000001;
const long long LINF = 1000000000000000001LL;
int main() {
ios_base::sync_with_stdio(0);
int k;
cin >> k;
vector<int> tab(k);
for (int i = (0); i <= (k - 1); ++i) cin >> tab[i];
int mx = *max_element(tab.be... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(input())
ranks=list(map(int, input().split()))
maxrank=max(ranks)
if(maxrank<=25):
print(0)
else:
print(maxrank-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... |
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
/* Name of the class has to be "Main" only if the class is public. */
public class bbg
{
public... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | a = int(input())
b = input().split()
b = [int(x) for x in b]
if max(b)-len(b)-(25-a)>0:
print(max(b)-len(b)-(25-a))
else:
print(0) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
p = [*map(int,input().split())]
print(0 if(max(p)-25)<0 else max(p)-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(input())
dat=list(map(int,input().split()))
maxx=0
for i in range(len(dat)):maxx=max(maxx,dat[i])
print(max(0,maxx-25)) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
struct P {
int x, y;
long long z;
bool operator<(const P &a) const {
if (y != a.y) return y > a.y;
return z > a.z;
}
};
vector<int> v[200056];
int a, b, c, n, m, i, k, o[310][3130], d, e, dy[5] = {0, 0, -1, 1, 0},
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | K = int(input())
r = [int(i) for i in input().split()]
R = max(r)
print(max(0, R-1-(25-1))) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
parts = list(map(int, input().split()))
if(max(parts)-25>=0):
print(max(parts)-25)
else:
print(0)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=input()
x=map(int,input().split())
x=max(x)
if(x-25<0):print(0)
else:print(x-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... |
n=input()
m=list(map(int,input().split()))
if max(m)>25:
print(max(m)-25)
else:
print(0) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... |
import java.util.Scanner;
public class q2 {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int n,arr[];
n=in.nextInt();
arr=new int[n];
int max=0;
for(int i=0;i<n;i++){
arr[i]=in.nextInt();
if(arr[i]>max)max=arr[i];
}
if(max<=25)
System.out.println(0);
else
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | k = int(input())
r = map(int, input().split())
print(max(max(r) - 25, 0))
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = input()
a = map(int, raw_input().split())
print max(0, max(a) - 25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int k, n, i, amax;
int a[26];
int main() {
cin >> k;
for (i = 1; i <= k; i++) cin >> a[i];
amax = a[1];
for (i = 2; i <= k; i++)
if (amax < a[i]) amax = a[i];
if (amax > 25)
cout << amax - 25 << endl;
else
cout << 0 << endl;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | # MemSQL Start[c]UP 3.0 - Round 1, 859A
K = int(input())
r = []
r = input().split()
r = list(map(int, r))
r.sort()
within25 = True
for rank in r:
if rank > 25:
within25 = False
break
if (within25):
print(0)
else:
declined = 0
extra = []
for rank in r:
if ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.