結果

問題 No.80 四角形を描こう
ユーザー bluemeganebluemegane
提出日時 2020-09-07 15:06:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 5,000 ms
コード長 325 bytes
コンパイル時間 813 ms
コンパイル使用メモリ 67,236 KB
実行使用メモリ 22,840 KB
最終ジャッジ日時 2023-08-19 16:47:57
合計ジャッジ時間 2,293 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
20,808 KB
testcase_01 AC 52 ms
20,788 KB
testcase_02 AC 53 ms
20,672 KB
testcase_03 AC 52 ms
20,604 KB
testcase_04 AC 52 ms
20,548 KB
testcase_05 AC 52 ms
18,668 KB
testcase_06 AC 51 ms
20,768 KB
testcase_07 AC 52 ms
20,848 KB
testcase_08 AC 51 ms
20,800 KB
testcase_09 AC 52 ms
22,840 KB
testcase_10 AC 52 ms
22,600 KB
testcase_11 AC 51 ms
20,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        var d = int.Parse(Console.ReadLine().Trim());
        if (d <= 3) Console.WriteLine(0);
        else getAns(d);
    }
    static void getAns(int d)
    {
        var a = d / 4;
        var b = (d - 2 * a) / 2;
        Console.WriteLine(a * b);
    }
}
0