1546 평균
Console/Algorithm 2019. 10. 15. 21:44
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Syntax1
{
class Program
{
static void Main(string[] args)
{
var n = int.Parse(Console.ReadLine());
int[] arr = new int[n];
var input = Console.ReadLine();
int m = 0;
{
arr[i] = int.Parse(arr2[i]);
if (arr[i] > m)
{
m = arr[i];
}
}
float b = 0;
{
var c = (float)arr[j] /(float) m * 100;
b = b + c;
}
Console.WriteLine(b / (float)n);
}
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|
'Console > Algorithm' 카테고리의 다른 글
2577 숫자의 개수 (0) | 2019.10.15 |
---|---|
2739 구구단 (0) | 2019.09.30 |
10817 세수 (0) | 2019.09.28 |
2753 윤년 (0) | 2019.09.27 |
1330 두 수 비교하기 (0) | 2019.09.27 |