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 ...
import java.util.Scanner; public class MyClass { public static void main(String args[]) { Scanner s= new Scanner(System.in); int n=s.nextInt(); int arreglo[]= new int[n]; int numero=0; boolean saber=true; for(int i=0; i<n; i++){ arreglo[i]=s.nextInt(); ...
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, ans = 0, b; cin >> n; while (n--) { cin >> b; ans = max(ans, b); } printf("%d\n", ans <= 25 ? 0 : ans - 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 check { 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()); } if(max<=25)System.out.println("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())) if max(a)-25>0: print(max(a)-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()) l=list(map(int,input().split())) z=max(l) if z<=25: print(0) else: print(abs(25-z))
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 import random import functools import re import itertools import math import copy import bisect import Queue from collections import Counter k = int(sys.stdin.readline()) ranks = [int(_) for _ in sys.stdin.readline().split()] x = max(ranks) print max(x - 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 k, a[25], n, m, MIN; int main() { cin >> k; for (int i = 0; i < k; i++) { cin >> a[i]; if (a[i] > n) n = a[i]; } if (n > 25) cout << n - 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 ...
#include <bits/stdc++.h> using namespace std; void Arr2DInit(vector<vector<int> > &a, int n, int m) { a.resize(n); for (int i = 0; i < n; i++) a[i].resize(m); } template <class T> T minn(T a, T b) { return a < b ? a : b; } template <class T> T maxx(T a, T b) { return a > b ? a : b; } long long Pow(long long 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 ...
k=input(); l=max(map(int, input().split())); if l>25: print(l-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.*; public class Solution { public static void main (String args[]){ int k, mx =-1; Scanner in = new Scanner(System.in); k = in.nextInt(); for(int i =0;i< k ;i++){ mx = Math.max(mx, in.nextInt()); } System.out.println((mx-25 > 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 ...
k = int(input()) l = list(map(int,input().split())) if max(l) <= 25 : print(0) else: print(max(l) - 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, x, a = 0; cin >> n; while (n--) { cin >> x; a = max(a, x); } cout << max(0, a - 25) << 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.util.*; public class DeclinedFinalists { public static void main(String[] args) { Scanner in = new Scanner(System.in); int K = Integer.parseInt(in.nextLine()); int[] ranks = new int[K]; for (int i = 0; i < ranks.length; i++) { ranks[i] = in.nextInt(); } Arrays.sort(ranks); int numDecli...
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 java.util.Scanner; public class Code_forcces { public static void main(String[] args){ Scanner reader = new Scanner (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 ...
n = int(input()) z = list(map(int, input().split())) print(max(0, max(z) - 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() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; int mx = -1; for (int i = 0; i < n; i++) { int x; cin >> x; mx = max(mx, x); } cout << max(0, mx - 25) << 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 ...
/******************************************************************************* * Copyright [2020] [Jahic Sead] * * Univerza na Primorskem University of Primorska * * Fakultet za Matematiko, naravoslavje in informacijske tehnologije Faculty of * Mathematics, Natural Science and Information Technologies * * ...
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> int read() { int x = 0, y = 1; char ch = getchar(); while (ch > '9' || ch < '0') { if (ch == '-') y = -1; ch = getchar(); } while (ch <= '9' && ch >= '0') x = (x << 3) + (x << 1) + ch - '0', ch = getchar(); return x * y; } void print(int x) { if (x < 0) { putchar('...
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()) max=0 x=list(map(int,input().split())) for i in range(0,n): if x[i]>max: max=x[i] if max>25: print(max-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 ...
#include <bits/stdc++.h> using namespace std; int main() { int a; int maior = -1; int n; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &a); maior = max(maior, a); } if (maior < 25) printf("0\n"); else printf("%d\n", maior - 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 ...
noOfFinalists_know = int(input()) list = [int(x) for x in input().split(" ")] max_el = max(list) if(max_el - 25 > 0): print(max_el - 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.*; public class MemSql { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); long max=0L; long A[]=new long[n]; for(int i=0;i<n;i++) { A[i]=sc.nextLong(); if(A[i]>max) ma...
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, mmax = -1, sol(0); cin >> n; vector<int> cont(n); vector<int> vis(1000100); for (int i = 0; i < n; i++) { cin >> cont[i]; vis[cont[i]] = true; mmax = max(mmax, cont[i]); sol += (cont[i] > 25); } cout << max(0, mmax - 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() a=list(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 ...
N=int(input()) arr=list(map(int,input().split())) arr.sort() if arr[-1]>=25: print(arr[-1]-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(raw_input()) a = map(int, raw_input().split()) print max(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 ...
import java.util.*; public class Main { public static void main(String args[] ) { //Scanner Scanner in = new Scanner(System.in); int n =in.nextInt(); int [] arr =new int[n]; int max=-1; for(int i=0;i<n;i++){ arr[i]=in.nextInt(); if(ar...
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 min_possible(arr): x = max(arr) return max(0, x - 25) n = int(input().strip()) arr = list(map(int, input().strip().split())) print(min_possible(arr))
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, y, max = 0; cin >> n; while (n--) { cin >> y; if (y > max) { max = y; } } int t = max - 25; if (t < 0) { cout << "0"; } else { cout << t; } 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 ...
/** * Title: Declined Finalists * Codeforces Problemset: 859A * Source: http://codeforces.com/problemset/problem/859/A */ import java.util.Scanner; import java.util.*; public class DeclinedFinalists { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int value1 = sca...
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() a = list(map(int, input().split())) s = max(a) print(max(0, 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 ...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> v(n); for (int i = 0; i < n; i++) cin >> v[i]; sort(v.begin(), v.end()); if (v[n - 1] <= 25) cout << 0 << endl; else cout << v[n - 1] - 25 << 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 ...
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ public class Ideone { public static void main (String[] args) throws java.lang.Exception { Scanner sc=new Scanner(System.in); int 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 ...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int i, mx = 0, x, n; scanf("%d", &n); for (i = 1; i <= n; i++) { scanf("%d", &x); mx = max(mx, x); } printf("%d\n", max(0, mx - 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; const int MOD = 1e9 + 7; int fx[] = {-1, +0, +1, +0, +1, +1, -1, -1, +0}; int fy[] = {+0, -1, +0, +1, +1, -1, +1, -1, +0}; int day[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; template <typename T> inline bool isLeap(T y) { return (y % 400 == 0) || (y % 100 ? y %...
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 pwr(long long int base, long long int p, long long int mod) { long long int ans = 1; while (p) { if (p & 1) ans = (ans * base) % mod; base = (base * base) % mod; p /= 2; } return ans; } long long int gcd(long long int a, long long int b) { ...
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 ...
/** * 859 A. Declined Finalists */ import java.util.Scanner; public class Declined{ public static void main(String[] args) { Scanner input = new Scanner(System.in); int a, b, max = 0; a = input.nextInt(); for(int i = 0; i < a; i++) { b = input.nextInt(); if(b > max) { max = b; } } if(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.util.Scanner; public class Declined859A { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a[] = new int[n]; for(int i=0;i<n;i++) { a[i] = sc.nextInt(); } int large = a[0]; for(int i=0;i<n;i++) { if(large<a[i]) large = a[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 A{ static int n,r[],res; static boolean d[]; static void MainMethod()throws Exception{ n=reader.nextInt(); r=new int [n+1]; r[0]=0; d=new boolean[1000005]; int i; Arrays.fill(d, false); for (i=1;i<=n;i++) { r[i]=reader.nextInt...
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=0 l=[int(i) for i in input().split()] for i in range(n): m=max(m,l[i]) print(max(0,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 ...
input() part = list(map(int, (input().split()))) if max(part) > 25: q = max(part) - 25 print(q) 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 ...
input() print(max(0, max(map(int, input().split()))-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()) l=list(map(int,input().split())) if max(l)>25: print(max(l)-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 sys # sys.stdin=open("input.in","r") n=int(input()) m=list(map(int,input().split())) print(max(0,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 ...
import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; public class Main { static class Reader { final private int BUFFER_SIZE = 1 << 16; private DataInputStream d...
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, a, mx = 0; cin >> n; for (int i = 0; i < n; i++) { cin >> a; if (a > mx) mx = a; } if (mx - 25 > 0) cout << mx - 25 << endl; else cout << 0 << 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 ...
import java.util.*; public class declinedFinalists { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); int numFinalists = scan.nextInt(); int temp = 0; for (int i = 0; i < numFinalists; 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 ...
#include <bits/stdc++.h> int main() { int k, c[35], i, r, ck; while (scanf("%d", &k) == 1) { ck = 0; for (i = 0; i < k; i++) { scanf("%d", &c[i]); if (c[i] > ck) ck = c[i]; } if (ck > 25) { r = ck - 25; printf("%d\n", r); } else printf("%d\n", 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.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int arr[] = new int[n]; for (int i = 0; i < n; i++) { arr[i] = in.nextInt(); } Ar...
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=list(map(int,input().split())) max_rank=max(r) if max_rank>25: ans=max_rank-25 print(ans) 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(input()) R = list(map(int, input().split())) R.sort() if R[-1] >= 25: print(R[-1] - 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.io.*; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner in = new Scanner(System.in); byte k = in.nextByte(); int a = 0, max = Integer.MIN_VALUE; for (int i = 0; i < k; i++){ a = in.nextInt(); ...
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; cin >> k; int max = 0; for (int i = 0; i < k; i++) { int x; cin >> x; if (max < x) { max = x; } } if (max - 25 > 0) cout << max - 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 ...
f = int(input()) c = list(map(int,input().split())) if max(c)<=25: print(0) else: print(max(c)-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= map(int, raw_input().split()) print max(0,max(lst)-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, b, a; cin >> n; a = 0; for (int i = 0; i < n; i++) { cin >> b; if (b > a) a = b; } cout << (a < 25 ? 0 : a - 25) << 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 math def main_function(): n = int(input()) l = [int(i) for i in input().split(" ")] if max(l) <= 25: return 0 else: return max(l) - 25 print(main_function())
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 A764 { public static void main(String [] args) { InputStream inputReader = System.in; OutputStream outputReader = System.out; InputReader in = new InputReader(inputReader); PrintWriter out = new PrintWriter(outputReader); Al...
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 argc, char const *argv[]) { ios::sync_with_stdio(false); cin.tie(0); int K; cin >> K; int m = 0; for (int i = 0; i < K; ++i) { int r; cin >> r; if (r > m) { m = r; } } int diff = max(0, m - 25); cout << diff << '\n'; re...
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() { long long int n, b; std::cin >> n; long long int a[n]; for (int i = 0; i < n; i++) { std::cin >> a[i]; } std::sort(a, a + n); if (a[n - 1] <= 25) { std::cout << 0 << '\n'; } else { b = a[n - 1] - 25; std::cout << b << '\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 ...
#include <bits/stdc++.h> using namespace std; int main() { int k, Array[100]; cin >> k; for (int i = 0; i < k; i++) cin >> Array[i]; sort(Array, Array + k); int maximum = Array[k - 1]; if (maximum <= 25) cout << 0 << endl; else cout << maximum - 25 << 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()) data = list(map(int, input().split())) maximum = max(data) ans = maximum - 25 if(ans<0): print("0") else: 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 ...
import java.util.Scanner; public class DeclinedFinalists { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int maxCompetitorNum = 25; int k = sc.nextInt(); int highestRank = 0; for (int i = 0; i < k; i++) { int read = ...
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 ...
numberk=int(input()) lists=list(map(int,input().split())) y=max(lists) if y-25>0: print("{}".format(y-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.*; import static java.lang.Math.*; import static java.lang.System.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(in); int n = sc.nextInt(); ArrayList<Integer> arr = new ArrayList<>(); int max = 0; for (int i = 0; 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 sys x = int(raw_input().strip()) all = map(int,raw_input().split()) all = sorted(all,reverse=True) if all[0] - 25<0: print 0 else: print all[0] - 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 = [int(x) for x in input().split()] m = max(r) if(m<26): print(0) else: print(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; int main() { int n, a = -1; cin >> n; for (int i = 0; i < n; ++i) { int A; scanf("%d", &A); a = max(a, A); } cout << max(0, a - 25) << 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 ...
#include <bits/stdc++.h> using namespace std; int main() { long long int i, j, k, n, max1 = 0; cin >> n; for (i = 0; i < n; i++) { cin >> k; if (k > max1) max1 = k; } if ((max1 - 25) >= 0) cout << max1 - 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 ...
input() print(max(25, max(map(int, input().split()))) - 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.Arrays; import java.util.Scanner; public class DeclinedFinalists { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int k=sc.nextInt(),arr[]=new int[k]; for(int i=0;i<k;i++) { arr[i]=sc.nextInt(); } Arrays....
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 DeclinedFinalist { public static void main(String[] args) { /* * first convert input string to integer value * for this problem is n array lenght and array itself */ Scanner sc = new Scanner(System.in); String str1 = sc.nextLine(); String str2 = sc.nextLine(...
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().strip().split())) t=0 if n==25: for j in range(1,max(l)): if j in l: pass else: t +=1 print(t) else: if max(l)>25: print(max(l)-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 ...
input() r = map(int, input().split()) res = max(r) - 25 if res < 0: res = 0 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 ...
import java.io.*; import java.util.*; import java.math.BigInteger; public class Solution{ public static void main(String[] args) { Scanner in = new Scanner(System.in); StringBuilder sb=new StringBuilder(); int i,k,max=-1,temp,answer; k=Integer.parseInt(in.next()...
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()) a = list(map(int, input().split())) maxi = 0 for i in range(k): maxi = max(maxi, a[i]) print(max(0, maxi - 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; int a[n]; for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 0; i < n - 1; i++) { int m = i; for (int j = i + 1; j < n; j++) { if (a[m] > a[j]) m = j; } int t = a[m]; a[m] = a[i]; a[i] = t; ...
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(void) { int K, r, ans = 0; scanf("%d", &K); for (int i = 0; i < K; ++i) { scanf("%d", &r); ans = max(ans, max(0, r - 25)); } printf("%d\n", 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 = input() l = map(int,raw_input().split()) l.sort() if l[n-1]<=25: print 0 else: print l[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 ...
input() c=max(0, max(map(int,(input().split()))) -25 ) 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 ...
n = int(input()) a = [int(s) for s in input().split(' ')] print(max(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 ...
import java.util.Arrays; import java.util.Scanner; public class DeclinedFinalists { public static void main(String[] args) { Scanner input = new Scanner(System.in); int knownFinalists = input.nextInt(); int[] rankings = new int[knownFinalists]; for (int i = 0; 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(raw_input()) arr = map(int, raw_input().split()) print max(0, max(arr) - 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 ...
# -*- coding: utf-8 -*- def readline(): return map(int, raw_input().split()) def main(): raw_input() print max(readline() + [25]) - 25 main()
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 a[1000010]; bool cmp(int x, int y) { return x > y; } int main() { int k, maxn; while (~scanf("%d", &k)) { maxn = 0; for (int i = 0; i < k; i++) { scanf("%d", &a[i]); maxn = max(a[i], maxn); } int ans = maxn - 25; if (ans < 0) ans = 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.PrintWriter; import java.io.InputStreamReader; import java.io.IOException; import java.util.StringTokenizer; public class Main { static Scanner in = new Scanner(); static PrintWriter out = new PrintWriter(System.out); public static void main(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 ...
from sys import stdin rr = lambda: stdin.readline().strip() rri = lambda: int(rr()) rrm = lambda: map(int, rr().split()) def rry(N = None, f = rri): for i in xrange(N or rri()): yield f() debug=0 if debug: fi = open('t.txt','r') rr = lambda: fi.readline().replace('\n','') N = rri() A = rrm() BIG =...
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(list(map(int,input().split()))+[25])-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(max(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; const long long int MOD = 1000000007LL; long long int fact[1000006]; long long int ifact[1000006]; long long int power2[1000006]; long long int ar[200056]; long long int br[200056]; long long int level[300005]; vector<int> adj[500005]; set<long long int>::iterator it; bool ...
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 INF = 1000000001; const long double EPS = 1e-9; const int MOD = 1000000007; const long long LLINF = 1000000000000000001; int main() { ios_base::sync_with_stdio(false); int n; cin >> n; int ma = 0; for (int i = 1; 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 ...
import java.util.Scanner; public class Declined { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int contestants = scan.nextInt(); int contestantNum = 0; int largest = 0; for(int i = 0; i < contestants; i++){ contestantNum = scan....
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, x, M = 0, B[1000002] = {}, c = 0; cin >> k; for (i = 0; i < k; i++) { cin >> x; M = max(M, x); B[x]++; } for (i = 1; i <= M; i++) { if (B[i] == 0) c++; } if (c >= (25 - k)) cout << c - (25 - k); 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 ...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); int n, tmp, ans = 0, mx = -1; cin >> n; for (int i = 0; i < n && cin >> tmp; ++i) mx = max(tmp, mx); cout << (mx > 25 ? mx - 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; bool arr[1000009]; int main() { int k; cin >> k; vector<int> a(k); int be = 1; int cou = 0; for (int i = 0; i < k; i++) { cin >> a[i]; arr[a[i]] = true; } sort(a.begin(), a.end()); if (a[a.size() - 1] > 25) { cout << a[a.size() - 1] - 25; } e...
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 = 1e9 + 7; const long long inf = 1e18; bool sortbysec(const pair<long long, long long> &a, const pair<long long, long long> &b) { if (a.first == b.first) return (a.second > b.second); } signed main() { long long t = 1; while (t--) { ...
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/contest/859/problem/A import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class A { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); sc.nextLine(); ArrayList<Integer> list = new ArrayList<Integ...
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(false); int n; cin >> n; int mi = 0; for (int i = 0; i < n; i++) { int foo; cin >> foo; mi = max(mi, foo); } cout << max(0, mi - 25) << 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 ...
def main(): t=input() l=map(long,raw_input().split()) if max(l) <=25: print 0 else: print max(l)-25 if __name__ == '__main__': main()
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=int(input()) a=list(map(int,input().split())) b=max(a)-25 if b<=0: print(0) else: print(b)