Last active
September 18, 2022 19:51
-
-
Save modos/19362872c4e5e6ecf9a1bda3426ae9f8 to your computer and use it in GitHub Desktop.
جاده کشی
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int n = scanner.nextInt(); | |
int row = n / 2; | |
int col = (n % 2) + row; | |
System.out.print((row + 1) * (col + 1)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment