This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub kisepichu/library
#include "lib/util/divisors.hpp"
#pragma once set<lint>divisors(lint n){ set<lint>ret; for(lint i=1; i*i<=n; ++i){ if(n%i==0){ ret.insert(i); if(i*i!=n)ret.insert(n/i); } } return ret; } /* * @title Divisors */
#line 2 "lib/util/divisors.hpp" set<lint>divisors(lint n){ set<lint>ret; for(lint i=1; i*i<=n; ++i){ if(n%i==0){ ret.insert(i); if(i*i!=n)ret.insert(n/i); } } return ret; } /* * @title Divisors */