結果
問題 | No.799 赤黒かーどげぇむ |
ユーザー |
![]() |
提出日時 | 2023-07-27 23:02:28 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 475 bytes |
コンパイル時間 | 4,634 ms |
コンパイル使用メモリ | 250,964 KB |
最終ジャッジ日時 | 2025-02-15 19:36:59 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/all>using namespace atcoder;using namespace std;using ll=long long;using ld=long double;ld pie=3.141592653589793;ll mod=998244353 ;ll inf=10000999999999900;int main(){ll a,b,c,d;cin >> a >> b >> c >> d;ll ans=0;for (ll i = a; i <=b; i++){for (ll j = c; j <=d; j++){if (i!=j){ans++;}}}cout << ans << endl;}