結果
| 問題 |
No.799 赤黒かーどげぇむ
|
| コンテスト | |
| ユーザー |
LaFolia13
|
| 提出日時 | 2019-03-17 21:25:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 410 bytes |
| コンパイル時間 | 1,409 ms |
| コンパイル使用メモリ | 166,880 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-07 20:11:10 |
| 合計ジャッジ時間 | 2,243 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using llong = long long;
using ldbl = long double;
using P = pair<llong, llong>;
#define BE(x) x.begin(), x.end()
const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;
int main(){
int a,b,c,d;
cin >> a >> b >> c >> d;
llong ans = 0;
for(int i = a; i <= b; i++)
for(int j = c; j <= d; j++)
if(i != j)
ans++;
cout << ans << endl;
return 0;
}
LaFolia13