結果
| 問題 | 
                            No.799 赤黒かーどげぇむ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             sumeragifseiei
                         | 
                    
| 提出日時 | 2019-03-17 21:26:48 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 228 bytes | 
| コンパイル時間 | 496 ms | 
| コンパイル使用メモリ | 58,468 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-07 20:20:08 | 
| 合計ジャッジ時間 | 1,415 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 WA * 10 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
int a, b, c, d;
int main(void)
{
	cin >> a >> b >> c >> d;
	cout << (b - a + 1) * (d - c + 1) - max(0, b - c + 1) << endl;
}
            
            
            
        
            
sumeragifseiei