結果

問題 No.80 四角形を描こう
ユーザー htensaihtensai
提出日時 2019-12-06 08:58:23
言語 Java19
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 244 bytes
コンパイル時間 3,637 ms
コンパイル使用メモリ 71,480 KB
実行使用メモリ 56,248 KB
最終ジャッジ日時 2023-08-24 19:45:01
合計ジャッジ時間 6,097 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,296 KB
testcase_01 AC 120 ms
55,648 KB
testcase_02 AC 119 ms
55,660 KB
testcase_03 AC 120 ms
55,800 KB
testcase_04 AC 121 ms
55,456 KB
testcase_05 AC 121 ms
55,588 KB
testcase_06 AC 122 ms
56,044 KB
testcase_07 AC 122 ms
55,452 KB
testcase_08 AC 121 ms
55,656 KB
testcase_09 AC 121 ms
55,796 KB
testcase_10 AC 122 ms
56,140 KB
testcase_11 AC 122 ms
56,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int half = n / 2;
		int a = half / 2;
		int b = half - a;
		System.out.println(a * b);
   }
}

0