随笔分类 -  acm题目

水一水
摘要:#include<iostream> #include<string> #include<cstring> using namespace std; int solve(int num) { int ji=0; while(num>1) { ji++; if(num%2==0)num/=2; els 阅读全文
posted @ 2020-01-15 15:12 张达嘛 阅读(127) 评论(0) 推荐(0) 编辑
摘要:https://www.dotcpp.com/oj/problem1084.html?sid=1756019&lang=1#editor 不要小看简单的题目哦。一步步来。 #include<iostream> using namespace std; #define maxn 10000000 bo 阅读全文
posted @ 2020-01-13 22:56 张达嘛 阅读(212) 评论(0) 推荐(0) 编辑
摘要:题目地址:https://www.dotcpp.com/oj/problem1004.html?sid=1755437&lang=1#editor c语言写递归能过,c++递归过不了。 c++写非递归能过,时间慢。 #include<iostream> using namespace std; in 阅读全文
posted @ 2020-01-13 21:22 张达嘛 编辑

点击右上角即可分享
微信分享提示