結果

問題 No.80 四角形を描こう
ユーザー nanophoto12nanophoto12
提出日時 2014-11-28 00:11:38
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 388 bytes
コンパイル時間 2,620 ms
コンパイル使用メモリ 99,464 KB
実行使用メモリ 22,780 KB
最終ジャッジ日時 2023-09-01 22:31:28
合計ジャッジ時間 4,092 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,800 KB
testcase_01 WA -
testcase_02 AC 53 ms
20,736 KB
testcase_03 AC 53 ms
18,628 KB
testcase_04 AC 55 ms
20,668 KB
testcase_05 AC 54 ms
22,712 KB
testcase_06 AC 54 ms
20,832 KB
testcase_07 AC 54 ms
20,756 KB
testcase_08 AC 54 ms
20,828 KB
testcase_09 AC 55 ms
22,700 KB
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

internal class Probram80
{
    public static void Main(string[] args)
    {
        int d = int.Parse(Console.ReadLine());
        if (d%2 == 1)
        {
            Console.WriteLine(0);
            return;
        }
        var half = d/2;
        var width = half / 2;
        var height = half - width;
        Console.WriteLine(width*height);
    }
}
0