题解列表
C语言程序设计教程(第三版)课后习题10.5 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[100],j,k=0;//定义人员数量 int quit=0;//退出人数 s……
WU-Tom数 (C语言代码)
摘要:参考代码:#include<stdio.h>
int sum(char a[])
{
int sum1=0,i;
for(i=0;a[i]!='\0';i++)
{
……
C语言程序设计教程(第三版)课后习题6.11 (Java代码)
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……
蓝桥杯历届试题-回文数字 (C语言代码)
摘要:解题思路:用两个函数来判断是否是回文数。是否满足n等于各个位数之和。注意事项:参考代码:#include<stdio.h>int p(int a, int n);int pp(int a);int m……
蓝桥杯算法提高VIP-交换Easy (C++代码)
摘要:#include<iostream>
using namespace std;
int main(){
int n,m,a[1000],x,y;
cin>>n>>m;
……
【排队买票】 (C语言代码)
摘要:解题思路:用递归求出总共有多少种可行的情况,再用全排列来求出总情况注意事项:参考代码:#include <stdio.h>int fact(int a){ int i, sum = 1; for (i……
C二级辅导-进制转换 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); printf("%o",n); retur……
C语言程序设计教程(第三版)课后习题10.4 (C语言代码)
摘要:解题思路:9 10与1 2 3 4 5 6 7 8分开输入另一个数组,有点麻烦。注意:数组赋值后要用fflush(stdin)清除缓存区!!!!注意事项:参考代码:#include<stdio.h>#……
C语言程序设计教程(第三版)课后习题10.4 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int n,i,m,a[100]; scanf("%d",&n); for(i=0;i……