mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 03:11:58 +00:00
parent
ae8fbf25c1
commit
f6c6af3bd7
40
AtCoder/ARC068/E/E.cpp
Normal file
40
AtCoder/ARC068/E/E.cpp
Normal file
@ -0,0 +1,40 @@
|
||||
#include <iostream>
|
||||
#include <numeric>
|
||||
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
const char endl = '\n';
|
||||
|
||||
const int M = 1e5 + 5;
|
||||
|
||||
int n, m, c[M], s[M];
|
||||
|
||||
int main() {
|
||||
std::ios::sync_with_stdio(false);
|
||||
cin.tie(nullptr);
|
||||
|
||||
cin >> n >> m;
|
||||
|
||||
for (int i = 1, x, y; i <= n; i++) {
|
||||
cin >> x >> y;
|
||||
|
||||
c[x--]++, c[y + 1]--;
|
||||
|
||||
for (int l = 1, r; l <= x; l = r + 1) {
|
||||
r = std::min(x / (x / l), y / (y / l));
|
||||
|
||||
if (x / l < y / l) {
|
||||
c[l]++;
|
||||
c[r + 1]--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::partial_sum(c + 1, c + 1 + m, s + 1);
|
||||
|
||||
for (int i = 1; i <= m; i++) {
|
||||
cout << s[i] << endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
BIN
AtCoder/ARC068/E/data/00_example_01.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/00_example_01.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/00_example_01.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/00_example_01.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/00_example_02.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/00_example_02.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/00_example_02.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/00_example_02.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/01.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/01.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/01.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/01.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/02.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/02.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/02.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/02.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/03.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/03.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/03.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/03.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/04.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/04.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/04.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/04.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/05.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/05.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/05.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/05.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/06.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/06.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/06.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/06.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/07.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/07.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/07.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/07.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/08.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/08.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/08.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/08.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/09.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/09.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/09.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/09.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/10.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/10.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/10.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/10.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/11.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/11.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/11.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/11.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/12.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/12.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/12.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/12.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/13.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/13.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/13.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/13.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/14.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/14.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/14.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/14.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/15.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/15.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/15.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/15.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/16.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/16.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/16.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/16.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/17.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/17.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/17.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/17.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/18.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/18.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/18.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/18.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/19.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/19.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/19.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/19.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/20.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/20.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/20.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/20.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/21.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/21.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/21.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/21.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/22.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/22.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/22.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/22.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/23.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/23.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/23.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/23.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/24.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/24.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/24.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/24.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/25.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/25.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/25.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/25.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/26.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/26.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/26.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/26.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/27.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/27.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/27.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/27.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/28.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/28.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/28.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/28.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/29.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/29.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/29.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/29.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/30.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/30.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/30.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/30.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/31.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/31.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/31.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/31.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/32.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/32.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/32.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/32.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/33.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/33.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/33.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/33.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/34.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/34.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/34.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/34.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/35.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/35.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/35.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/35.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/36.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/36.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/36.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/36.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/37.in
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/37.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AtCoder/ARC068/E/data/37.out
(Stored with Git LFS)
Normal file
BIN
AtCoder/ARC068/E/data/37.out
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user