摘要: 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  阅读全文
posted @ 2017-03-28 23:15 bestwzh 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 做法:从左往右枚举前两个数的和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 阅读全文
posted @ 2017-03-28 21:27 bestwzh 阅读(115) 评论(0) 推荐(0) 编辑