結果
問題 | No.799 赤黒かーどげぇむ |
ユーザー |
![]() |
提出日時 | 2019-03-18 13:30:47 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 949 bytes |
コンパイル時間 | 645 ms |
コンパイル使用メモリ | 87,020 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 07:39:04 |
合計ジャッジ時間 | 1,332 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream>#include <algorithm>#include <vector>#include <map>#include <set>#include <string>#include <cmath>#include <iomanip>#include <queue>#include <unordered_map>#include <unordered_set>#include <bitset>#include <cassert>#include <cstring>#include <climits>using namespace std;#define FOR(i, a, b) for (int i = (a); i < (b); i++)#define rep(i, n) FOR(i, 0, n)#define SORT(c) sort((c).begin(), (c).end())#define INF (ll)1e18#define MOD (ll)1e9 + 7#define pb push_backtypedef long long ll;typedef long long int llt;typedef pair<int, int> P;typedef vector<int> V;typedef map<int, int> M;char dif = 'A' - 'a';int main(){cin.tie(0);ios::sync_with_stdio(false);int a, b, c, d;cin >> a >> b >> c >> d;int ans = 0;for (int i = a; i <= b;i++){for (int j = c; j <= d;j++){if(j!=i)ans++;}}cout << ans << endl;return 0;}