{"provider_url":"https://hatena.blog","published":"2014-08-09 19:05:39","blog_url":"https://logfiles.hatenablog.com/","url":"https://logfiles.hatenablog.com/entry/20140809/1407578739","blog_title":"Logfiles","image_url":null,"provider_name":"Hatena Blog","height":"190","type":"rich","title":"UVa11926 Multitasking","author_url":"https://blog.hatena.ne.jp/moistx/","categories":["UVa"],"author_name":"moistx","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140809%2F1407578739\" title=\"UVa11926 Multitasking - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","description":"\u89e3\u6cd5 \u8a08\u7b97\u91cf\u304c3*10^9\u304f\u3089\u3044\u306b\u306a\u308b\u306e\u3067\u5618\u89e3\u6cd5\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u3001\u3044\u3082\u3059\u6cd5\u3067\u89e3\u3044\u305f\u3002 #include <bits/stdc++.h> using namespace std; #define MAX (1000000) int main() { int N, M; while(cin >> N >> M && (N|M)) { int arr[MAX+1] = {}; for(int i=0; i<N; i++) { int s, t; cin >> s >> t; arr[s] ++; arr[t] --; } for(int i=0; i<M; i++) { int s, t; cin >\u2026"}