Skip to content

Commit 7675795

Browse files
committed
codeforces: watermelon
1 parent 5f2e507 commit 7675795

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

codeforces_day01/Watermelon.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package main
2+
3+
import (
4+
"bufio"
5+
"fmt"
6+
"os"
7+
"strconv"
8+
)
9+
10+
11+
func main() {
12+
scanner:=bufio.NewScanner(os.Stdin)
13+
scanner.Split(bufio.ScanWords)
14+
scanner.Scan()
15+
t,_:=strconv.Atoi(scanner.Text())
16+
17+
if(t>2&&t%2==0){
18+
fmt.Println("YES")
19+
}else{
20+
fmt.Println("NO")
21+
}
22+
}

0 commit comments

Comments
 (0)