結果
問題 |
No.799 赤黒かーどげぇむ
|
ユーザー |
![]() |
提出日時 | 2021-03-26 18:45:22 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 1,952 ms |
コンパイル使用メモリ | 193,128 KB |
最終ジャッジ日時 | 2025-01-19 21:48:27 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i<n;i++) typedef pair<int,int>P; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; int cnt=0; for(int i=a;i<=b;i++){ for(int j=c;j<=d;j++){ if(i != j) cnt++; } } cout<<cnt<<endl; return 0; }