题解列表
2266: 蓝桥杯2015年第六届真题-打印大X
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, m; char a[1000][1000] = { ' ' }; scanf("%……
绝对值排序(c语言代码,会排序的都会写,不会输出超限)
摘要:解题思路:按照绝对值大小排序注意事项:避免输出超限,以文件结尾符结尾,数组清0参考代码:#include#include#includeint main(){ int n; int i,x……
利用扩展的列表,集中处理
摘要:解题思路:通过列表扩展,利用队列中只有一个断号和重复的,且整个队列是连续的特性解决注意事项:没有,这个方法很棒参考代码:# 错误票据N=int(input())data=[]for i in rang……
有手就行之Sn的公式求和
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n,a=2,i,s=2; scanf("%d",&n); for(i=1; i<n; i++) { ……
数字的处理与判断(C语言)
摘要:解题思路:先尝试把每一位数分离出来,剩下就容易了注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,n,place; scanf("%d",&n)……
编写题解 1149: C语言训练-计算1~N之间所有奇数之和
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int sum =0; cin>>n;……
编写题解 1150: C语言训练-计算t=1+1/2+1/3+...+1/n
摘要:解题思路:注意事项:参考代码:#include
#include
using namespace std;
int main()
{
int n;
double sum =……
编写题解 1151: C语言训练-计算一个整数N的阶乘
摘要:解题思路:注意事项:参考代码:#include<iostream>#include <iomanip>using namespace std;int main(){ int n; int ……
编写题解 1152: C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include <iomanip>#include<math.h>using namespace std;int main(){ ……