prompt
string
response
string
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; public class Tester { InputStream is; PrintWriter out; String INPUT = ""; void solve() { int n=ni(); int[] ar...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
import java.util.*; import java.io.*; public class DeclinedFinalists{ public static void main(String[] arg) { Scanner scan = new Scanner(System.in); int k = scan.nextInt(); int [] finalists = new int [k]; for (int i = 0; i < finalists.length; i++){ fin...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 math import sqrt def main(): d = int(input()) vals = [int(v) for v in input().split()] print(max(0, max(vals)-25)) if __name__ == "__main__": main()
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
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 = input() s = map(int,raw_input().split()) s.append(0) s = sorted(s) c=0 for i in xrange(n): c+=s[i+1]-s[i]-1 print max(0,c-(25-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 ...
/* * DA-IICT * Author: Jugal Kalal */ import java.util.*; import java.io.*; import java.math.*; public class Practice{ static long mod=(long)Math.pow(10,9)+7l; public static void main(String args[]){ new Thread(null, new Runnable() { public void run() { try{ ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 Integer { public static void main(String args[]){ Scanner scan=new Scanner (System.in); int p=scan.nextInt(); int arr[]=new int [p]; for(int i=0;i<p;i++) { arr[i]=scan.nextInt(); } Array...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 ...
#include <bits/stdc++.h> int main() { int a, b, c, largest, i; scanf("%d", &a); largest = 1; for (i = 1; i <= a; i++) { scanf("%d", &b); if (b > largest) { largest = b; } } c = largest - 25; if (c > 0) { printf("%d", c); } else printf("0"); return 0; }
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
def main(): f = int(input()) c = list(map(int,input().split())) if max(c)<=25: print(0) else: print(max(c)-25) main()
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int main() { int n, i; cin >> n; int max = 0, temp; for (i = 0; i < n; i++) { cin >> temp; if (temp > max) max = temp; } if (max > 25) cout << max - 25 << endl; else cout << "0" << endl; }
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
k = int(input()) a = [int(x) for x in 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 ...
import java.util.Scanner; public class DeclinedFinalist { public static void main(String[] args) { Scanner in = new Scanner(System.in); int k = in.nextInt(); int max = in.nextInt(); for (int i = 1; i < k; i++) { int compare = in.nextInt(); ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int main() { int mm; cin >> mm; int x, mx = 0; while (mm--) { scanf("%d", &x); mx = max(mx, x); } printf("%d", 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 Solution { 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++) { int temp = sc.nextInt(); if (temp > max) max = temp; } S...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int main() { int k, i, declined = 0; cin >> k; long available_ranks[k], prev_rank = 25; for (i = 0; i < k; i++) cin >> available_ranks[i]; sort(available_ranks, available_ranks + k); for (i = 0; i < k; i++) { if (available_ranks[i] > 25) { declined += ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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[25], result = 0, max = 25; cin >> n; for (int i = 0; i < n; i++) { cin >> a[i]; if (a[i] > max) { max = a[i]; } } result = max - 25; cout << result; return 0; }
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
raw_input() print(max(list(map(int,raw_input().split()))+[25])-25)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
if __name__ =="__main__": n = int(input()) arr = list(map(int,input().split())) if max(arr)<=25: print(0) else: x = n if 1 not in arr: arr.append(0) x+=1 ans = 0 arr.sort() for i in range(1,x): ans += (arr[i]-arr[i-1]-1) print(ans-(25-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 ...
n = int(input()) nums = list(map(int, input().split())) print(max(nums) - 25 if max(nums) > 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 ...
a,s=int(input()),list(map(int, input().split())) print(max(0,max(s)-25))
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int main() { int n, i; cin >> n; int a[n]; for (i = 0; i < n; i++) cin >> a[i]; sort(a, a + n); for (i = n - 1; i >= 0; i--) { if (a[i] >= 25) return cout << a[i] - 25, 0; } return cout << 0, 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 Contestents { public static void main(String[] args){ Scanner scan = new Scanner(System.in); scan.nextLine(); String[] contestents = scan.nextLine().split(" "); int largest = -1; for(String contestent : contestents) { if(In...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n = int(raw_input()) l = map(int, raw_input().split()) t = max(l) if t > 25: ans = t - 25 else: ans = 0 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 ...
K = int(raw_input()) ranks = map(int, raw_input().split()) minimum = max(ranks) - 25 if minimum >=0: print minimum 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 test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; for(int i = 0;i<n;i++) arr[i] = sc.nextInt(); Arrays.sort(arr); if(arr[n - 1] <= 25) System.out.println("0"); else System.out.pri...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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() arr = input() max = 0 for item in arr.split(): if int(item) > max: max = int(item) if (max - 25 > 0): print(max - 25) else: print(0)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ public class Ideone { public static void main (String[] args) throws java.lang.Exception { // your code goes here Scanner in=new 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 ...
def main(): k = int(input()) L = [int(x) for x in input().split()] print(solver(k, L)) def solver(k, L): L.sort() last = L[k - 1] return max(last - 25, 0) # declined = 0 # index = 0 # for x in range(1, L[k - 1]): # if x != L[index]: # if k == 0: # declined += 1 # else: # k -= 1 # else: # ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int k, m[30], mx, ans; int main() { cin >> k; for (int i = 0; i < k; i++) cin >> m[i]; mx = m[0]; for (int i = 0; i < k; i++) { if (m[i] > mx) mx = m[i]; } if (mx <= 25) cout << 0 << endl; else if (mx > 25) cout << mx - 25 << endl; return 0; }
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n = int(input()) print(max(max(list(map(int,input().split()))) - 25, 0))
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; const int fx[] = {+1, -1, +0, +0}; const int fy[] = {+0, +0, +1, -1}; int Set(int &N, int pos) { return N = N | (1 << pos); } int reset(int &N, int pos) { return N = N & ~(1 << pos); } bool check(int N, int pos) { return (bool)(N & (1 << pos)); } void init() { ios_base::s...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 e = new Scanner (System.in); int n=e.nextInt(); int num[]=new int[n]; for(int i=0; i<n; i++){ num[i]=e.nextInt(); } int a; 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 ...
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() { long long n, x[25]; cin >> n; long long max = 0; for (long long i = 0; i < n; i++) { cin >> x[i]; if (x[i] > max) max = x[i]; } if (max <= 25) cout << 0; else cout << 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 ...
k = int(input()) students = list(map(int, input().split())) answer = max(students) - 25 if answer < 0: print(0) else: print(answer)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
import os import sys from io import BytesIO, IOBase import math from decimal import Decimal from decimal import * from collections import defaultdict, deque import heapq from decimal import Decimal getcontext().prec = 25 abcd='abcdefghijklmnopqrstuvwxyz' ABCD='ABCDEFGHIJKLMNOPQRSTUVWXYZ' MOD = 1000000007 BUFSIZE = 8192...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
k = int(input()) r = map( int, input().split() ) i0 = 0 ans = k - 25 for i in sorted(r): ans += i - i0 - 1 i0 = i print(max(0, 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; int32_t main() { ios::sync_with_stdio(0); cin.tie(0); int n; int a[n + 10]; cin >> n; int mx = 25; for (int i = 0; i < n; i++) { int x; cin >> x; mx = max(mx, x); } cout << mx - 25 << endl; return 0; }
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
maxN = 25 n = input() ranks = input().strip().split() declines = 0 for rank in ranks: if int(rank) > maxN: declines = int(rank) - 25 maxN = int(rank) print(declines)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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, b, n; void setup() {} void solve() { cin >> n; for (int i = 1; i <= n; ++i) { cin >> a; b = max(b, a); } cout << max(0, b - 25); } int main() { setup(); solve(); 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() L=[int(x) for x in raw_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()) 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 ...
import java.io.*; import java.math.BigInteger; import java.util.*; /* *@RnPW */ public class Level1 { private static Scanner in =new Scanner(); public static void main(String[] args) throws IOException { int n=in.nextInt(); int[]prgs=new int[n]; for(int i=0;i<n;i++) prgs[i]=i...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
# import sys # sys.stdin=open("input1.in","r") # sys.stdout=open("output2.out","w") N=int(input()) arr=list(map(int,input().split())) arr.sort() if arr[-1]>=25: print(arr[-1]-25) else: print("0")
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int main() { ofstream fout; ifstream fin; ios_base::sync_with_stdio(false); ios::sync_with_stdio(false); long long int n; cin >> n; vector<long long int> v; for (long long int i = 0; i < n; i++) { long long int temp; cin >> temp; v.push_back(temp...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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())) t = max(l) 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 ...
import java.util.Scanner; public class DeclinedFinalists { public static void main(String[] args) { int maxRank = 0; Scanner scan = new Scanner(System.in); int numRanks = Integer.parseInt(scan.nextLine()); int[] allRanks = new int[numRanks]; String ranks = scan.nextLine();...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
import java.util.Scanner; public class ASQL { @SuppressWarnings("resource") public static void main(String[] args) { Scanner input = new Scanner(System.in); int k = input.nextInt(); int r = 25; for (int i = 0; i < k; i++){ r = Math.max(input.nextInt(), r); } System.out.println(Math.max(0, 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 = int(input()) a = list(map(int, input().split())) v = max(a) v = max(v, 25) print(v-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()) a = [int(i) for i in input().split()] an = max(a) - 25 if an <= 0: print(0) else: print(an)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 z = *max_element(a, a + n); if (z > 25) z = z - 25; else z = 0; cout << z; 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 k, i, a, m = 0; scanf("%d", &k); for (i = 0; i < k; i++) { scanf("%d", &a); if (a > m) { m = a; } } if (m < 25) { printf("0"); } if (m >= 25) { printf("%d", 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; bool vis[1001000]; int main() { int n; scanf("%d", &n); for (int i = 0; i < (n); ++i) { int x; scanf("%d", &x); vis[x] = 1; } int ans = 0; int rmd = 25 - n; for (int i = 1; i <= (1000000); ++i) { if (!vis[i]) { if (rmd == 0) ++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()) 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 ...
#include <bits/stdc++.h> using namespace std; const long long md = 1e9 + 7; long long a[1000005], n; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); long long q, m, k, h, ans = 0, sum = 0, p, x, y; cin >> n; for (int i = 0; i < n; ++i) { cin >> x; ans = max(ans, x); } cout <<...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
import java.io.BufferedOutputStream; import java.io.PrintWriter; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int max = -1; for (int i = 0; i < k; i++) { int nr = sc.nextI...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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() m = max([int(x) for x in input().split()]) 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.*; import java.math.*; import java.util.*; import java.util.stream.*; @SuppressWarnings("unchecked") public class P859A { public void run() throws Exception { int k = nextInt(), t = 0; Set<Integer> s = new HashSet(); for (int i = 0; i < k; s.add(nextInt()), i++); k = 25 - k; for ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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; template <class T> bool uin(T &a, T b) { return a > b ? (a = b, true) : false; } template <class T> bool uax(T &a, T b) { return a < b ? (a = b, true) : false; } inline int input() { int n; scanf("%d", &n); return n; } int main() { int k = input(); int maxn = ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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]; sort(arr, arr + n); if (arr[n - 1] - 25 > 0) cout << arr[n - 1] - 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 ...
#http://codeforces.com/problemset/problem/859/A def minReject(array,num): maxPos = 0 for i in range(len(array)): if array[i] > array[maxPos]: maxPos = i RV = array[maxPos]-25 if RV < 0: RV = 0 return RV ##print(minReject([2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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()) a=list(map(int,input().split())) if max(a)<=25: exit(print(0)) print(max(a)-25) #author:SK__Shanto__㋛ #code__define__your__smartness
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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=0 for i in range(n): m=max(m,l[i]) print(max(0,m-25))
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int main() { int K; while (cin >> K) { int arr[K], cou = 0; for (int i = 0; i < K; i++) { cin >> arr[i]; } sort(arr, arr + K); if (arr[K - 1] <= 25) { cout << 0 << endl; return 0; } else { cout << arr[K - 1] - 25 << endl; ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n = input() arr = map(int,raw_input().strip().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 ...
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 ...
#include <bits/stdc++.h> using namespace std; int main() { long long int k, i, j; cin >> k; long long int ar[k]; for (i = 0; i < k; i++) cin >> ar[i]; j = *max_element(ar, ar + k); if (j < 25) cout << "0" << endl; else cout << j - 25 << endl; return 0; }
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n=input() a=map(int,raw_input().split()) print max(0,len(set(range(max(a)+1))^set(a))-26+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 sys def main(): k = int(sys.stdin.readline().strip()) ranks = [int(tok) for tok in sys.stdin.readline().split()] print(max(max(ranks) - 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 ...
import java.io.IOException; import java.io.Serializable; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; public class Try { public static void main(String [] args) throws Exception { Scanner in=new Scanner(System.in); int x; ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 ans = 25; for (int i = 0; i < N; i++) { int a; scanf("%d", &a); ans = max(ans, a); } printf("%d\n", ans - 25); return 0; }
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int gcd(int a, int b) { return b ? gcd(b, a % b) : a; } double sqr(double a) { return a * a; } struct point { int x, y; }; long long a[1000010]; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); long long n, mx = 0, ans = 0; cin >> n; for (lo...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 n, temp, x, Max; int main() { ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); ; cin >> n; while (n--) cin >> x, Max = max(Max, x); if (Max <= 25) return cout << 0, 0; cout << 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 ...
a=int(input()) b=list(map(int,input().split())) c=max(b)-25 if c<=0: print(0) else: print(c)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- K=int(input()) r=[int(x) for x in input().split()] ans=max(r)-25 if max(r)-25>=0 else 0 print(ans)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
import java.io.*; import java.util.*; public class X { public static void main (String[] args) throws IOException { Scanner s=new Scanner(System.in); int n=s.nextInt(); int max=Integer.MIN_VALUE; for(int i=0;i<n;i++){ int x=s.nextInt(); if(max<x) max=x; } System.ou...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
import java.io.*; import java.util.*; public class A764 { public static void main(String [] args) { InputStream inputReader = System.in; OutputStream outputReader = System.out; InputReader in = new InputReader(inputReader); PrintWriter out = new PrintWriter(outputReader); Al...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n=int(input()) a=list(map(int,input().split())) d=max(a)-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 ...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int arr = 0, temp; for (int i = 0; i < n; ++i) { cin >> temp; if (temp > arr) arr = temp; } int ans = arr - 25; cout << (ans > 0 ? ans : 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 ...
n = int(input()) l = list(map(int,input().split())) if max(l)-25>=0: 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 ...
k = int(input()) a = list(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 ...
import java.io.*; import java.util.*; public class PalindromicSupersequence { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int hrank = 0; int n = Integer.pars...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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[25]; int max1 = 0; int v; for (int i = 1; i <= k; i++) { cin >> a[i]; if (max1 < a[i]) { max1 = a[i]; } } if (max1 - 25 > 0) { v = max1 - 25; } else { v = 0; } cout << v << 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 k; scanf("%d", &k); int m = 0; for (int i = 0; i < k; i++) { int p; scanf("%d", &p); m = max(m, p); } int ans = max(0, m - 25); printf("%d\n", ans); 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 int MOD = 1000000007ll; int main() { int k; cin >> k; int mx = 0; for (int i = 0; i < k; i++) { int a; cin >> a; mx = max(a, mx); } 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 ...
#include <bits/stdc++.h> using namespace std; int ar[1000001]; int main() { int n, k, x; cin >> n; for (int i = 0; i < n; i++) { cin >> ar[i]; } sort(ar, ar + n); k = ar[n - 1]; if (k <= 25) cout << 0 << endl; else cout << k - 25 << endl; return 0; }
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n=int(input()) max=1 s=input().split() for i in range(0,len(s)): s[i]=int(s[i]) if s[i]>max: max=s[i] if(max<26): print(0) else : print(max-25)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n=int(input()) a=list(map(int,input().split())) m=max(a) if m>25: print(m-25) else: print(0)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
K = int(raw_input()) m = max([int(i) for i in raw_input().split()]) print max(m - 25, 0)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n=int(raw_input()) a=map(int, raw_input().split()) if all(i<=25 for i in a): 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 = int(input()) x = max([int(i) for i in input().split()]) - 25 if x >= 0: print(x) else: print(0)
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
n = int(input()) L = list(map(int,input().split())) ans = 0 L.sort() print(max(0,L[-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 ...
m, = map(int,input().split()) 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 ...
n=int(input().rstrip()) a=max(list(map(int,input().rstrip().split(' ')))) print(max(0,a-25))
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
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 java.util.*; public class Finalists { public static void main(String args[]) { Scanner obj = new Scanner(System.in); int n = obj.nextInt(); int max=0; for(int i=0;i<n;i++) { int crap = obj.nextInt(); if(crap>max) max=crap; ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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() k = max(map(int,input().split())) print(0 if k <= 25 else 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 ...
/** * Created by Mahesh on 9/16/2017. */ import java.io.*; import java.util.*; public class A { public static void main(String[] args) { Scanner read = new Scanner(System.in); int num = read.nextInt(); long[] in = new long[num]; for(int x = 0; x < num; x++) { ...
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); long long n, c = 0, a, d = 0; cin >> n; while (n--) { cin >> a; c = max(c, a); } if (c < 26) cout << 0; else cout << c - 25; return 0; }