結果

問題 No.799 赤黒かーどげぇむ
ユーザー トミートミー
提出日時 2024-04-26 19:30:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 82,340 KB
実行使用メモリ 59,044 KB
最終ジャッジ日時 2024-04-26 19:30:48
合計ジャッジ時間 1,865 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,032 KB
testcase_01 AC 40 ms
51,868 KB
testcase_02 AC 41 ms
58,348 KB
testcase_03 AC 38 ms
52,540 KB
testcase_04 AC 38 ms
51,808 KB
testcase_05 AC 38 ms
52,004 KB
testcase_06 AC 40 ms
58,124 KB
testcase_07 AC 38 ms
51,944 KB
testcase_08 AC 38 ms
52,164 KB
testcase_09 AC 41 ms
59,044 KB
testcase_10 AC 38 ms
52,504 KB
testcase_11 AC 38 ms
52,744 KB
testcase_12 AC 37 ms
51,884 KB
testcase_13 AC 38 ms
51,872 KB
testcase_14 AC 38 ms
53,192 KB
testcase_15 AC 40 ms
57,064 KB
testcase_16 AC 42 ms
57,496 KB
testcase_17 AC 38 ms
52,368 KB
testcase_18 AC 41 ms
59,044 KB
testcase_19 AC 38 ms
52,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    a,b,c,d=map(int,input().split())
    l=[]
    cnt=0
    for i in range(a,b+1):
        for j in range(c,d+1):
            cnt+=(i!=j)
    print(cnt)

    pass


if __name__ == "__main__":
    main()
0