prompt string | response string |
|---|---|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int m = 0;
for (int i = 0; i < K; i++) {
int r = sc.nextInt();
m = Math.max(m, r);
}
sc.close();
if (25 < m) {
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 ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, n, i, j, ck = 0, sum = 0;
cin >> n;
int arr[n];
for (i = 0; i < n; i++) {
cin >> arr[i];
}
sort(arr, arr + n);
for (i = 0; i < n; i++) {
if (arr[i] <= 25) {
ck++;
} else {
sum = abs(25 - arr[n - 1]);
}
}
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 = []
a = input().split()
for i in range (n):
a[i] = int(a[i])
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 k, maxi, n1, n2;
int main() {
cin >> k >> n1 >> n2;
maxi = max(n1, n2);
for (int i = 0; i < k - 2; i++) {
cin >> n2;
maxi = max(maxi, n2);
}
int out = maxi - 25;
if (out >= 0)
cout << out;
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 ... | #include <bits/stdc++.h>
#pragma comment(linker, "/STACK:64000000")
using namespace std;
const long long K = 1;
set<int> S;
int main() {
int n, i, x;
cin >> n;
for (i = 0; i < n; ++i) {
cin >> x;
S.insert(x);
}
i = 0;
while (S.size() < 25) {
i++;
S.insert(i);
}
cout << *S.rbegin() - 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.InputStream;
import java.io.InputStreamReader;
import java.util.*;
import java.util.stream.Collectors;
public class Main {
private static IO io = new IO();
public static void main(String[] args) throws Exception {
int k = io.get... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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())
ar = list(map(int, input().split()))
print(max(max(ar) - 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 ... | input()
a = max(list(map(int,input().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 ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, rank, m;
cin >> n;
cin >> rank;
for (int i = 1; i < n; i++) {
cin >> m;
if (rank < m) rank = m;
}
if (rank > 25)
cout << rank - 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 arr[26];
int main() {
int k, ptr = 1, sum = 0, num;
cin >> k;
arr[0] = 25;
for (int i = 0; i < k; i++) {
cin >> num;
if (num > 25) arr[ptr++] = num;
}
sort(arr, arr + ptr);
for (int i = ptr - 1; i > 0; i--) sum += arr[i] - arr[i - 1] - 1;
cout <<... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int Maxm, num, n;
int main() {
cin >> n;
for (int i = 0; i < n; i++) {
cin >> num;
Maxm = max(Maxm, num);
}
if (Maxm > 25)
cout << Maxm - 25;
else
cout << 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = input()
ranks = map(int, raw_input().split())
print max(0, max(ranks)-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)<0):
print(0)
else:
print(m-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int ans = 0, i, n, tmp = 0;
cin >> n;
int a[n];
for (i = 0; i < n; i++) {
cin >> a[i];
if (a[i] > tmp) tmp = a[i];
}
if (tmp > 25) ans = tmp - 25;
cout << 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;
int main() {
int n;
cin >> n;
int mx = 0;
int x;
for (int i = 0; i < n; i++) {
cin >> x;
if (x > mx) mx = x;
}
int ans = (mx - 25 < 0) ? 0 : mx - 25;
cout << 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 ... | a=int(input())
b=input().split()
max=0
for i in range(a):
if int(b[i])>max:
max=int(b[i])
if max>25:
print(max-25)
else:
print(0) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | k=int(input())
a=list(map(int,input().split()))
m=max(a)
l=[]
c1=c2=0
for i in a:
if(i>25):
l.append(i)
for i in range(1,26):
if i not in a:
c1+=1
for i in range(26,m+1):
if i not in a:
c2+=1
if(k==25):
print(c1+c2)
else:
print(c2+len(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;
map<char, long long> frequency(string s) {
map<char, long long> m;
for (long long i = 0; i < s.size(); i++) {
if (m.find(s[i]) != m.end())
m[s[i]]++;
else {
m.insert({s[i], 1});
}
}
return m;
}
void input(vector<long long>& v, long long 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 ... | k=int(input())
r=max(map(int,raw_input().split()))
if r-25>=0:
print r-25
else:
print 0 |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int a[30];
int main() {
int n;
while (scanf("%d", &n) == 1) {
for (int i = 0; i < n; i++) scanf("%d", &a[i]);
int ans = 0;
for (int i = 0; i < n; i++) ans = max(ans, a[i]);
ans = max(0, ans - 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 ... |
// hello
// hi
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.... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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) {
int ans = arr[n - 1] - 25;
cout << ans;
return 0;
}
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 ... | #include <bits/stdc++.h>
using namespace std;
const int MaxN = 25;
int n, a[MaxN];
int main() {
scanf("%d", &n);
for (int i = 0; i < n; ++i) scanf("%d", a + i);
sort(a, a + n);
if (a[n - 1] <= 25) {
puts("0");
} else
printf("%d", a[n - 1] - 25);
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | def main():
n=int(input())
l=input().split()
for i in range(len(l)):
l[i]=int(l[i])
maximum=l[0]
for i in range(n):
maximum=max(maximum, l[i])
maximum-=25
if maximum>=0:
print(maximum)
else:
print("0")
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())
max=0
a=list(map(int,input().split()))
for i in range(n):
if a[i] > max:
max=a[i]
if max > 25 :
print(max-25)
else:
print(0)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
const int inf = 0x3f3f3f3f;
using namespace std;
bool v[100000];
int len, ps[100000];
void Sieve() {
for (int i = 2; i < 100000; i += 2) ps[i] = 2;
for (int i = 3; i < 100000; i += 2) {
if (!v[i]) {
ps[i] = i;
for (int j = i; (j * i) < 100000; j += 2) {
if (!v[j * 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 math
n = int(input())
nums = input().split()
for i in range(n):
nums[i] = int(nums[i])
nums.sort()
if (nums[n-1] > 25):
print(nums[n-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 ... | l=lambda:map(int, raw_input().split())
n=input()
a=l()
maxi=max(a)
if maxi<26:
print 0
else:
print maxi-25 |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.*;
import java.util.*;
import java.math.*;
public class A {
public static void main(String[] args) throws IOException {
/**/
Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
/*/
Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(new FileInputStream... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 = raw_input()
m = raw_input().split(" ")
r = 0
for i in m:
if int(i) > r:
r = int(i)
print max(r - 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 ... | 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 ... | #include <bits/stdc++.h>
using namespace std;
inline bool ascending(int i, int j) { return (i < j); }
inline bool descending(int i, int j) { return (i > j); }
const int MN = 100000 + 51;
int main() {
int n, res = 0;
cin >> n;
for (int i = 0; i < n; ++i) {
int temp;
cin >> temp;
res = max(res, 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 ... | input()
res = max(0,max(map(int,input().split()))-25)
print(res)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int n, maxa;
int main() {
scanf("%d", &n);
while (n--) {
int a;
scanf("%d", &a);
maxa = max(maxa, a);
}
printf("%d", max(maxa - 25, 0));
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import java.io.BufferedReader;
import java.util.Collections;... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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 = list(map(int , input().split()))
Max = max(X) - 25
print(Max if Max >= 0 else '0' ) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
int K;
cin >> K;
int R[K];
for (int i = 0; i < K; i++) cin >> R[i];
sort(R, R + K);
cout << max(0, R[K - 1] - 25) << endl;
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
const int INF = (int)1.01e9;
const int N = 1 << 18;
int main() {
int n;
while (scanf("%d", &n) == 1) {
vector<int> a(n);
for (int i = 0; i < n; i++) scanf("%d", &a[i]);
sort(a.begin(), a.end());
printf("%d\n", max(0, a[n - 1] - 25));
}
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | '''
codeforces.com/problemset/problem/859/A
Author: latesum
'''
k = int(input())
r = list(map(int,input().split()))
print(max(max(r) - 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())
li=list(map(int,input().split()))
x=max(li)
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 ... | input();
a = list(map(int, input().split()))
m = max(a);
n =len(a)
if(m<=25):
print(0);
else:
print(m-25)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int srch(int *a, int n, int key) {
int lo = 0, hi = n - 1, mid = (lo + hi) / 2;
if (a[hi] <= key) return hi;
while (hi - lo > 1) {
if (key > a[mid]) {
lo = mid;
} else {
hi = mid;
}
mid = (lo + hi) / 2;
}
return mid;
}
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.*;
import java.io.*;
public class a {
public static void main(String[] arg) throws IOException {
new a();
}
public a() throws IOException {
FastScanner in = new FastScanner(System.in);
PrintWriter out = new PrintWriter(System.out);
int k = in.nextInt();
int max = in.nextInt();
for(int i ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Memsql {
static MyScanner in = new MyScanner();
static PrintWriter out = new PrintWriter(new BufferedOutputStrea... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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, maximum = 0, temp;
cin >> k;
for (i = 1; i <= k; ++i) {
cin >> temp;
if (temp > maximum) maximum = temp;
}
if (maximum > 25)
cout << maximum - 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 ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
double T[k];
int i;
for (i = 0; i < k; i++) {
cin >> T[i];
}
sort(T, T + k);
if (T[k - 1] > 25) {
cout << T[k - 1] - 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 ... | /**
* Created by Aminul on 9/16/2017.
*/
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
public class CF859A {
public static int index;
public static void main(String[] args)throws Exception {
FastR... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | k = int(input())
r = list(map(int,input().split()))
r.sort()
if r[-1] > 25:
print(r[-1] - 25)
else:
print("0") |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... |
import java.util.*;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int max = 0;
for (int i = 0; i < n; i++) {
int a = sc.nextInt();
if(a>max){
max = a;
}
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(input())
l=list(map(int,input().split()))
m=max(l)
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 ... | input()
print max(0, max(int(x) for x in raw_input().split()) - 25)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int n, admisi = 25, max0 = INT_MIN, answer;
bool a[1000001];
int main() {
cin >> n;
admisi -= n;
for (int i = 1; i <= n; i++) {
int x;
cin >> x;
a[x] = 1;
max0 = max(max0, x);
}
for (int i = 1; i <= max0; i++) {
if (!a[i]) {
if (admisi) {... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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())
max_element = max(arr);
if max_element <=25:
print 0
else:
print max_element - 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.io.*;
import java.math.*;
public class Sample implements Runnable
{
public static void solve()
{
int n=i();
int[] a=new int[n];
int[] hash=new int[10000005];
boolean flag=false;
f... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | /**
* Created by Harmoush on 9/14/2017.
*/
import java.util.Arrays;
import java.util.Scanner;
public class Solution {
public static void main(String... args) {
Scanner in = new Scanner(System.in);
int k = in.nextInt();
int []arr = new int[k];
for (int i = 0; i < k; i++) {
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | def declined(known, ranks):
known = int(known)
ranks = [int(x) for x in ranks]
ranks.sort()
if known >= 25:
prev = 0
declined = 0
for rank in ranks:
rank = int(rank)
diff = rank - prev
if diff > 1:
declined += diff - 1
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
public class MemSQLA {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int base = 0;
int length = scan.nextInt();
int[] arr = new int [length];
for(int i=0;i<length;i++) {
arr[i] = scan.nextInt();
int k=arr[i];
if (k>base)
base=k;
}
if (base-25<0) {
System.out.printl... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(input())
k=list(map(int,input().split()))
if max(k)>25:
print(max(k)-25)
else:
print("0") |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n = int(input())
l = map(int, input().split())
max = max(l)
print(0 if max - 25 < 0 else 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 ... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.InputMismatchExc... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who 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__":
input()
ar = map(int, input().split())
m = max(ar)
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 ... | /*
* Copyright (c) 2017 SSI Schaefer Noell GmbH
*
* $Id: Solution 6:47 PM $ / $HeadURL: $
*
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.StringTokenizer;
/**
* @a... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
public class DeclinedFinalists{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
TreeSet<Integer> ts = new TreeSet();
for(int k = 0; k < K; k++){
ts.add(sc.nextInt());
}
int res;
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | s = int(input())
l = list(map(int, input().split()))
l.sort(reverse = True)
if l[0] < 25:
print(0)
exit()
print(l[0] - 25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
int maks = 0;
for (int tmp = 0; tmp < k; tmp++) {
int a;
cin >> a;
if (a > 25) {
maks = max(maks, a - 25);
}
}
cout << maks << "\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 ... | num = int(input())
arr = list(map(int,input().split(' ')))
maxx = max(arr)
if maxx > 25:
print(maxx-25)
else:
print(0)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | n=int(raw_input())
A=map(int, raw_input().split())
def mes(n,A):
a=max(A)
if a<=25:
return 0
else:
return a-25
print mes(n,A) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import javax.print.DocFlavor;
import java.beans.IntrospectionException;
import java.io.*;
import java.lang.reflect.Array;
import java.util.*;
import java.lang.*;
import static java.lang.Math.*;
public class main implements Runnable {
static ArrayList<Integer> adj[];
static void Check2(int n) {
adj = n... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, mx = 0;
cin >> k;
for (int i = 0, r; i < k; i++) cin >> r, mx = max(mx, r);
cout << max(mx - 25, 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 a[n];
for (int i = 0; i < n; i++) {
cin >> a[i];
}
sort(a, a + n);
if (a[n - 1] < 25) {
cout << 0;
} else
cout << a[n - 1] - 25;
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
long long int i, j;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long int k, n;
cin >> k;
long long int maxi = -1;
for (i = 0; i < k; i++) {
cin >> n;
maxi = max(maxi, n);
}
if (maxi > 25)
cout << maxi - 25;
else
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 ... | n=int(input())
a=[int(x) for x in input().split()]
mx=max(a)
#print(mx)
if(mx<=25):
print(0)
else:
print(mx-25)
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
void testcase() {
int K;
cin >> K;
vector<int> arr;
for (int x = 0; x < K; x++) {
int temp;
cin >> temp;
arr.push_back(temp);
}
sort(arr.begin(), arr.end());
if ((arr[arr.size() - 1]) <= 25) {
cout << 0 << endl;
return;
} else {
cout ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
vector<int> a(n);
int maxx = 0;
for (int i = 0; i < n; ++i) {
cin >> a[i];
maxx = max(maxx, a[i]);
}
cout << max(0, maxx - 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())
s = [int(i) for i in input().split()]
if max(s)>25:
print(max(s)-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 ... | a=int(input())
d=input()
finalists=[]
for veri in d.split(' '):
finalists.append(int(veri))
print(max(max(finalists)-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 ... | # cook your dish here
a=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 ... | #include <bits/stdc++.h>
using namespace std;
const double PI = 3.1415926535897;
int main() {
int k, maxi = INT_MIN;
cin >> k;
for (int i = 0; i < k; i++) {
int x;
cin >> x;
if (maxi < x) maxi = x;
}
int res = maxi - 25;
if (res < 0) res = 0;
cout << res << "\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 ... |
from math import *
from decimal import *
getcontext().prec = 20
import copy
def mp():
return map(int,str(raw_input()).split())
mod=10**9+7
k=input()
l=list(mp())
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 ... | #!/usr/bin/env python
from sys import stdin, stderr
def main():
N = int(stdin.readline())
A = map(int, stdin.readline().split())
M = max(A)
res = max(M - 25, 0)
print res
return 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.*;
import java.util.*;
public class div429A
{
BufferedReader in;
PrintWriter ob;
StringTokenizer st;
public static void main(String[] args) throws IOException {
new div429A().run();
}
void run() throws IOException {
//in=new BufferedReader(new FileReader("input.txt"));
in=new BufferedReader(n... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
int k = Reader.nextInt();
int max = -1;
while (k-- > 0) {
int i = Reader.nextInt();
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
/**
* Created by mohammad on 9/13/17.
*/
public class main {
static ArrayList<String> l;
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
int [] rnk = 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;
cin >> n;
vector<int> v(n);
vector<int>::iterator it;
for (int i = 0; i < n; i++) {
cin >> v[i];
}
it = max_element(v.begin(), v.end());
int max = *it;
if (max - 25 < 0) {
cout << 0 << endl;
} else {
cout << max - 25 << en... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.Scanner;
public class A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
long max = Integer.MIN_VALUE;
for(int i = 0; i < n; i++) {
long k = sc.nextLong();
if(max < k) {
max = k;
}
}
if(max <= 25) {
System.out.prin... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | """
██╗ ██████╗ ██╗ ██████╗ ██████╗ ██╗ █████╗
██║██╔═══██╗██║ ╚════██╗██╔═████╗███║██╔══██╗
██║██║ ██║██║ █████╔╝██║██╔██║╚██║╚██████║
██║██║ ██║██║ ██╔═══╝ ████╔╝██║ ██║ ╚═══██║
██║╚██████╔╝██║ ███████╗╚██████╔╝ ██║ █████╔╝
╚═╝ ╚═════╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚════╝
""" ... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
int m = -1;
cin >> K;
while (K--) {
int x;
cin >> x;
m = max(m, x);
}
if (m <= 25) m = 25;
cout << m - 25 << endl;
return 0;
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | K = input()
A = map(int, raw_input().split())
A.append(0)
A.sort()
ans = 0
for i in xrange(K):
ans += A[i+1] - A[i] - 1;
print max(0, ans-25+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 ... | 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 ... | #include <bits/stdc++.h>
using namespace std;
int v[26 + 1];
int main() {
int i, k, res = 0;
scanf("%d", &k);
for (i = 1; i <= k; ++i) scanf("%d", &v[i]);
sort(v + 1, v + k + 1);
res = v[1] - 1;
for (i = 1; i < k; ++i) res = res + v[i + 1] - v[i] - 1;
printf("%d\n", max(0, res - (25 - k)));
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;
using vi = vector<int>;
using pi = pair<int, int>;
using ll = long long int;
template <typename T1, typename T2, typename T3>
T1 modpow(T1 _a, T2 p, T3 mod) {
assert(p >= 0);
ll ret = 1, a = _a;
if (a < 0) {
a %= mod;
a += mod;
}
if (a >= mod) {
a %= m... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | t=int(input())
m=0
sum=0
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 ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = Integer.parseInt(s.nextLine().trim());
int[] l = new int[n];
String[] st = s.nextLine().split(" ");
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 ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
int T[100];
cin >> k;
cout << '\n';
int a;
for (int i = 0; i < k; i++) {
cin >> a;
T[i] = a;
}
int m = T[0];
for (int i = 0; i < k; i++) {
if (T[i] > m) m = T[i];
}
cout << max(0, (m - 25));
}
|
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
import java.util.Scanner;
public class Salamander
{
public static void main(String args[])
{
Scanner s = new Scanner(System.in);
int x = s.nextInt();
int r=0,count = 0;
for(int i=0; i<x ; i++)
{
int y = s.nextInt();
if(y>=25 && y>r)
{ count = y - 25;
r = y;
... |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | t=int(input())
a=[int(x) for x in input().split()]
c=0
a.sort()
m=25
for i in range(0,t):
if a[i]>m:
c+=a[i]-m
m=a[i]
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 ... | import java.util.*;
import java.util.stream.Collectors;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int allowed = 25;
int max = 0;
for (int i = 0; i < n; i++) {
int v = 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 ... | n = int(input())
s = input().split()
s = list(map(int, s))
s.sort()
if(s[n-1]<25):
print("0")
else:
print(s[n-1]-25) |
Problem: This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each ... | import java.util.*;
public class Startcup
{
public static void main(String args[])
{
Scanner e= new Scanner(System.in);
int k=e.nextInt();
int a[]=new int[k];
int g=0;
for(int i=0;i<k;i++)
{
a[i]=e.nextInt();
if(g<a[i])
g=a[i];
}
if(g-25 <= 0)
System.out.println("0");
else
System.out.println(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 ... | k = int(input())
lowest_ranked_competitor = max(list(map(int, input().split())))
print(lowest_ranked_competitor - 25 if lowest_ranked_competitor - 25 > 0 else 0) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.