結果

問題 No.799 赤黒かーどげぇむ
ユーザー otsunekootsuneko
提出日時 2021-05-07 20:31:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 106 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 86,968 KB
実行使用メモリ 71,460 KB
最終ジャッジ日時 2023-10-13 11:24:25
合計ジャッジ時間 2,742 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,280 KB
testcase_01 AC 62 ms
71,456 KB
testcase_02 AC 65 ms
71,340 KB
testcase_03 AC 64 ms
71,324 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 66 ms
71,440 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 63 ms
71,208 KB
testcase_14 AC 69 ms
71,224 KB
testcase_15 AC 66 ms
71,228 KB
testcase_16 AC 70 ms
71,212 KB
testcase_17 AC 67 ms
71,248 KB
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C,D = map(int,input().split())
ans = (B-A+1)*(D-C+1)
if (B-C+1) > 0:
    ans -= (B-C+1)
print(ans)
0