結果
問題 |
No.799 赤黒かーどげぇむ
|
ユーザー |
![]() |
提出日時 | 2019-07-05 19:50:19 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 271 ms |
コンパイル使用メモリ | 27,776 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-22 04:40:42 |
合計ジャッジ時間 | 1,029 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 5 |
ソースコード
#include<stdio.h> int main() { int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); int ans = (b - a + 1) * (d - c + 1); if (c > a)a = c; if (d < b)b = d; ans -= b - a + 1; printf("%d\n", ans); return 0; }