結果

問題 No.799 赤黒かーどげぇむ
ユーザー koi_kotyakoi_kotya
提出日時 2019-03-18 17:54:38
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 87 bytes
コンパイル時間 423 ms
コンパイル使用メモリ 11,348 KB
実行使用メモリ 15,328 KB
最終ジャッジ日時 2023-09-25 15:56:29
合計ジャッジ時間 3,352 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,116 KB
testcase_01 AC 81 ms
15,104 KB
testcase_02 AC 83 ms
15,064 KB
testcase_03 AC 79 ms
15,100 KB
testcase_04 AC 84 ms
15,084 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 80 ms
15,080 KB
testcase_08 AC 80 ms
15,036 KB
testcase_09 AC 81 ms
15,152 KB
testcase_10 AC 80 ms
15,036 KB
testcase_11 AC 80 ms
15,112 KB
testcase_12 WA -
testcase_13 AC 82 ms
15,024 KB
testcase_14 AC 82 ms
15,060 KB
testcase_15 AC 80 ms
15,128 KB
testcase_16 AC 81 ms
15,136 KB
testcase_17 AC 80 ms
15,272 KB
testcase_18 AC 81 ms
15,048 KB
testcase_19 AC 81 ms
15,204 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b,c,d = gets.split.map(&:to_i)
ans = (b-a+1)*(d-c+1)-[0,[b-c,d-a].min+1].max
puts ans
0