编写题解 1249: 简单编码 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main() { string s; wh…… 题解列表 2022年04月24日 0 点赞 0 评论 516 浏览 评分:0.0
编写题解 1248: 简单的事情 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;unsigned long long int jiecheng(int n){ if(n…… 题解列表 2022年04月24日 0 点赞 0 评论 444 浏览 评分:0.0
C++进制转换输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; cout<<oct<<…… 题解列表 2022年04月24日 0 点赞 0 评论 449 浏览 评分:0.0
小数点后保留N位 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float a,c; c…… 题解列表 2022年04月24日 0 点赞 0 评论 442 浏览 评分:0.0
for的引用破解密码 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; cin>>s; for(auto…… 题解列表 2022年04月24日 0 点赞 0 评论 423 浏览 评分:0.0
A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,sum=0; cin>>n; whi…… 题解列表 2022年04月24日 0 点赞 0 评论 354 浏览 评分:0.0
1084: 用筛法求之N内的素数。 摘要:解题思路:(1)记得之前做过一样的题目发过题解了,这次的区别可能就是用 vector 构造数组了吧。(2)原理很简单,不管一个数是不是素数,它自身的倍数一定不是素数,建一个 bool 数组不停地遍历+…… 题解列表 2022年04月23日 0 点赞 0 评论 466 浏览 评分:9.9
1083: Hello, world! 摘要:解题思路:什么 b 题目啊,我一直在想怎么才能输入一串整数后自动结束,因为题目强调了没有 EOF,我还以为是有什么非常规接收输入的办法,结果随手提交发现通过了。那你写那么多条件干嘛?注意事项:不是很懂…… 题解列表 2022年04月23日 0 点赞 0 评论 739 浏览 评分:9.9
优质题解 1076: 内部收益率 摘要:解题思路:(1)首先优质题解第一那位的代码是有问题的,我在 debug 卡住的时候试了一下他的代码,结果原封不动贴到 IDE 输出的和标准答案不符。(2)那个兄弟的问题好像是把“判断 NPV 是否接近…… 题解列表 2022年04月23日 1 点赞 2 评论 1244 浏览 评分:10.0
优质题解 1075: 台球碰撞 摘要:解题思路:(1)传送面板:https://blog.dotcpp.com/a/63859思路和这个差不多,这个人写的很详细,而且我 debug 时还参考了这个人的代码,直接看他的就完事了。(2)本题的…… 题解列表 2022年04月23日 1 点赞 1 评论 2119 浏览 评分:9.9