摘要: http://codeforces.com/contest/344/problem/D 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 char str[100001]; 8 int main()... 阅读全文
posted @ 2014-08-19 23:05 null1019 阅读(114) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/344/problem/B 1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int a,b,c; 8 int t1=0,t2=0,t3... 阅读全文
posted @ 2014-08-19 20:30 null1019 阅读(109) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4961先打个表,把每个数的约数存起来,然后从前往后扫一遍,结果存在f[i],然后从后往前扫一遍,结果存在c[i],最后算f[i]*c[i]的和。 1 #include 2 #include 3 #include... 阅读全文
posted @ 2014-08-19 18:57 null1019 阅读(254) 评论(0) 推荐(0) 编辑