結果

問題 No.80 四角形を描こう
ユーザー hhgfhn1
提出日時 2018-10-29 16:04:11
言語 Java
(openjdk 23)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 293 bytes
コンパイル時間 2,683 ms
コンパイル使用メモリ 74,544 KB
実行使用メモリ 54,188 KB
最終ジャッジ日時 2024-11-19 07:41:03
合計ジャッジ時間 5,296 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int half=n/2;
		int a=half/2;
		int b=(int) Math.ceil(half/2.0);
		System.out.println(a*b);
	}
}
0