結果

問題 No.80 四角形を描こう
ユーザー dgd1724
提出日時 2016-10-20 07:25:44
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 467 bytes
コンパイル時間 1,523 ms
コンパイル使用メモリ 158,732 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-23 14:34:21
合計ジャッジ時間 2,146 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

//const static double	de_PI	= 3.14159265358979323846;
//const static int	de_MOD	= 1000000007;
//const static int	de_MAX	= 999999999;
//const static int	de_MIN = -999999999;

int main(void) {

	//std::ifstream in("123.txt");	std::cin.rdbuf(in.rdbuf());

	int D = 0;
	std::cin >> D;

	if (D <= 3) {
		std::cout << 0 << std::endl;
		return 0;
	}

	if (D % 2 == 1) {
		D -= 1;
	}

	std::cout << D / 4 * ceil(D / 4.0) << std::endl;
	return 0;
}

0