結果

問題 No.80 四角形を描こう
ユーザー m2543315647m2543315647
提出日時 2015-05-22 16:15:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 5,000 ms
コード長 214 bytes
コンパイル時間 3,124 ms
コンパイル使用メモリ 74,704 KB
実行使用メモリ 41,796 KB
最終ジャッジ日時 2024-04-16 22:28:02
合計ジャッジ時間 5,319 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
41,384 KB
testcase_01 AC 124 ms
41,524 KB
testcase_02 AC 129 ms
41,204 KB
testcase_03 AC 124 ms
41,620 KB
testcase_04 AC 127 ms
41,472 KB
testcase_05 AC 131 ms
41,728 KB
testcase_06 AC 126 ms
41,232 KB
testcase_07 AC 126 ms
41,116 KB
testcase_08 AC 115 ms
40,400 KB
testcase_09 AC 126 ms
41,092 KB
testcase_10 AC 127 ms
41,256 KB
testcase_11 AC 130 ms
41,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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