https://programmers.co.kr/learn/courses/30/lessons/12944
โ ์ฒ์ ํผ ํ์ด
1
2
3
4
5
6
7
8
9
10
|
class Solution {
public double solution(int[] arr) {
double answer = 0;
for(int i=0; i<arr.length;i++){
answer+=arr[i];
}
answer/=arr.length;
return answer;
}
}
|
cs |
'JAVA > ํ๋ก๊ทธ๋๋จธ์ค' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
K๋ฒ์งธ์/programmers/level1/java/sort()/copyOfRange() (0) | 2020.02.11 |
---|---|
ํ๋ ฌ ๋ง์ (0) | 2020.02.10 |
[ Java / Level 1] ์ฝ์์ ํฉ /programmers (0) | 2020.02.10 |
์ง์ฌ๊ฐํ ๋ณ์ฐ๊ธฐ/java/ํ๋ก๊ทธ๋๋จธ์ค (0) | 2020.02.07 |
๋ฌธ์์ด์ ์ ์๋ก ๋ฐ๊พธ๊ธฐ/java/substring()/Integer.parseInt() (0) | 2020.02.07 |