diff --git a/UVALive/7483.cpp b/UVALive/7483.cpp new file mode 100644 index 0000000..4687890 --- /dev/null +++ b/UVALive/7483.cpp @@ -0,0 +1,29 @@ +#include +using namespace std; + +#define pb push_back + +int main() +{ + int N; + while(cin>>N){ + vector arr[201]; + for (int i=1;i<=N;i++){ + int a, b; + scanf("%d%d",&a,&b); + arr[a].pb(b); + } + int mn=2e9, ans=0; + for (int i=1;i<=N+N;i++){ + if (mn < i) ans++, mn = 2e9; + for(int j=0;j