ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ Go
package main
import (
"fmt"
)
func main() {
var score int
var grade string
fmt.Scanf("%d", &score)
if 90 <= score {
grade ="A"
} else if 80 <= score{
grade = "B"
} else if 70 <= score {
grade = "C"
} else if 60 <= score {
grade = "D"
} else {
grade = "F"
}
fmt.Println(grade)
}
๐จ Python3
import sys
score = int(sys.stdin.readline())
if score >= 90:
grade = 'A'
elif score >= 80:
grade = 'B'
elif score >= 70:
grade = 'C'
elif score >= 60:
grade = 'D'
else:
grade = 'F'
print(grade)
728x90
'dev > algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ / 2884๋ฒ / ์๋ ์๊ณ [Go] [Python3] (0) | 2020.03.18 |
---|---|
BOJ / 2753๋ฒ / ์ค๋ [Go] [Python3] (0) | 2020.03.17 |
BOJ / 1330๋ฒ / ๋ ์ ๋น๊ตํ๊ธฐ [Go] [Python3] (0) | 2020.03.15 |
BOJ / 2588๋ฒ / ๊ณฑ์ [Go] [Python3] (0) | 2020.03.14 |
BOJ / 10430๋ฒ / ๋๋จธ์ง [Go] [Python3] (0) | 2020.03.14 |
๋๊ธ
๊ธ ๋ณด๊ดํจ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
TAG
- python3
- ๋ฐ๋
- ์ด๋ถํ์
- dp
- go
- Golang
- baekjoon
- ๋งฅ๋ถ
- ๋ฐฑ์ค
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- ์๋ฐ
- ํ๋ก์ด๋์์ฌ
- dfs
- ๋งฅ๋ถํ๋ก
- ballet
- ๋ถํ ์ ๋ณต
- ํด์๋งต
- Macbook pro 2012 mid 13
- java
- ์คํ
- BFS
- ๋ธ๋ฃจํธํฌ์ค
- ๋ชฝ๊ณ ๋๋น
- ์๊ณ ๋ฆฌ์ฆ
- AWS
- ํ
- BOJ
- Algorithm
- ์๊ฐ๊ต์ฒด
- MongoDB
- Total
- Today
- Yesterday