ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ Go
package main
import (
"fmt"
)
func main() {
var year int
fmt.Scanf("%d", &year)
if year%4 == 0 && (year%100 != 0 || year%400 == 0) {
fmt.Println(1)
} else {
fmt.Println(0)
}
}
๐จ Python3
import sys
year = int(sys.stdin.readline())
if year%4 == 0 and year%100 != 0 or year%400 == 0:
print(1)
else:
print(0)
728x90
'dev > algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ / 2739๋ฒ / ๊ตฌ๊ตฌ๋จ [Go] [Python3] (0) | 2020.03.19 |
---|---|
BOJ / 2884๋ฒ / ์๋ ์๊ณ [Go] [Python3] (0) | 2020.03.18 |
BOJ / 9498๋ฒ / ์ํ ์ฑ์ [Go] [Python3] (0) | 2020.03.16 |
BOJ / 1330๋ฒ / ๋ ์ ๋น๊ตํ๊ธฐ [Go] [Python3] (0) | 2020.03.15 |
BOJ / 2588๋ฒ / ๊ณฑ์ [Go] [Python3] (0) | 2020.03.14 |
๋๊ธ
๊ธ ๋ณด๊ดํจ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
TAG
- ํด์๋งต
- ํ๋ก์ด๋์์ฌ
- ๋ฐฑ์ค
- dfs
- ๋ฐ๋
- go
- java
- ์ด๋ถํ์
- MongoDB
- ์๊ณ ๋ฆฌ์ฆ
- python3
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- ๋ถํ ์ ๋ณต
- ์๋ฐ
- AWS
- Macbook pro 2012 mid 13
- BOJ
- ์๊ฐ๊ต์ฒด
- ๋งฅ๋ถํ๋ก
- ๋ชฝ๊ณ ๋๋น
- ballet
- ๋ธ๋ฃจํธํฌ์ค
- ํ
- Algorithm
- baekjoon
- ์คํ
- BFS
- dp
- Golang
- ๋งฅ๋ถ
- Total
- Today
- Yesterday