結果

問題 No.799 赤黒かーどげぇむ
ユーザー maimai
提出日時 2019-03-17 21:22:44
言語 Ruby
(3.2.2)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 66 ms
コンパイル使用メモリ 11,304 KB
実行使用メモリ 15,296 KB
最終ジャッジ日時 2023-09-22 03:15:21
合計ジャッジ時間 2,903 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,124 KB
testcase_01 AC 85 ms
15,096 KB
testcase_02 AC 85 ms
15,100 KB
testcase_03 AC 85 ms
15,204 KB
testcase_04 AC 85 ms
15,188 KB
testcase_05 AC 84 ms
15,296 KB
testcase_06 AC 84 ms
15,108 KB
testcase_07 AC 85 ms
15,156 KB
testcase_08 AC 84 ms
15,192 KB
testcase_09 AC 84 ms
15,104 KB
testcase_10 AC 83 ms
15,296 KB
testcase_11 AC 84 ms
15,212 KB
testcase_12 AC 84 ms
15,276 KB
testcase_13 AC 87 ms
15,024 KB
testcase_14 AC 84 ms
15,244 KB
testcase_15 AC 84 ms
15,096 KB
testcase_16 AC 87 ms
15,124 KB
testcase_17 AC 84 ms
15,104 KB
testcase_18 AC 84 ms
15,244 KB
testcase_19 AC 85 ms
15,260 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