結果

問題 No.799 赤黒かーどげぇむ
ユーザー 👑 maimai
提出日時 2019-03-17 21:22:44
言語 Ruby
(3.1.1p18 )
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 29 ms
使用メモリ 13,996 KB
最終ジャッジ日時 2023-02-11 03:23:58
合計ジャッジ時間 2,632 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 71 ms
13,988 KB
testcase_01 AC 70 ms
13,900 KB
testcase_02 AC 70 ms
13,716 KB
testcase_03 AC 70 ms
13,848 KB
testcase_04 AC 71 ms
13,788 KB
testcase_05 AC 70 ms
13,784 KB
testcase_06 AC 70 ms
13,832 KB
testcase_07 AC 71 ms
13,944 KB
testcase_08 AC 71 ms
13,996 KB
testcase_09 AC 71 ms
13,832 KB
testcase_10 AC 71 ms
13,720 KB
testcase_11 AC 71 ms
13,836 KB
testcase_12 AC 71 ms
13,800 KB
testcase_13 AC 70 ms
13,848 KB
testcase_14 AC 72 ms
13,980 KB
testcase_15 AC 72 ms
13,832 KB
testcase_16 AC 71 ms
13,852 KB
testcase_17 AC 71 ms
13,972 KB
testcase_18 AC 73 ms
13,776 KB
testcase_19 AC 71 ms
13,868 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def ascan; gets.split.map(&:to_i); end

a,b,c,d = ascan

t = (b-a+1)*(d-c+1)
t -= [0,[b,d].min-[a,c].max+1].max
p t
0