上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: 1042 字符统计 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805280817135616 #include <iostream> #include <cstdio> #include <cmath> # 阅读全文
posted @ 2020-01-26 12:08 yyer 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1043 输出PATest (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805280074743808 #include <iostream> #include <cstdio> #include <algo 阅读全文
posted @ 2020-01-26 11:38 yyer 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1048 数字加密 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805276438282240 第一次提交: 错误原因:a的位数大于b时,b不足的位需要补0做运算! 第二次提交: 代码: #include < 阅读全文
posted @ 2020-01-23 22:12 yyer 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1049 数列的片段和 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805275792359424 第一次提交: 代码: #include <cstdio> #include <iostream> #incl 阅读全文
posted @ 2020-01-23 21:17 yyer 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1051 复数乘法 (15分) https://pintia.cn/problem-sets/994805260223102976/problems/994805274496319488 第一次提交: 错误原因: 最后 2 3 测试点问题就是对0.00这个点的A B的取法,绝对值小于0.005,取到 阅读全文
posted @ 2020-01-23 19:58 yyer 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1054 求平均值 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805272659214336 #include <cstdio> #include <cstring> #include <string> # 阅读全文
posted @ 2020-01-22 23:28 yyer 阅读(210) 评论(0) 推荐(0) 编辑
摘要: std::string::substr string substr (size_t pos = 0, size_t len = npos) const; Generate substring Returns a newly constructed string object with its val 阅读全文
posted @ 2020-01-22 20:23 yyer 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 一、C++中substr函数用法 #include<string> #include<iostream> using namespace std; int main() { string s("12345asdf"); string a = s.substr(0,5); //获得字符串s中从第0位开 阅读全文
posted @ 2020-01-22 20:12 yyer 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1057 数零壹 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805270914383872 第一次:段错误 错误代码: 1 #include <cstdio> 2 #include <cstring> 3 阅读全文
posted @ 2020-01-22 00:50 yyer 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1058 选择题 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805270356541440 1 #include <iostream> 2 #include <cstdio> 3 #include <cst 阅读全文
posted @ 2020-01-22 00:12 yyer 阅读(213) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页