C语言训练-字符串正反连接 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[1000],fstr[100]; int i,…… 题解列表 2018年07月27日 0 点赞 0 评论 602 浏览 评分:0.0
C语言程序设计教程(第三版)开关量判断大小值 (C) 摘要:解题思路:关键是找到大小值的位置。注意事项:参考代码:#include<stdio.h>#define N 10void SORT(int p[N]){ int i, j=0,t; int…… 题解列表 2018年07月27日 1 点赞 0 评论 2022 浏览 评分:0.0
P1001 (C语言代码) 摘要:解题思路:输入n个长整型数到数组a,要求数组a中第k大的数字减去第k小的数字,首先应对a进行排序,然后找到所需数字的下标,访问数组,求得相减后的结果,再调用判断是否为质数的函数,输出相应的答案和值。注…… 题解列表 2018年07月28日 0 点赞 0 评论 1454 浏览 评分:0.0
【明明的随机数】 (C语言代码) 摘要:解题思路:先排序再去重注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,h,a[100],b[100],l=1; scanf("%d",&n); for…… 题解列表 2018年07月28日 0 点赞 0 评论 622 浏览 评分:0.0
C语言链表实现 ( 可AC ) (C语言代码) 摘要:解题思路: 构建循环链表,然后进行报数操作,3的倍数将序号修改为0;直到淘汰人数为总人数减一; &nbs 题解列表 2018年07月28日 2 点赞 2 评论 388 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(2) (C++代码) 摘要:解题思路:注意事项:保留小数点后5位要用到setprecision函数命令参考代码:#include<iostream>#include<iomanip>using namespace std;dou…… 题解列表 2018年07月28日 0 点赞 0 评论 975 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法 (C++代码) 摘要:#include "iostream" #include "algorithm" #include "string" using namespace std; string add(strin…… 题解列表 2018年07月28日 1 点赞 0 评论 1103 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int prime(int n, int i, int c) { if (n > 1 && n == (int)n) {…… 题解列表 2018年07月28日 0 点赞 0 评论 1008 浏览 评分:0.0
妹子杀手的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <stdlib.h>using namespace std;int main (){ int a,b; whil…… 题解列表 2018年07月28日 0 点赞 0 评论 917 浏览 评分:0.0
汽水瓶 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<iostream>int fin(int k){ int y; y = k / 2; …… 题解列表 2018年07月28日 0 点赞 0 评论 581 浏览 评分:0.0