ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ 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
- ๋ธ๋ฃจํธํฌ์ค
- ์๊ฐ๊ต์ฒด
- ํ
- BFS
- ๋งฅ๋ถ
- ๋ฐ๋
- ๋งฅ๋ถํ๋ก
- ๋ชฝ๊ณ ๋๋น
- ์๋ฐ
- go
- ์คํ
- BOJ
- dp
- ํด์๋งต
- ํ๋ก์ด๋์์ฌ
- ๋ฐฑ์ค
- baekjoon
- ์๊ณ ๋ฆฌ์ฆ
- python3
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- Golang
- ๋ถํ ์ ๋ณต
- Macbook pro 2012 mid 13
- Algorithm
- java
- dfs
- MongoDB
- AWS
- ballet
- ์ด๋ถํ์
- Total
- Today
- Yesterday