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 ... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
;
int Max = 0;
int K;
cin >> K;
while (K--) {
int num;
cin >> num;
Max = max(Max, num);
}
Max > 25 ? cout << Max - 25 << "\n" : cout << 0 << "\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 ... | import java.util.*;
public class Main
{
public static void main(String[] args) {
int k,x=0;
Scanner sc = new Scanner(System.in);
k= sc.nextInt();
int arr[]=new int[k];
for(int i=0; i<k; i++)
{
arr[i]=sc.nextInt();
}
Arrays.sort(arr);
if(arr[k-1]>25)
{
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.Scanner;
public class ADeclinedFinalists {
public static void main(String[] args) {
try {
ADeclinedFinalists adf = new ADeclinedFinalists();
adf.run();
}catch(Exception e) {
e.printStackTrace();
}
}
public void run() {
Scanner scan = new Scanner(System.in);
int k;
int r;
i... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.*;
import java.util.StringTokenizer;
public class Codeforces_MemSQL_round_1_DeclinedFinalists {
public static void main(String[] args) {
FScanner input = new FScanner();
out = new PrintWriter(new BufferedOutputStream(System.out), true);
int n = input.nextInt();
int ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 ... | from sys import stdin
lines = stdin.readlines()
k = int(lines[0])
r = map(int,lines[1].split())
c = max(r)
if c <= 25:
print 0
else:
print c-25 |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.*;
import java.util.*;
import java.math.*;
public class utkarsh {
InputStream is;
PrintWriter out;
long maxl = (long) 4e18, mod = (long)1e9 + 7L;
int p[], s[], maxi = (int) 2e9, sz, np = 15485900, modi = (int)1e9 + 7;
boolean b[]; // = isPrime();
void 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.Scanner;
public class Declined{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int a, b, max = 0;
a = input.nextInt();
for(int i = 0; i < a; i++) {
b = input.nextInt();
if(b > max) {
max = b;
}
}
if(max < 26) {
System.out.println("0");
}... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | //package Day3;
import java.io.*;
import java.util.*;
/**
* Created with IntelliJ IDEA.
* User: Aditya Kolla
* Date: 4/1/19
*/
public class A4 {
static FastReader in;
public static void main(String[] args) {
in = new FastReader();
int n = ni();
ArrayList<Integer> list = new ArrayL... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 in=new Scanner(System.in);
int k=in.nextInt();
int a[]=new int[k];
int max=0;
for(int i=0;i<k;i++)
{
a[i]=in.nextInt();
max=Math.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 ... | K = int(input())
r = list(map(int, input().split()))
m = max(r)
ans = max(0, m-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 ... | K=int(raw_input())
tc=[int(k) for k in raw_input().split(" ")]
mtc=max(tc)
if mtc<=25:
print 0
else:
print mtc-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 ... | a=int(input())
b=list(map(int,input().split()))
if max(b)<=25:
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 ... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Stack;
import java.util.StringTokenizer;
/**
* @author Andrei Chugunov
*/
public class A {
BufferedReader br;
PrintWriter out;
StringTokenizer st;
void solve() t... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
unsigned long long int n = 0, k, max = 0, S = -1;
cin >> k;
for (int i = 0; i < k; i++) {
cin >> n;
if (n > 25) S++;
if (n > 25 && n >= max + 25) max = n - 25;
}
if (S == -1)
cout << 0;
else
cout << max;
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
import math
import bisect
def main():
n = int(input())
A = list(map(int, input().split()))
if max(A) < 25:
print(0)
else:
print(max(A) - 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 ... | import java.util.Scanner;
public class DeclinedFinalists {
private static Scanner reader = new Scanner(System.in);
public static void main (String[] args){
int k ;
int max = Integer.MIN_VALUE;
k = reader.nextInt();
for (int i = 0 ; i < k ; ++i)
max = Integer.max(ma... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = input()
arr = map(int,raw_input().split())
x = max(arr)-25
if x<=0:
print 0
else:
print 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 ... | import java.io.*;
import java.security.SecureRandom;
import java.util.*;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
ConsoleIO io = new ConsoleIO(new InputStreamReader(System.in), new PrintWriter(System.out));
//String test = "sample";
//Console... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.Scanner;
public class DeclinedFinalists
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int num = scan.nextInt();
int temp = 0;
int max = 0;
while (num != 0)
{
temp = scan.nextInt();
if (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 ... | #!/usr/bin/env python
import sys
k = int(input())
ranks = sorted(list(map(int, input().split())))
vacancy = 25 - k
indx = 0
declined = 0
while vacancy > 0 and indx < k:
unknown = ranks[indx] - (ranks[indx - 1] if indx > 0 else 0) - 1
if vacancy <= unknown:
declined += unknown - vacancy
vacancy =... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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())
ranklist = map(int,raw_input().split())
maxrank = max(ranklist)
if maxrank >= 25:
print maxrank - 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 ... | from collections import Counter
n = int(input())
l = list(map(int,input().split()))
print(max(max(l) - 25,0)) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long k;
cin >> k;
long long arr[k];
for (int i = 0; i < k; i++) cin >> arr[i];
sort(arr, arr + k);
long long ans = 0;
long long prev = 25;
for (int i = 0; i < k; i++) {
if (arr[i] <= 25) continue;
if (prev <= 25)
ans += arr[i]... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | k = int(input())
rs = frozenset(map(int, input().split()))
print(max(max(rs) - 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 maxn = 22;
const long long mod = 1e9 + 7;
const int inf = 0x3f3f3f3f;
int main() {
if (fopen("/home/lianyi/123.txt", "r") != NULL) {
freopen("/home/lianyi/123.txt", "r", stdin);
} else {
std::ios::sync_with_stdio(false);
cin.tie(0);
}
int n;
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, num[30], x, cnt = 1;
scanf("%d", &n);
num[0] = 25;
for (int i = 1; i <= n; ++i) {
scanf("%d", &x);
if (x > 25) {
num[cnt++] = x;
}
}
sort(num, num + cnt);
int sum = 0;
for (int i = 1; i < cnt; ++i) {
sum += num[i] - ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
a = list(map(int, input().split()))
q = max(a)
print(max(0, q - 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()))
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 n;
int a[33];
int my = -10009;
int main() {
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> a[i];
my = max(my, a[i]);
}
int ans = my - 25;
cout << 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;
int main() {
int k;
cin >> k;
int ans = INT_MIN;
for (int i = 0; i < k; i++) {
int x;
cin >> x;
ans = max(ans, x);
}
if (ans < 25)
cout << 0 << endl;
else
cout << (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 ... |
import java.util.*;
public class abcd
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int n= sc.nextInt();
int arr[]=new int[n];
int count = 0;
for(int i = 0;i<n;i++)
arr[i]=sc.nextInt();
Arrays.sort(arr);
fo... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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;
int ans = 0;
cin >> n;
for (int i = 0; i < n; i++) {
int k;
cin >> k;
ans = max(ans, k);
}
ans = max(ans - 25, 0);
cout << ans << endl;
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n =int(input())
x = max([int(d)for d in input().split()])
if x<=25:
print(0)
else:
print(x-25)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
const double eps = 1e-10;
using namespace std;
int n, m, k, b;
int in[100];
int answ = INT32_MAX;
int main() {
scanf("%d", &k);
for (int i = 0; i < k; i++) {
scanf("%d", &in[i]);
}
sort(in, in + k);
if (in[k - 1] - 25 <= 0) {
printf("%d\n", 0);
return 0;
}
printf("%d\n... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | b=int(input())
a=list(map(int,input().split()))
b=0
a.sort()
for i in range(b):
if a[i]>25:
b+=1
if a[-1]>25:
b=b+(a[-1]-25-b)
print(b)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
public class DeclinedFinalists {
public static void main (String args[]){
int k, mx =-1;
Scanner in = new Scanner(System.in);
k = in.nextInt();
for(int i =0;i< k ;i++){
mx = Math.max(mx, in.nextInt());
}
System.out.println((mx-25 ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
s = input()
s = s.split()
s = list(map(int,s))
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;
cin >> n;
int arr[n];
int ary[n];
int p = 0;
for (int i = 0; i < n; i++) {
cin >> arr[i];
if (arr[i] > 25) {
ary[p] = arr[i];
p++;
}
}
sort(arr, arr + n);
sort(ary, ary + p);
if (arr[n - 1] <= 25 && n <= 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 ... | numbers = int(input())
max_number_of_finalist = 25
for i in input().split():
max_number_of_finalist = max(max_number_of_finalist, int(i))
print(max_number_of_finalist - 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 Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int length = scanner.nextInt();
int el;
// int arr[] = new int[length];
int max = 0;
for(int i=0;i<length;i++){
el = sc... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... |
import java.util.*;
public class DeclinedFinalists {
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int finalists = sc.nextInt();
int max = -1;
for(int i=0; i<finalists; i++)
{
int next = sc.nextInt();
if(max < next)
{
max = next;
}
}
int 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 ... | import java.util.*;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
public class Es
{
static class Pair
{
int first, second;
public Pair(int f, int s)
{
first = f;
second = s;
}
public String toString()
{
return first + " " + second;
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.Scanner;
public class DeclinedFinalists {
public static void main(String[] args) {
Scanner k = new Scanner(System.in);
String K = k.nextLine();
String list = k.nextLine();
k.close();
int n = Integer.parseInt(K);
int declined = 0;
int high = 25;
String[] ranks = list.split(" "... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | //package AIM_tech_round;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException{
Reader.init(System.in);
int n = Reader.nextInt();
i... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.*;
import java.text.*;
import java.util.*;
import java.math.*;
public class cfa {
public static void main(String[] args) throws Exception {
FastScanner f = new FastScanner();
int k = f.nextInt();
int max = Integer.MIN_VALUE;
for(int i = 0; i < k; i++)
{
int in = f.nextInt();
if(in > 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 ... | n=int(input())
print(max(0,max(list(map(int,input().split())))-25))
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt(), x = 0;
for (int i = n; i > 0; i--) {
int t = input.nextInt();
if (x < t) {
x = t;
}
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | def main():
n = int(input())
ranks = [int(_) for _ in input().split()]
m = max(ranks)
print(0 if m <= 25 else (m - 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 ... | import java.util.Scanner;
public class A859 {
public static void main(String q[]){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int ar[]=new int[n];
int mx=-999;
for (int i=0;i<n;i++){
ar[i]=sc.nextInt();
if(mx<ar[i])
mx=ar[i... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
arr = input()
arr = arr.split(' ')
arr = list(map(int, arr))
m = -1
for c in arr:
if c > m:
m = c
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 ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int K = scanner.nextInt();
int maxRank = 25;
for (int i = 1; i <= K; i++) {
int ri = scanner.nextInt();
if (ri > maxRank)
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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, as, a, i;
cin >> n;
for (i = 1, as = 0; i <= n; i++) {
cin >> a;
as = max(a, as);
}
as = max(0, as - 25);
cout << as << endl;
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long n, r = -1, left, ans = 0;
bool b[1000001] = {};
cin >> n;
left = 25 - n;
for (long long f = 0; f <= n - 1; ++f) {
long x;
cin >> x;
b[x] = 1;
r = max(r, x);
}
for (l... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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, a = 0;
cin >> k;
for (int i = 1; i <= k; i++) {
int v;
cin >> v;
a = max(a, v);
}
if (a <= 25)
cout << 0 << endl;
else
cout << (a - 25) << endl;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = input()
arr = map(int, raw_input().split())
print max(0,max(arr)-25)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
a = set(int(x) for x in input().split())
cur = 1
while len(a) < 25:
if cur not in a:
a.add(cur)
cur += 1
aa = [0] + list(a)
aa.sort()
ans = sum(y - x - 1 for x, y in zip(aa, aa[1:]))
print(ans)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, mx = -1, n;
cin >> n;
while (n--) {
cin >> x;
mx = max(x, mx);
}
if (mx <= 25)
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 ... | import java.util.Scanner;
import java.util.Arrays;
public class DeclinedFinalists {
public static void main(String[] args) {
Scanner console = new Scanner(System.in);
int k = console.nextInt();
int[] ranks = new int[k];
for (int i = 0; i < k; i++) {
ranks[i] = console.nextInt();
}
consol... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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()))
pivot = 25
for i in range(len(b)):
if b[i] > pivot:
pivot = b[i]
print(pivot - 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 DeclinedFinalists {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int[] r = new int[k];
for(int i = 0; i < k; i++) {
r[i] = sc.nextInt();
}
Arrays.sort(r);
System.out.println(r[k - 1] > 25 ? r[k - 1] - 25 : 0);
}
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(input())
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.util.*;
import java.lang.*;
import java.math.*;
public class a{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
// String ch;
Integer n=sc.nextInt(),max=0;
Integer[] a = new Integer[n];
// ,c=sc.nextInt(),i=0,j=0,count=0;
// System.out.println(r*c-(rCo... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 compare(pair<int, int> p1, pair<int, int> p2) {
if (1) return true;
return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie();
long long k;
cin >> k;
long long maxx = 0, x;
long long zero = 0;
for (int i = 0; i < k; i++) {
cin >> x;
maxx... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 AI1 = 10005;
const int AIMAX = 1e6 + 1;
int main() {
int k;
cin >> k;
int a[k];
for (int i = 0; i < k; i++) cin >> a[i];
sort(a, a + k);
if (a[k - 1] > 25)
cout << a[k - 1] - 25 << endl;
else
cout << 0 << endl;
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, maxi = INT_MIN;
cin >> n;
for (int i = 0; i < n; i++) {
int a;
cin >> a;
maxi = max(maxi, a);
}
if (maxi < 25) {
maxi = 25;
}
cout << 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 ... | _ = input()
x = max(int(i) for i in input().split())
if x <= 25:
print(0)
else:
print(x-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
l = list(map(int, input().split()))
g = max(l)
if g <= 25:
print(0)
else:
print(g - 25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
std::vector<int> onsight;
int maxnum(0);
for (int i = 0; i < n; i++) {
int a;
cin >> a;
onsight.push_back(a);
maxnum = max(maxnum, a);
}
sort(onsight.begin(), onsight.end());
int numDeclines(0);
if (maxnum < 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 com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2;
import java.io.*;
import java.util.*;
public class Main {
static final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE") != null;
static final int[][] STEPS = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}};
void solve() throws IOException {
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.Arrays;
import java.util.Scanner;
public class Problem_A {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner s=new Scanner(System.in);
int k=s.nextInt();
int[] arr=new int[k];
for(int i=0;i<arr.length;i++)
{
arr[i]=s.nextInt();
}
Arrays.sort(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 ... | /* 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 Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner in = new Scanner(System.in);
int k... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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)>=0):
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 ... | n = int(raw_input())
arr = map(int, raw_input().split())
highest = max(arr) - 25
if highest <= 0:
print 0
else:
print highest
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | # bsdk idhar kya dekhne ko aaya hai, khud kr!!!
# import math
# from itertools import *
# import random
# import calendar
# import datetime
# import webbrowser
n = int(input())
arr = list(map(int, input().split()))
max_ = max(arr)
if max_ - 25 <= 0:
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 ... | #include <bits/stdc++.h>
using namespace std;
int K;
int main() {
cin >> K;
int a, a_max = 0;
while (K--) {
cin >> a;
if (a > a_max) a_max = a;
}
if (a_max - 25 > 0)
cout << a_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 ... | k = int(input())
list1 = list(map(int, input().split()))
print(max(0, max(list1) -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())
r = list(map(int, input().split()))
print(max(r) - 25) if 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;
const int max_n = 30;
long long a[max_n], sum;
int n, indx;
int main() {
cin >> n;
for (int i = 0; i < n; i++) cin >> a[i];
sort(a, a + n);
for (int i = 1; i < a[n - 1]; i++) {
if (i != a[indx])
sum++;
else
indx++;
}
sum = sum - (25 - 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 ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, max = 0;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> x;
if (x > max) max = x;
}
if (max > 25) {
cout << max - 25 << endl;
} else
cout << "0" << endl;
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int mx = 0;
for (int i = 0; i < n; 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 ... | 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;
long long i, j, n, c[123456], a[1234], b[125678], d[123456], l, ll, r, s, t, k,
m, xh, x, x1, y, z;
string p;
vector<string> q[123];
int main() {
cin >> n;
for (i = 0; i < n; i++) {
cin >> x;
s = max(s, x);
}
cout << max(0ll, s - 25);
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = input()
listmp = raw_input().split()
for i in range(n):
listmp[i] = int(listmp[i])
listmp.sort()
ans = int(listmp[-1]) - 25
if ans <0:
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 ... | #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;
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 MOD = 1e9 + 7;
long long power(long long a, long long b) {
long long ret = 1;
while (b) {
if (b & 1) ret *= a;
a *= a;
if (ret >= MOD) ret %= MOD;
if (a >= MOD) a %= MOD;
b >>= 1;
}
return ret;
}
long long invmod(long long x) { re... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
a = list(map(int, input().split()))
m = max(a)
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.util.Scanner;
public class _0357DeclinedFinalists {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k=sc.nextInt();
int max=0;
for(int i=0;i<k;i++) {
max=Math.max(max, sc.nextInt());
}
if(max<=25) {
System.out.println(0);
}
else {
System.out.p... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(input())
a=list(map(int,input().split()))
if max(a)<=25:
print("0")
else:
print(max(a)-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
import java.lang.*;
public class decFin
{
public static void main(String[] args)
{
Set<Integer> ranks = new HashSet<Integer>();
Scanner rdr = new Scanner(System.in);
int numFin = Integer.parseInt(rdr.nextLine());
String[] arrRank = rdr.nextLine().split(" ");
for(int i = 0; i < arrRank.... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class DeclinedFinalists {
public static void main(String[] args) {
Scanner s= new Scanner(System.in);
int a= s.nextInt();
int result=0;
s.nextLine();
ArrayList<Integer> rankHolder=new ArrayList<Integer>();
while(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 n;
int a[10000000];
int ans;
int main() {
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a[i];
}
int lol = *max_element(a + 1, a + 1 + n) - 25;
if (lol < 0)
cout << 0;
else
cout << lol;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 = input(), 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 ... | #include <bits/stdc++.h>
int main() {
const int F = 25;
long k;
scanf("%ld", &k);
long maxRank(0);
for (long p = 0; p < k; p++) {
long x;
scanf("%ld", &x);
maxRank = (maxRank > x) ? maxRank : x;
}
printf("%ld\n", (maxRank > F) ? (maxRank - F) : 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())
s = list(map(int, input().split()))
s.sort()
if s[-1] > 25:
print(s[-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;
void RI() {}
template <typename... T>
void RI(int& head, T&... tail) {
scanf("%d", &head);
RI(tail...);
}
void RLL() {}
template <typename... T>
void RLL(long long& head, T&... tail) {
scanf("%lld", &head);
RLL(tail...);
}
void print() { putchar('\n'); }
template <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())
l=list(map(int,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 ... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Try2{
public static void main(String[] args) {
FastScanner fs = new FastScanner();
int t = 1;
while (t-- > 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 sum = 0;
while (n--) {
int x;
cin >> x;
sum = max(sum, x);
}
if (sum < 25) {
cout << 0;
return 0;
} else {
cout << sum - 25;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.