ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ Go
package main
import (
"fmt"
"bufio"
"os"
)
func main() {
var score, sum int
reader := bufio.NewReader(os.Stdin)
for i:=0; i<5; i++ {
fmt.Fscanln(reader, &score)
if score < 40 {
score = 40
}
sum += score
}
fmt.Println(sum/5)
}
๐จ Python3
import sys
sum = 0
for i in range(5):
score = int(sys.stdin.readline())
if score < 40:
score = 40
sum += score
print(int(sum/5))
728x90
'dev > algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ / 10817๋ฒ / ์ธ ์ [Go] [Python3] (0) | 2020.04.05 |
---|---|
BOJ / 5543๋ฒ / ์๊ทผ๋ ๋ [Go] [Python3] (0) | 2020.04.04 |
BOJ / 1110๋ฒ / ๋ํ๊ธฐ ์ฌ์ดํด [Go] [Python3] (0) | 2020.04.02 |
BOJ / 10951๋ฒ / A+B - 4 [Go] [Python3] (0) | 2020.04.01 |
BOJ / 10952๋ฒ / A+B - 5 [Go] [Python3] (0) | 2020.03.31 |
๋๊ธ
๊ธ ๋ณด๊ดํจ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
TAG
- ๋ฐฑ์ค
- ๋ธ๋ฃจํธํฌ์ค
- ๋ถํ ์ ๋ณต
- BFS
- ์๊ณ ๋ฆฌ์ฆ
- ๋ฐ๋
- BOJ
- AWS
- ๋งฅ๋ถ
- ์๊ฐ๊ต์ฒด
- Macbook pro 2012 mid 13
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- ํด์๋งต
- Algorithm
- python3
- ๋งฅ๋ถํ๋ก
- ์ด๋ถํ์
- dfs
- ํ
- baekjoon
- ๋ชฝ๊ณ ๋๋น
- ballet
- ์๋ฐ
- MongoDB
- Golang
- go
- dp
- ์คํ
- java
- ํ๋ก์ด๋์์ฌ
- Total
- Today
- Yesterday