Run ID:128327
提交时间:2025-08-15 08:48:03
#include<bits/stdc++.h> using namespace std; int main(){ int l,m,a[1001]={0},x1,x2,s=0; cin>>l>>m; for(int i=1;i<=m;i++){ for(int i=1;i<=2;i++){ cin>>x1>>x2; s=x2-x1; l=l-s; } } cout<<l; return 0; }