1 条题解
-
0
#include<bits/stdc++.h> typedef long long ll, LL; using namespace std; #define pb push_back void solve() { ll a1, a2, b1, b2; int ans = 0; cin >> a1 >> a2 >> b1 >> b2; if(a1 > b1 && a2 >= b2 || a1 >= b1 && a2 > b2) ans+=2; if(a1 > b2 && a2 >= b1 || a1 >= b2 && a2 > b1) ans+=2; cout << ans; } int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int t = 1; // cin >> t; while(t--) { solve(); } return 0; }
- 1
信息
- ID
- 1660
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 1
- 标签
- 提交数
- 163
- 已通过
- 20
- 上传者