Topcoder SRM150 Div1 Level 1 InterestingDigits
問題
http://community.topcoder.com/stat?c=problem_statement&pm=1523&rd=4555
解法
まだ
コード
#include <bits/stdc++.h> #include <stdint.h> #include <sys/time.h> class InterestingDigits { public: std::vector<int> digits(int base) { int n = base - 1; std::vector<int> res; for(int i = 2; i < 30; ++i) { if( n % i == 0 ) { res.push_back(i); } } return res; } };