結果

問題 No.799 赤黒かーどげぇむ
ユーザー bluemeganebluemegane
提出日時 2021-04-18 17:05:59
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 451 bytes
コンパイル時間 1,568 ms
コンパイル使用メモリ 64,828 KB
実行使用メモリ 22,772 KB
最終ジャッジ日時 2023-09-17 07:48:59
合計ジャッジ時間 4,022 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
20,720 KB
testcase_01 AC 57 ms
20,740 KB
testcase_02 AC 57 ms
20,660 KB
testcase_03 AC 58 ms
20,620 KB
testcase_04 AC 58 ms
20,756 KB
testcase_05 AC 57 ms
20,728 KB
testcase_06 AC 57 ms
20,768 KB
testcase_07 AC 58 ms
22,720 KB
testcase_08 AC 57 ms
20,704 KB
testcase_09 AC 57 ms
20,796 KB
testcase_10 AC 57 ms
20,756 KB
testcase_11 AC 57 ms
18,688 KB
testcase_12 AC 56 ms
20,716 KB
testcase_13 AC 58 ms
22,708 KB
testcase_14 AC 57 ms
22,768 KB
testcase_15 AC 57 ms
20,752 KB
testcase_16 AC 57 ms
20,752 KB
testcase_17 AC 57 ms
22,700 KB
testcase_18 AC 57 ms
22,772 KB
testcase_19 AC 56 ms
20,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var a = int.Parse(line[0]);
        var b = int.Parse(line[1]);
        var c = int.Parse(line[2]);
        var d = int.Parse(line[3]);
        var count = 0;
        for (int i = a; i <= b; i++)
            for (int j = c; j <= d; j++)
                if (i != j) count++;
        Console.WriteLine(count);
    }
}
0