結果

問題 No.80 四角形を描こう
ユーザー hhgfhn1hhgfhn1
提出日時 2018-10-29 16:04:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 293 bytes
コンパイル時間 4,746 ms
コンパイル使用メモリ 70,968 KB
実行使用メモリ 56,192 KB
最終ジャッジ日時 2023-08-12 08:22:23
合計ジャッジ時間 6,081 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,696 KB
testcase_01 AC 125 ms
55,844 KB
testcase_02 AC 125 ms
54,024 KB
testcase_03 AC 122 ms
55,940 KB
testcase_04 AC 125 ms
55,888 KB
testcase_05 AC 122 ms
56,060 KB
testcase_06 AC 121 ms
56,192 KB
testcase_07 AC 125 ms
56,040 KB
testcase_08 AC 124 ms
56,016 KB
testcase_09 AC 126 ms
56,116 KB
testcase_10 AC 126 ms
53,960 KB
testcase_11 AC 126 ms
56,000 KB
権限があれば一括ダウンロードができます

ソースコード

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