摘要:
n!的长度等于log10(n!) 1 2 3 4 5 6 7 8 9 10 11 #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; double ans = 1; for(int i = 1; i 阅读全文
摘要:
做法:从左往右枚举前两个数的和sum,剩余的数二分找-sum是否存在。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 #include <bits/stdc++.h> us 阅读全文