-
Notifications
You must be signed in to change notification settings - Fork 0
/
max
69 lines (69 loc) · 1.16 KB
/
max
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
class Maximum
{
int max;
int a[100];
int n;
int Max()
{
int i;
n = 50;
max = a[0];
a[0]=383;
a[1]=386;
a[2]=277;
a[3]=415;
a[4]=293;
a[5]=335;
a[6]=386;
a[7]=492;
a[8]=149;
a[9]=421;
a[10]=362;
a[11]=27;
a[12]=190;
a[13]=59;
a[14]=263;
a[15]=426;
a[16]=40;
a[17]=426;
a[18]=172;
a[19]=236;
a[20]=211;
a[21]=368;
a[22]=67;
a[23]=429;
a[24]=282;
a[25]=30;
a[26]=362;
a[27]=123;
a[28]=67;
a[29]=135;
a[30]=429;
a[31]=302;
a[32]=22;
a[33]=58;
a[34]=69;
a[35]=167;
a[36]=393;
a[37]=456;
a[38]=11;
a[39]=42;
a[40]=229;
a[41]=373;
a[42]=421;
a[43]=419;
a[44]=284;
a[45]=37;
a[46]=198;
a[47]=324;
a[48]=315;
a[49]=370;
for i=1, i<n
{
if(max<a[i])
{
max = a[i];
}
}
}
}