题解:P15062 [UOI 2024 II Stage] Shops LHE812 · 2026-01-26 16:16:04 · 题解 题目传送门 此题直接用容斥原理即可,所以只需输出 a+b-c 。 AC Code: #include<bits/stdc++.h> using namespace std; int a,b,c; int main(){ cin>>a>>b>>c; cout<<a+b-c; return 0; }