結果
| 問題 |
No.799 赤黒かーどげぇむ
|
| コンテスト | |
| ユーザー |
sakaki_tohru
|
| 提出日時 | 2019-03-17 21:27:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 486 bytes |
| コンパイル時間 | 631 ms |
| コンパイル使用メモリ | 87,820 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-07 20:24:15 |
| 合計ジャッジ時間 | 1,244 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 10 |
ソースコード
#include <iomanip>
#include <cmath>
#include <sstream>
#include <unordered_map>
#include <unordered_set>
#include <deque>
#include <vector>
#include <bitset>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include<iostream>
#include<map>
#include<algorithm>
using namespace std;
int main() {
int a, b, c, d; cin >> a >> b >> c >> d;
int ans = 0;
if (b - c >= 0) {
ans -= (b - c + 1);
}
ans += (b - a + 1)*(d - c + 1);
cout << ans << endl;
return 0;
}
sakaki_tohru