1096 Consecutive Factors (20 point(s))

題解 暴力+模擬。 #include<cstdio> #include<cmath> #include<iostream> using namespace std; int n; int main() { scanf("%d", &n); int len = 0, s, t, first; for(int i = 2; i <= sqrt(n); ++i) { s = i; t =
相關文章
相關標籤/搜索