結果

問題 No.80 四角形を描こう
ユーザー fjafjafjafjafjafja
提出日時 2017-10-06 15:28:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 219 bytes
コンパイル時間 5,347 ms
コンパイル使用メモリ 71,724 KB
実行使用メモリ 56,508 KB
最終ジャッジ日時 2023-08-10 16:57:21
合計ジャッジ時間 7,431 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,464 KB
testcase_01 AC 117 ms
55,532 KB
testcase_02 AC 118 ms
56,000 KB
testcase_03 AC 119 ms
55,672 KB
testcase_04 AC 118 ms
56,424 KB
testcase_05 AC 110 ms
55,728 KB
testcase_06 AC 111 ms
55,768 KB
testcase_07 AC 115 ms
56,508 KB
testcase_08 AC 114 ms
56,092 KB
testcase_09 AC 111 ms
55,684 KB
testcase_10 AC 123 ms
55,696 KB
testcase_11 AC 116 ms
56,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N80 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int d=sc.nextInt();
		d=(d%2==1)?((d-1)/2):d/2;
		System.out.println((d/2)*(d-d/2));
	}
}
0