結果
| 問題 |
No.799 赤黒かーどげぇむ
|
| コンテスト | |
| ユーザー |
hitowhoknowknow
|
| 提出日時 | 2019-03-17 21:23:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 701 bytes |
| コンパイル時間 | 1,302 ms |
| コンパイル使用メモリ | 79,064 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-07 20:02:40 |
| 合計ジャッジ時間 | 1,112 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <queue>
#include <string>
#include <bitset>
using namespace std;
#define rep(i,a,n) for(ll i=a;i<n;i++)
#define rrep(i,a,n) for(ll i=n;i>=a;i--)
#define elif else if
typedef long long ll;
typedef pair<ll,ll> P;
const ll INF = 1e+17;
const ll MODcdf = 998244353;
bool pairCompare(const P& firstElof,const P& secondElof){
return firstElof.first<secondElof.first;
}
//10^12<2^41
int main(){
cin.tie(0);
ios_base::sync_with_stdio(false);
ll a,b,c,d;cin>>a>>b>>c>>d;
ll ans=0;
rep(i,a,b+1){
rep(j,c,d+1){
if(i!=j)ans++;
}
}
cout<<ans<<endl;
}
hitowhoknowknow