Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7504 - Массивын их

Өгөгдсөн нэг хэмжээст бүхэл тоон массив дахь хамгийн их элементийг / тоог / ол.

Input

Эхний мөрөнд массивын элементийн тоо өгөгдөнө.

Дараагийн мөрөнд массивын элементүүд / бүхэл тоо / зайгаар тусгаарлагдан өгөгдөнө. 

Output

Хамгийн их тоо.

Example

Input:
5
3 -2 4 7 -6
Output:
7

Нэмсэн:Bataa
Огноо:2013-01-15
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2024-05-02 13:11:14














































































































































































































































































































































































































2023-09-13 04:08:55
a=int(input())
c=int(0)
e=int(0)
b = input().split()
c=int(b[0])
for x in range(0,a):
d=int(b[x])
if c<d:
c=int(d)
print(c)
2023-05-25 03:49:31
qwertyefrtdcvgvtveft

Last edit: 2023-05-25 03:50:03
2023-03-17 10:46:24
#include <iostream>
#include <math.h>
using namespace std;
int main (){
int n, a[100],m=0,i;
cin>>n;
for(i=1;i<=n;i++)
cin>>a[i];
m=a[1];
for(i=1; i<=n; i++){

if(a[i]>m) m=a[i];
}
cout<<m<<endl;
return 0;
}
muu suguud maine huul c++
2023-03-07 10:44:32
arai arai haa saigui rick roll
2023-03-02 07:23:42
...

Last edit: 2023-03-02 07:27:31
2023-02-05 06:06:31
#include<stdio.h>
int main()
{
int i, n, b=0, a[1000];
scanf("%d" ,&n);
for(i=1; i<=n; i++)
scanf("%d" ,&a[i]);
for(i=1; i<=n; i++)
{
if(a[i]>b)
b=a[i];
}
printf("%d" ,b);

return 0;
} mai suguud
2023-02-04 07:37:33
huuhduudee bolgoomjtoi baigaarai
rickroll warning rickroll HAA SAIGUI BAINASHUU
2022-12-20 04:15:39
#include <iostream>
using namespace std;

int main() {
int too1, too2[too1], i, jishto = 0;
cin >> too1;
for(i = 0; i < too1; i++)
cin >> too2[i];
for(i = 0; i < too1; i++) {
if(too2[i] > jishto)
jishto = too2[i];
}
cout << jishto;
} yun buruu ym be


Last edit: 2022-12-20 04:16:05
2022-11-25 11:03:52
https://www.youtube.com/watch?v=MUV1GJ-ZyOw
https://www.youtube.com/watch?v=MUV1GJ-ZyOw
https://www.youtube.com/watch?v=MUV1GJ-ZyOw
https://www.youtube.com/watch?v=MUV1GJ-ZyOw
https://www.youtube.com/watch?v=MUV1GJ-ZyOw

Last edit: 2022-11-25 11:07:00
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.