File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 33#include < algorithm>
44#include < cstdint>
55#include < ranges>
6+ #include < vector>
67#include < cmath>
78namespace cp_algo ::math {
89 auto floor_stats (int64_t n) {
Original file line number Diff line number Diff line change 1+ // @brief Enumerate Quotients
2+ #define PROBLEM " https://judge.yosupo.jp/problem/enumerate_quotients"
3+ #pragma GCC optimize("Ofast,unroll-loops")
4+ #include < iostream>
5+ #include " blazingio/blazingio.min.hpp"
6+ #include " cp-algo/number_theory/dirichlet.hpp"
7+ #include < bits/stdc++.h>
8+
9+ using namespace std ;
10+ using namespace cp_algo ::math;
11+
12+ void solve () {
13+ int64_t n;
14+ cin >> n;
15+ auto res = floors (n) | views::drop (1 );
16+ cout << size (res) << " \n " ;
17+ for (auto it: res) {
18+ cout << it << " " ;
19+ }
20+ cout << " \n " ;
21+ }
22+
23+ signed main () {
24+ // freopen("input.txt", "r", stdin);
25+ ios::sync_with_stdio (0 );
26+ cin.tie (0 );
27+ int t = 1 ;
28+ // cin >> t;
29+ while (t--) {
30+ solve ();
31+ }
32+ }
You can’t perform that action at this time.
0 commit comments