ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๋ฌธ์ œ

 

1330๋ฒˆ: ๋‘ ์ˆ˜ ๋น„๊ตํ•˜๊ธฐ

๋‘ ์ •์ˆ˜ A์™€ B๊ฐ€ ์ฃผ์–ด์กŒ์„ ๋•Œ, A์™€ B๋ฅผ ๋น„๊ตํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘์„ฑํ•˜์‹œ์˜ค.

www.acmicpc.net


โœ๐Ÿป ํ’€์ด

๐ŸŽจ Go

package main

import (
	"fmt"
)

func main() {
	var a, b int
	fmt.Scanf("%d %d", &a, &b)
	if a>b {
		fmt.Println(">")
	} else if a<b {
		fmt.Println("<")
	} else if a==b {
		fmt.Println("==")
	}
}

๐ŸŽจ Python3

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)
	}
}
728x90
๋Œ“๊ธ€