上一页 1 ··· 5 6 7 8 9
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 int N,C; 4 int a[100000]; 5 int fun(int d) { 6 int temp=a[0], k=1; 7 for(int i=1; i<N; i++) { 8 if 阅读全文
posted @ 2020-03-27 12:20 瓜瓜爱呱呱 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 3441:4 Values whose Sum is 0 查看 提交 统计 提示 提问 总时间限制: 15000ms 单个测试点时间限制: 5000ms 内存限制: 228000kB描述The SUM problem can be formulated as follows: given four 阅读全文
posted @ 2020-03-27 10:58 瓜瓜爱呱呱 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 2503:Babelfish 查看 提交 统计 提示 提问 总时间限制: 3000ms 内存限制: 65536kB描述You have just moved from Waterloo to a big city. The people here speak an incomprehensible 阅读全文
posted @ 2020-03-26 22:05 瓜瓜爱呱呱 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 4140:方程求解 总时间限制: 1000ms 内存限制: 65536kB描述 求下面方程的根:f(x) = x3- 5x2+ 10x - 80 = 0。 输入-输出精确到小数点后9位。样例输入 - 样例输出 - #include <bits/stdc++.h> using namespace st 阅读全文
posted @ 2020-03-26 21:22 瓜瓜爱呱呱 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 3704:扩号匹配问题 总时间限制: 1000ms 内存限制: 65536kB描述在某个字符串(长度不超过100)中有左括号、右括号和大小写字母;规定(与常见的算数式子一样)任何一个左括号都从内到外与在它右边且距离最近的右括号匹配。写一个程序,找到无法匹配的左括号和右括号,输出原来字符串,并在下一行 阅读全文
posted @ 2020-03-26 19:10 瓜瓜爱呱呱 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 一些类型转换 string s-->char:函数c_str(s); char c[10]-->double:函数atof(c); 一些输入格式、 cin.get()//去掉行末的换行符 if(cin.peek()=='\n')//判断是否是空行 getchar()//表示从输入栏上获取一个字符。包 阅读全文
posted @ 2020-03-26 17:57 瓜瓜爱呱呱 阅读(229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9