prompt
string
response
string
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
k=int(input()) r=list(map(int,input().split())) v=max(r)-25 if v>0: print(v) 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()) a = map(int, input().split()) res = max(0, max(a) - 25) print(res)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n=int(input()) l=list(map(int,input().split())) a=max(l) if a>25: print(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()) ranks = [int(x) for x in input().split(" ")] print (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 ...
import math from fractions import Fraction as frac MOD = 1e9 + 7 def solve(case_no): n = int(input()) a = list(map(int, input().split())) a = sorted(a) print(max(0, a[n - 1] - 25)) t = 1 # t = int(input()) for i in range(1, t + 1): solve(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 ...
K = int(input()) last = max(map(int, input().split())) print(max(0, last - 25))
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int main() { int k; int T[100]; cin >> k; cout << '\n'; int a; for (int i = 0; i < k; i++) { cin >> a; T[i] = a; } int m = T[0]; for (int i = 0; i < k; i++) { if (T[i] > m) m = T[i]; } cout << 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 ...
n=int(input()) a=list(map(int,input().split())) mx=max(a) print(mx-25 if mx>25 else 0)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n=int(input()) k=max([int(x) for x in input().split()]) print(k-25 if k>=25 else 0)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; const long long MOD = 1e9 + 7; const long long MAXN = 100500 * 5; const long long INF = 1e18; int main() { long long n; cin >> n; long long mx = -1; for (int i = 1; i <= n; i++) { long long a; cin >> a; mx = max(a, mx); } if (mx <= 25) { cout << ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int aa[30]; int main() { int n; scanf("%d", &n); for (int i = 0; i < n; i++) scanf("%d", &aa[i]); sort(aa, aa + n); printf("%d", max(0, aa[n - 1] - 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 = map(int, input().split()) a = list(map(int, input().split())) mx = max(a) if mx <= 25: ans=0 else: ans=mx-25 print(ans)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; const long long MAXN = 1e6 + 1; const long long INF = 1e9; void bye() { cout << '\n'; exit(0); } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n; cin >> n; int ans = 0; for (int i = 0; i < n; i++) { int tmp; 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 ...
n=int(input()) l=[int(x) for x in input().split()] m=max(l) 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 ...
#include <bits/stdc++.h> using namespace std; inline int nxt() { int first; scanf("%d", &first); return first; } inline void out(int a) { printf("%d ", a); } int main() { int n = nxt(), mx = 0, md = 0; for (int i = 0; i < n; i++) { int tmp = nxt(); mx = max(mx, tmp); } if (mx > 25) out(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 ...
n = int(input()) numbers = sorted([int(i) for i in input().split()]) count_within = 0 for i in numbers: if i <= 25: count_within += 1 if count_within == n: print(0) else: min_count = n - count_within curr_highest = 25 for i in numbers[count_within:]: if i - curr_highest - 1 > 0: ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int arr[n]; for (int i = 0; i < n; i++) { cin >> arr[i]; } int max = 0; for (int i = 0; i < n; i++) { if (arr[i] > max) { max = arr[i]; } } 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 ...
n = int(input()) a = [int(x) for x in 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 ...
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; /** * Built using CHelper plug-in * Actual soluti...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
/* ID: andrew42 LANG: JAVA TASK: PROG: */ import java.io.*; import java.util.*; import java.lang.*; public class decline { public static void main(String[] args) { Scanner input = new Scanner(System.in); int numFinal = input.nextInt(); int max = 0; for (int i = 0; i < numFinal; i++){ max = Math.max(max,...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { static BufferedReader reader = null; static StringTokenizer tokenizer = null; static PrintWriter writer = null; static String nextToken() 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()) x = list(map(int, input().split())) if max(x) > 25: print(max(x) - 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 k, l[25]; int main() { cin >> k; for (int i = 0; i < k; i++) { cin >> l[i]; } sort(l, l + k); cout << ((l[k - 1] > 25) ? (l[k - 1] - 25) : 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 ...
#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]; } int x = *max_element(a, a + n); if (x <= 25) { cout << 0 << endl; } else { cout << x - 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 ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; template <typename T> T &chmin(T &a, const T &b) { return a = min(a, b); } template <typename T> T &chmax(T &a, const T &b) { return a = max(a, b); } int main() { ios_base::ios_base::sync_with_stdio(0), cin.tie(0); ; 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 ...
K = int(input()) r = list(map(int,input().split(" "))) ans = (max(r) > 25) * (max(r) - 25) print(ans)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n = int(input()) 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 ...
n = int(input()) a = map(int, input().split()) m = max(a) d = m - 25 if d < 0: print(0) else: print(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 ...
import java.util.*; public class P2 { 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); int sum=0; if(a[n-1]>25) { sum=a[n-1]-25; } System.out.println(sum); } }
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 ans = 0; for (int el = 0; el < n; ++el) { int v; cin >> v; ans = max(ans, v); } cout << max(25, ans) - 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 ...
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @author pa...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 ...
# cf 859 A 800 K = int(input()) A = [*map(int, 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 ...
def main(): K = int(input()) R = tuple(map(int, input().split())) ans = max(R) - 25 if ans <= 0: print(0) else: print(ans) 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 ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; public class DeclinedFinalists { public static void main(String... args) throws IOException { BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); PrintWr...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; const int N = 1e6; const int INF = 2e9; int a[30]; int main() { int y, k; cin >> k; int MAX = -1; for (int i = 0; i < k; i++) { cin >> y; MAX = max(MAX, y); } cout << max(MAX - 25, 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 ...
#include <bits/stdc++.h> using namespace std; int main() { cin.sync_with_stdio(false); cin.tie(NULL); int n, x, mx = 0; cin >> n; for (int i = 1; i <= n; i++) { cin >> x; mx = max(mx, x); } if (mx - 25 < 0) { cout << "0\n"; } else { cout << mx - 25 << "\n"; } 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 = input() k = list(map(int, input().split())) print(max(k) - 25 if max(k) >= 25 else 0) # UBCF # CodeForcesian # ♥ # چشماتو از من برندار
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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) { solve(); } public static void solve() { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int max = 0; 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 ...
def main(): n = int(input()) a = [int(x) for x in input().split()] largest = max(a) print(max(largest-25, 0)) 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 ...
N=int(input()) L=list(map(int,(input().split(" ")))) B=max(L) if((B-25)<0): print("0") else: print((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 ...
n=input() l=map(int,raw_input().split()) ma=max(l) if ma<25:print 0 else: print ma-25
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
no = input() arr = map ( int , raw_input().strip().split() ) if max(arr) - 25 > 0 : print max(arr) - 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 a[1000001], k, mx, t; int main() { cin >> k; for (int i = 0; i < k; i++) cin >> a[i]; mx = a[0]; for (int i = 1; i < k; i++) if (a[i] > mx) mx = a[i]; if (mx > 25) cout << mx - 25 << endl; 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 = 0; cin >> k; int maxi = 0; for (int i = 0; i < k; i++) { int inp; cin >> inp; maxi = max(maxi, inp); } cout << max(0, maxi - 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.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.BufferedWriter; import java.io.Writer; import java.io.OutputStreamWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.Input...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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); long long int k, ans, max = 0; cin >> k; int x[k + 1]; for (int i = 0; i < k; i++) { cin >> x[i]; if (x[i] > max) { max = x[i]; } } ans = max - 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 ...
a = int(input()) z = input() m = [int(i) for i in z.split() ] mm = max(m) if mm <= 25: print(0) else: print(mm-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())) m=max(l) if(m<26): 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 ...
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 ...
k = int(input()) print(max(0, max([int(i) for i in 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.*; public class Declined_Finalists { public static void main(String ar[]) { Scanner s1 = new Scanner(System.in); int n; n = s1.nextInt(); int max = 25,input; for(int i=0;i<n;i++) { input = s1.nextInt(); if(input > max) max = input; } System.out.println(max-25); s1.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 ...
import java.util.*; public class DeclinedFinalists { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] A = new int[n]; scan.nextLine(); for(int i = 0; i < n; i++) { A[i] = scan.nextInt(); } Arrays.sort(A); if(A[n-1] - 25 <= 0) { Syst...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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()) r=list(map(int,input().split())) m=max(r) if m<=25: print("0") exit() 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 ...
n=int(input()) l=list(map(int,input().split())) m=max(l) 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 ...
k = int(input()) num = list(map(int,input().split(' '))) if(max(num) <= 25): print(0) else: dentro = 0 for a in num: if(a <= 25): dentro += 1 print(max(num)-dentro-(25-dentro))
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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(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 ...
n = int(input()) arr = input() a = list(map(int, arr.split())) flag = True; for i in a: if i not in range(1,26): flag = False break if(flag): 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 ...
n = input() l = map(int,raw_input().split()) print max(0,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, a, mx = 0, ans; cin >> n; for (int i = 0; i < n; ++i) { cin >> a; mx = max(mx, a); } cout << 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 ...
import java.util.*; public class Borya { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int k = scanner.nextInt(); int[] ranks = new int[k]; int max = 0; for (int i = 0; i < ranks.length; i++) { ranks[i] = scanner.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 ...
/** * Created by Alyssa on 10/31/2016. */ import java.util.*; import java.io.*; import static java.lang.Math.*; public class A { static StringBuilder sb; public static void main(String[] args) { FastScanner sc = new FastScanner(); //Scanner sc = new Scanner(System.in); sb = new Str...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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=[int(x) for x in input().split()] l.sort() if l[-1] > 25: print(l[-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(input()) a=list(map(int,input().split())) print((max(a)-25 if max(a)>=25 else 0))
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
k=int(input()) r=list(map(int,input().split())) print(max(0,max(r)-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() r=list(map(int,input().split())) if max(r)>25: print(max(r)-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 t; cin >> t; int max = -1; for (int i = 0; i < t; i++) { int a; cin >> a; if (max < a) max = a; } if (max > 25) { cout << max - 25; } else { cout << "0"; } return 0; }
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n=int(input()) a=sorted(list(map(int,input().split()))) if a[-1]<=25: print(0) else: print(abs(a[-1]-25))
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
import java.io.*; import java.text.*; import java.util.*; import java.math.*; public class A { public static void main(String[] args) throws Exception { new A().run(); } public void run() throws Exception { FastScanner f = new FastScanner(); PrintWriter out = new PrintWriter(System.out); int a = f.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 int n, m, a, i = 0, cnt = 0, mh, res, ans = 0, b, c, sum = 0, in, array[30]; long long int lfirst, sec, third, mfirst, p, p2; set<pair<long long int, long long int>> vec; cin >> n; for (i = 0; i < n; i++) cin >> arra...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 l[30]; int main() { int n, x = 0; scanf("%d", &n); l[0] = 0; for (int i = 1; i <= n; ++i) scanf("%d", &l[i]); sort(l, l + n + 1); for (int i = 1; i <= n; ++i) x += l[i] - l[i - 1]; printf("%d\n", max(x - 25, 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 ...
#include <bits/stdc++.h> using namespace std; int main() { int n, cnt1 = 0, cnt2 = 0, max_val = 0; cin >> n; for (register int i = 0; i < n; ++i) { int t; cin >> t; max_val = max(max_val, t); } if (max_val <= 25) cout << 0; else cout << max_val - 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; inline int read() { char ch = getchar(); if (!(~ch)) return 0; int f = 1; while (ch < '0' || ch > '9') { if (ch == '-') f = -1; ch = getchar(); } int x = 0; while (ch >= '0' && ch <= '9') { x = (x << 3) + (x << 1) + (ch ^ 48); ch = getchar(); ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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, stdout n = int(stdin.readline()) values = list(map(int, stdin.readline().split())) v = max(values) sze = 25 stdout.write(str(max(0, v - sze)))
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 { MyScanner in; PrintWriter out; public static void main(String[] args) throws Exception { new A().run(); } public void run() throws Exception { in = new MyScanner(); out = new PrintWriter(System.out); 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 ...
import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class DeclinedFinalists_859A { public static void main(String[] args) { Scanner input = new Scanner(System.in); int k = input.nextInt(); ArrayList<Integer> arr = new ArrayList<Integer>(); for (int i = 0; i < k; i++) { ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int main() { int n, mx = 0, x; scanf("%d", &n); for (int i = 1; i <= n; i++) { scanf("%d", &x); if (x > mx) mx = x; } mx -= 25; if (mx < 0) mx = 0; printf("%d\n", mx); }
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
from __future__ import division, print_function def main(): # Template 1.0 import sys, re, math from collections import deque, defaultdict, Counter, OrderedDict from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from heapq import heappush, heappop, heapify, nlargest, nsmallest ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 r[30]; int main() { int k, cnt = 0, ans = 0; cin >> k; for (int i = 0; i < k; i++) { cin >> r[i]; if (r[i] <= 25) cnt++; } sort(r, r + k); ans += (k - cnt); ans = ans + (r[k - 1] - 25) - (k - cnt); if (ans < 0) cout << 0 << endl; else 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=input() a=map(int,raw_input().split(' ')) diff=0 l=[x for x in a if x>25] if len(l)==0: 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 ...
n = int(input()) rank = list(map(int, input().split(' '))) m = -1 for i in rank: m = max(m, 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 ...
import java.io.DataInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigInteger; import java.util.ArrayList; import jav...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
i = int(input()) l = list(map(int,input().split())) k = max(l) if k>25: print(k-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> int main() { int k; scanf("%d", &k); int i; long int a[k]; for (i = 0; i < k; i++) { scanf("%ld", &a[i]); } long int l, ans; l = a[0]; for (i = 0; i < k; i++) { if (a[i] > l) l = a[i]; } if (l - 25 > 0) ans = l - 25; else ans = 0; 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 ...
#include <bits/stdc++.h> int main() { int a, b, c, n, max = 0, i, j, s[50]; scanf("%d", &n); for (i = 0; i < n; i++) scanf("%d", &s[i]); for (i = 0; i < n; i++) { if (s[i] > max) max = s[i]; } a = max - 25; if (a < 0) printf("0"); else printf("%d", a); 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 sys,math input=sys.stdin.readline L=lambda : list(map(int,input().split())) M=lambda : map(int,input().split()) n=int(input()) l=L() print(max(0,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 k; cin >> k; int r[k]; int maximum = INT_MIN; for (int i = 0; i < k; i++) { cin >> r[i]; maximum = max(maximum, r[i]); } if (maximum <= 25) { cout << 0 << endl; } else cout << maximum - 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 sc = new Scanner(System.in); int k = sc.nextInt(); sc.nextLine(); int[] fin = new int[k]; for(int i = 0; i < k; i++){ fin[i] = sc.nextInt(); } int max = 0; for(int i = 0; i < k; i++){ if (max < f...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 p = 0, sum = 0; void BFS(vector<vector<int> > &v, int d, bool b[], int k) { int level[d + 1]; memset(level, -1, sizeof(level)); level[k] = 0; b[k] = true; list<int> q; q.push_back(k); while (!q.empty()) { int x = q.front(); q.pop_front(); vecto...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
kostyl = int(input()) finalists = input().split() for i in range(kostyl): finalists[i] = int(finalists[i]) if sorted(finalists)[kostyl - 1] > 25: print(sorted(finalists)[kostyl - 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 ...
def solve(n, r): return max(0, max(r) - 25) def main(): n = int(input()) r = list(map(int, input().split())) print(solve(n, r)) 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 ...
n = int(raw_input()) B = map(int, raw_input().split()) if all(i<=25 for i in B): print('0') else: print 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 ...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int n, max = 0; cin >> n; vector<int> a; for (int i = 0; i < n; i++) { int x; cin >> x; if (x > max) max = x; } if (max < 25) cout << 0 << endl; else cout << max - 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 ...
import java.io.BufferedReader; 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 IOException { MyScanner sc = new MyScanner(System.in); PrintWriter...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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() inp=raw_input() inp=inp.split() s=map(lambda fun:int(fun),inp) find = max(s) if find > 25: print find-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()) ls = list(map(int, input().split(" "))) mx = max(ls) 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 ...
n, a = int(input()), list(map(int, input().split())) print(0 if max(a) <= 25 else max(a) - 25)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
''' Amirhossein Alimirzaei Telegram : @HajLorenzo Instagram : amirhossein_alimirzaei University of Bojnourd ''' N=input() TMP=(list(map(int,input().split()))) print(max(TMP)-25 if max(TMP)>25 else 0)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
import java.util.*; public class declinedFinalist { 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 result=0; Arrays.sort(...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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()) li=list(map(int,input().split())) li.sort() if li[-1]>25: print(li[-1]-25) else: print(0)