結果
問題 | No.799 赤黒かーどげぇむ |
ユーザー |
![]() |
提出日時 | 2019-03-17 21:31:43 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 454 bytes |
コンパイル時間 | 2,508 ms |
コンパイル使用メモリ | 158,028 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 20:46:20 |
合計ジャッジ時間 | 1,890 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>#define rep(i,n) for(int i=0;i<(n);++i)#define ALL(A) A.begin(), A.end()using namespace std;typedef long long ll;typedef pair<int, int> P;int main(){ios_base::sync_with_stdio(0);cin.tie(0);int A, B, C, D; cin >> A >> B >> C >> D;int res = 0;for (int X = A; X <= B; ++X){for (int Y = C; Y <= D; ++Y){if (X != Y){++res;} // end if} // end for} // end forcout << res << endl;return 0;}