上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: 1071 小赌怡情 (15分) https://pintia.cn/problem-sets/994805260223102976/problems/994805264312549376 1 #include <cstdio> 2 #include <iostream> 3 #include <al 阅读全文
posted @ 2020-01-18 19:05 yyer 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1074 宇宙无敌加法器 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805263297527808 第一次提交测试五没过:如果和为0,去0的时候保证要留下一个0(测试点5) 第二次AC: 1 #includ 阅读全文
posted @ 2020-01-17 22:17 yyer 阅读(247) 评论(0) 推荐(0) 编辑
摘要: C++取整 头文件:#include <cmath> 1 #include<iostream> 2 #include<cmath> 3 using namespace std; 4 int main() 5 { 6 double a=2.5; 7 cout<<ceil(a)<<endl; //向上取 阅读全文
posted @ 2020-01-16 23:46 yyer 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1078 字符串压缩与解压 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805262018265088 1 #include <cstdio> 2 #include <cstring> 3 #include 阅读全文
posted @ 2020-01-16 22:42 yyer 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1079 延迟的回文数 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805261754023936 1 #include <cstdio> 2 #include <cstring> 3 #include <s 阅读全文
posted @ 2020-01-16 21:23 yyer 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1081 检查密码 (15分) https://pintia.cn/problem-sets/994805260223102976/problems/994805261217153024 细节比较多,反正我改了几次才过 1 #include <iostream> 2 #include <cstrin 阅读全文
posted @ 2020-01-14 15:57 yyer 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1086 就不告诉你 (15分) https://pintia.cn/problem-sets/994805260223102976/problems/1038429065476579328 1 #include <iostream> 2 #include <string> 3 #include < 阅读全文
posted @ 2020-01-14 15:02 yyer 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 2020-01-13 22:56:54 1094 谷歌的招聘 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/1071785997033074688 1 #include <iostream> 2 #include < 阅读全文
posted @ 2020-01-13 22:10 yyer 阅读(153) 评论(0) 推荐(0) 编辑
摘要: srand函数是随机数发生器的初始化函数。原型:void srand(unsigned seed); 用法:它初始化随机种子,会提供一个种子,这个种子会对应一个随机数,如果使用相同的种子后面的rand()函数会出现一样的随机数,如: srand(1); 直接使用1来初始化种子。不过为了防止随机数每次 阅读全文
posted @ 2020-01-08 09:04 yyer 阅读(2448) 评论(0) 推荐(0) 编辑
摘要: fscanf()函数可以解析有规律的文件 功 能: 从一个流中执行格式化输入,fscanf遇到空格和换行时结束,注意空格时也结束。 用 法: int fscanf(FILE *stream, char *format,[argument...]); 首先我有一个myfile01.txt文件里面的数据 阅读全文
posted @ 2020-01-06 16:20 yyer 阅读(241) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页