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 ...
N=int(raw_input()) friends=map(int,raw_input().split()) friends.sort() decli=0 #Min num of declined taken=N #Taken for i in range(1,friends[-1]+1): if i not in friends and taken<25: taken+=1 elif i not in friends: decli+=1 print decli
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 tp { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int k = scan.nextInt(); int min = 0 ; for(int i=0;i<k;i++){ int a = scan.nextInt(); if(a>min) min = a; } if(min<25) System.out.println("0"); else System.out.println(mi...
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, mx = -1; cin >> n; for (int i = 0; i < n; i++) { long long int x; cin >> x; mx = max(mx, x); } if (mx - 25 >= 0) { cout << mx - 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; int main() { int k; cin >> k; int A, maxi = 0; for (int i = 0; i < k; i++) { cin >> A; if (A > maxi) maxi = A; } cout << 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 ...
import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Finalist { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int numbersFinalist = scanner.nextInt(); int maxValue = 0; int[] arrFinalist = new int[numbersFin...
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 = input().split(' ') for i in range(n): ranks[i] = int(ranks[i]) print(str(max(max(ranks)-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 ...
//package CodeforcesMemSQL; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; import java.util.StringTokenizer; public class A { public static void main(String[] args) { FastScanner scan = new FastScanner(); int a = scan.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() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cout.precision(20); int k; cin >> k; int a[k]; for (int i = 0; i < k; ++i) { cin >> a[i]; } sort(a, a + k); if (a[k - 1] < 25) cout << 0; else cout << a[k - 1] - 25; co...
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.*; import java.lang.*; public class Main { private static FastReader sc = new FastReader(System.in); private static OutputWriter out = new OutputWriter(System.out); public static void main(String[] args) throws Exception { int n = sc.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() { long long n; cin >> n; int b[n + 100]; for (int i = 0; i < n; i++) { cin >> b[i]; } sort(b, b + n); int x = b[n - 1] - 25; if (x > 0) cout << x; 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() { long long n; cin >> n; long long mx = 0; for (long long i = (0); i < (n); ++i) { long long a; cin >> a; mx = max(mx, a - 25); } cout << mx << 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 ...
k=int(raw_input()) lis=map(int,raw_input().split()) ma=max(lis) if ma-25<=0: 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 ...
if __name__ == '__main__' : n = int(input()) k = [int(num) for num in input().split()] print(max(0, max(k)-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.Scanner; public class Finalist { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int rank = scan.nextInt(); int temp = 0; for(int i = 0; i < rank; i++){ temp = Math.max(temp, scan.nextInt()); } System.out.println(Math.max(0, temp-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 ...
'''kurtesy''' n = input() a = map(int,raw_input().split()) m=max(a) if(m<=25): 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 ...
def readln(): return map(int, input().rstrip().split()) n = int(input()) data = list(readln()) rs = max(data) - 25 print(0 if rs < 0 else rs)
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 org.omg.CORBA.FREE_MEM; import java.io.*; import java.util.*; import java.util.function.IntConsumer; public class Solution { static MyScanner sc; private static PrintWriter out; static long M = 1000000007; public static void main(String[] s) throws Exception { StringBuilder stringB...
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 n, i, element; cin >> n; long long arr[n]; long long maxi = 0; for (i = 0; i < n; i++) { cin >> arr[i]; if (arr[i] >= maxi) maxi = arr[i]; } if (maxi <= 25) cout << 0; else cout << 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 K; int r[25]; int main() { cin >> K; int max = 0; for (int i = 0; i < K; i++) { cin >> r[i]; if (r[i] > max) { max = r[i]; } } int solution = 0; if (max > 25) { solution = max - 25; } cout << solution << 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.Scanner; public class DeclinedFinalists { public static void main(String[] args) { Scanner sc =new Scanner(System.in); int n = sc.nextInt(); int max = Integer.MIN_VALUE; for (int i = 0; i < n; i++) max = Math.max(max, sc.nextInt()); max = Math.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 ...
n=int(input()) l=list(map(int,input().split())) ma=max(l) if (ma-25)>0: print(ma-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() print(max(list(map(int,input().split()))+[25])-25) # Made By Mostafa_Khaled
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 k, b, n = 0; cin >> k; long long a[k + 1]; for (long long i = 1; i <= k; i++) cin >> a[i]; sort(a + 1, a + k + 1); for (long long i = 1; i <= k; i++) { if (a[i] > 25) { b = i; break; } else n++; } if (k <= 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.math.*; public class A{ public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int k=Integer.parseInt(br.readLine()); String st=br.readLine(); String ars[]=st.split(" "); int mx=-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()) l=list(map(int,input().split())) y=max(l) s=y-25 if s>=0: print(s) elif s<0: 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 n, max, i; cin >> n; int arr[n]; for (i = 0; i < n; i++) cin >> arr[i]; max = *max_element(arr, arr + n); if (max > 25) cout << max - 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.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int x = 25; for (int i = input.nextInt(); i > 0; i--) { int t = input.nextInt(); if (x < t) { x = 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 ...
k=int(input()) a=list(map(int,input().split())) if max(a)<25: print(0) else: print(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()) ri = list(map(int,input().split())) print(max(0,max(ri)-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; priority_queue<int> x; cin >> n; int s; for (int i = 0; i < n; ++i) { cin >> s; x.push(s); } int ans = x.top() - 25; if (ans < 0) { cout << 0 << endl; } else { cout << ans << 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() { int k; cin >> k; int p[k]; int max = -1; for (int i = 0; i < k; ++i) { cin >> p[i]; if (p[i] > max) { max = p[i]; } } if (max - 25 <= 0) { cout << 0 << endl; } else { cout << max - 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 ...
n = int(input()) arr = list(map(int, input().split())) mx = max(arr) if mx > 25: print(mx - 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; bool isprime(int n) { for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; } int main() { int n, m = 0; cin >> n; for (int i = 0, x; i < n; i++) { cin >> x; m = max(x, m); } m > 25 ? cout << m - 25 : 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 ...
n = input() print max(0,max(map(int,raw_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 ...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int k; cin >> k; int maxx = 0; int ri; for (int i = 0; i < k; i++) { cin >> ri; maxx = max(maxx, ri); } if (maxx < 25) cout << 0; else cout << 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 ...
k=input() a=map(int, raw_input().split()) if max(a)<=25: print 0 else: print 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 math from random import random def getInt(): return(int(input())) def getInts(): line = input().split() return [int(l) for l in line] def getFloat(): return(float(input())) def getFloats(): line = input().split() return [float(l) for l in line] def getStrings(): line = input().sp...
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 Solution { static Scanner sc=new Scanner(System.in); public static void main(String[] args) { // TODO Auto-generated method stub int n=sc.nextInt(); int a[]=new int[n]; int max=0; int i=0; int temp=0; for(i=0;i<n;i++) { if((temp=sc.nextInt())>max){ max=tem...
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 Memsql { public static void main(String[] args) { int n,ans=0; Scanner in=new Scanner(System.in); n=in.nextInt(); int [] a=new int[n]; for(int i=0;i<n;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()) m = list(map(int, input().split())) s = max(m) 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 ...
input() l=max(list(map(int,input().split()))) print(l-25 if l-25>0 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 ...
#include <bits/stdc++.h> using namespace std; long long readi() { long long input = 0; char c = ' '; while (c < '-') { c = getchar(); } bool negative = false; if (c == '-') { negative = true; c = getchar(); } while (c >= '0') { input = 10 * input + (c - '0'); c = getchar(); } if ...
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())) l.sort() x=max(l)-25 print(x) if x>0 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()) a = list(map(int, input().split())) c = max(a) if c <= 25: print(0) else: print(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 ...
""" instagram : essipoortahmasb2018 telegram channel : essi_python """ input() List = [*map(int,input().split())] a = max(List) - 25 if a >= 0: print(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 ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using str = string; using pi = pair<int, int>; using pl = pair<ll, ll>; using pd = pair<ld, ld>; using vi = vector<int>; using vb = vector<bool>; using vl = vector<ll>; using vd = vector<ld>; using vs = vector<str>; using vpi = ...
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.ArrayList; import java.util.Collections; import java.util.Scanner; public class DeclinedFinalists { public static void main(String[] args) { Scanner s= new Scanner(System.in); int a= s.nextInt(); int result=0; //int b= s.nextInt(); s.nextLine(); ArrayList<Integer> rankHolder=new ArrayLis...
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 Main { static StringBuilder data = new StringBuilder(); final static FastReader in = new FastReader(); public static void main(String[] args) { int k = in.nextInt(); int max=0; for (int i = 0; i < k; i++) { max=Math.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 ...
T = int(input()) A = [int(x) for x in 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.*; import java.util.*; import java.lang.*; import static java.lang.System.*; public class A { public static void main (String args[]) throws Exception { Scanner sc=new Scanner(in); int n=sc.nextInt(); int arr[]=new int[n]; for(int i=0;i<n;i++) arr[i]=sc.nextInt(); Arrays.sort(arr); out.prin...
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): print("0") else: print(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.util.*; public class Main { 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(); } Arrays.sort(a); if(a[n-1]<=25) { System.out.println("0"); } else { 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 ...
n=int(input());s=input().split();mx=25; for i in s: mx=max(mx,int(i)); print(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 ...
#! python3 # contest 9/16/2017 import sys #file = open('input.txt') numContestants = sys.stdin.readline() values = sys.stdin.readline() #numContestants = file.readline() #values = file.readline() valArray = values.split(" ") valArray = list(map(int,valArray)) last = (max((valArray))) if (max(valArray)) > 25: 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()) a=list(map(int, input().split())) t=0 for i in range(k-1,-1,-1): if a[i]>25: t+=1 if max(a)<=25: print(0) else: print(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; using namespace std; int main() { int n, a, b, c, x, y, z, mx = 0; long long s = 0; int ar[100] = {0}; string st, ss; cin >> a; for (int i = 0; i < a; ++i) { cin >> b; mx = max(mx, b); } if (mx <= 25) { cout << "0"; } else { cout << 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 ...
import sys #sys.stdin=open("data.txt") input=sys.stdin.readline k=int(input()) large=max(map(int,input().split())) print(max(0,large-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 Spoj; import java.util.*; import java.io.*; public class ABCDEF{ public static boolean[] visit; static boolean[] b; static int[] FF; static int[] A; static int[][]graph; static int n; static int label; static int max; static int[] sum1; static int[] sum2; static LinkedHashMap<Long,Long> memo; pu...
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())) m = max(a) - 25 if m >= 0: print(m) 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, k, m = -1; cin >> k; for (int i = 0; i < k; i++) { cin >> a; m = max(m, a); } if (m <= 25) { cout << 0 << endl; } else { cout << m - 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> int main() { int a, i, b[26], max; scanf("%d", &a); for (i = 0; i < a; i++) { scanf("%d", &b[i]); } max = b[0]; for (i = 1; i < a; i++) { if (max < b[i]) { max = b[i]; } } if (max <= 25) printf("0"); else printf("%d", max - 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> #pragma comment(linker, "/STACK:1073741824") #pragma warning(disable : 4996) using namespace std; int main() { int n; scanf("%d", &n); int g = 0; for (int i = 0; i < n; i++) { int a; scanf("%d", &a); g = max(a, g); } printf("%d", max(0, g - 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 long long INF = 1e18, MOD = 1e9 + 7; const long double EPS = 1e-9, PI = acos(-1); int32_t main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int64_t k; cin >> k; int64_t mx = 25; for (int64_t i = 0; i < k; ++i) { int64_t num; cin...
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 memset0, x, s; int main() { scanf("%d", &memset0); while (memset0--) { scanf("%d", &x); s = max(s, x); } if (s < 25) { putchar('0'); putchar('\n'); return 0; } printf("%d\n", s - 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 ...
#!/usr/bin/python2 # -*- coding: utf-8 -*- import sys def rl(proc=None): if proc is not None: return proc(sys.stdin.readline()) else: return sys.stdin.readline().rstrip() def srl(proc=None): if proc is not None: return map(proc, rl().split()) else: return rl().split() ...
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, a, max = 0; cin >> n; for (int i = 0; i < n; i++) { cin >> a; if (a > max) { max = a; } } long long int ans = max - 25; if (ans < 0) cout << 0 << "\n"; else cout << ans << "\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 ...
import java.util.Scanner; public class DeclinedFinalists{ static Scanner kbd=new Scanner(System.in); public static void main(String[]args){ int noContestants=kbd.nextInt(); int [] contestants=new int[noContestants]; int declined=0; int temp=0; int max=0; for(int x=0; x<noContestants; x++){ 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 ...
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class A { public static void main(String[] args) throws IOExce...
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* argv[]) { ios_base::sync_with_stdio(false); cin.tie(NULL); int k; cin >> k; vector<int> v; for (int i = 0; i < k; ++i) { int t; cin >> t; v.push_back(t); } v.push_back(0); sort(v.begin(), v.end()); if (v[v.size() - 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 ...
import java.util.*; public class Df { 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)); sc.close(); } }
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())) if max(a) > 25: 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 ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- 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 ...
#include <bits/stdc++.h> using namespace std; int main() { int n; scanf("%d", &n); int _max = 0; for (int i = 0; i < n; i++) { int x; scanf("%d", &x); _max = max(_max, x); } int ans = max(0, _max - 25); cout << ans << 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 ...
x = int(input()) y = [int(_) for _ in input().split()] print(max(max(y)-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.Scanner; public class A { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int m = 25; for(int i = 0; i < k; i++) { int u = sc.nextInt(); if(u > m) { m = u; } } System.out.println(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 ...
n=int(input()) l=list(map(int,input().split())) l.append(25) l.sort() ans=0 for i in range(len(l)): if l[i]>25: ans+=l[i]-l[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 ...
//package round416; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.*; public class Main { InputStream is; PrintWriter out; String INPUT = ""; void solve() { int n = ni(); ArrayList<Integer> inpu...
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 codechef; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; import java.math.*; /* Name of the class has to be "Main" only if the class is public. */ public class Codechef { public static void main (String[] args) throws java.lang.Exception { // your code goes he...
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 x, max1; for (int i = 1; i <= k; i++) { cin >> x; max1 = max(max1, x); } if (max1 <= 25) cout << 0; else cout << max1 - 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.Scanner; /** * * @author Artem */ public class JavaApplication16 { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner in = new Scanner(System.in); int k = in.nextInt(); int k1 = 0; int a[] = new int[k]; for (int i = 0; i < k; i++) { a[i] = 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 ...
k = int(input()) arr = list(map(int, 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 ...
import java.util.*; public class TaskA { public static void main(String args[]) { Scanner in = new Scanner(System.in); int k = in.nextInt(); int t[] = new int[k]; int max = 0; for(int i =0; i < k; i++) { t[i] = in.nextInt(); if(t[i] > 25 && t[i] > max) max = t[i]; } int n = max - 25; if(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 Codeforces859A { public Codeforces859A() { leer(); } public void leer(){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int[] set = new int[n]; for (int i = 0; i < n; i++) { set[i]=s.nextInt(); } System.out.println(solve(set)); } public int solve(...
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 oo = (1 << 30); const int MAX = 1e6 + 7; int main() { int k; cin >> k; vector<int> data(k); for (int i = 0; i < k; i++) cin >> data[i]; int cont = 0; vector<int> mapeo(MAX, 0); int mx = -1; for (int i = 0; i < k; i++) { if (data[i] <= 25) cont+...
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, Max = 0; scanf("%d", &n); for (register int i = 0; i < n; ++i) { scanf("%d", &x); Max = max(x, Max); } if (Max <= 25) printf("0\n"); else printf("%d\n", Max - 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 ...
n=int(input()) c=list(map(int,input().split())) print(max(0,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 ...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int k, i; cin >> k; int a[k]; for (i = 0; i < k; i++) cin >> a[i]; sort(a, a + k); int le = a[k - 1]; int ans = max(0, (le - 25)); cout << 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(raw_input()) x = map(int,raw_input().split()) cnt,pre = 0,25 for i in x: if i > pre : cnt+=(i-pre) pre = i print cnt
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 Main { public static void main (String[] args) throws java.lang.Exception { Output out = new Output(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; st = new StringTokenizer(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 ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner cv=new Scanner(System.in); int n=cv.nextInt(); int arr[]=new int[n]; int max=0; for (int i = 0; i < n ; i++) { arr[i]=cv.nextInt(); if(max<arr[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()) a=[int(i) for i in input().split()] t=0 for i in a: if i>t: t=i if t>25: print(t-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 ...
K = int(raw_input()) count = 0 ans = 0 list1 = raw_input().split() for i in range(K): list1[i] = int(list1[i]) if list1[i] > 25: count += 1 if count == 0: ans = 0 else: max1 = max(list1) ans = max1 - 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> int MiniNums(int buff[], int n) { int max = buff[0]; for (int i = 0; i < n; i++) { if (max < buff[i]) max = buff[i]; } if (max < 25) return 0; else return max - 25; } int main() { int num = 0; int buff[25]; memset(buff, 0, sizeof(buff)); scanf("%d", &num); for (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.io.*; import java.util.*; public class A { public static void main(String[] args) { new A(); } public A() { Scanner s = new Scanner(); int n = s.nextInt(); int max = Integer.MIN_VALUE; for (int i = 0; i < n; i++ ) { max = Integer.max(max, s.nextInt()); } int res = max - 25; 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 ...
import java.util.Scanner; public class DeclinedFinalists { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); scanner.nextLine(); String[] arr = scanner.nextLine().split("\\s+"); int max = 0; for (int 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 ...
a =input() t = input() t = t.split() g = 0 for x in t: if int(x)>g: g = int(x) if g >25: print(g-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 int minNumDeclined(int k, ArrayList<Integer> arr) { Collections.sort(arr, Collections.reverseOrder()); if(arr.get(0)>25) return arr.get(0) - 25; else return 0; } public static void main(St...
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=list(map(int, input().split())) print(max(0,max(b)-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.Scanner; public class NewClass { public static long max(long ...x){ long max= x[0]; for (int i = 1; i < x.length; i++) { if (x[i]>max) { max=x[i]; } } return max; } public static void main(String[] args) { Sc...
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,itertools,fractions,heapq,collections,bisect,sys,queue,copy sys.setrecursionlimit(10**7) inf=10**20 mod=10**9+7 dd=[(-1,0),(0,1),(1,0),(0,-1)] ddn=[(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)] def LI(): return [int(x) for x in sys.stdin.readline().split()] # def LF(): return [float(x) for x in s...