题解列表
C语言训练-邮票组合问题* (Java代码)
摘要:解题思路: 1. 使用数组保存结果,循环数组,统计数组中进行标记了的元素。 2. 使用集合Set保存结果,输出集合Set的size。注意事项: 至少使用一张邮票,故两者都不用的情况应……
C语言程序设计教程(第三版)课后习题4.9 (C语言代码)
摘要:解题思路:注意事项:主要是输出,有一个“c=”,千万别忘了参考代码:#include<stdio.h>int main(){ float f/*华氏温度 */, c/*摄氏温度*/; ……
蓝桥杯算法提高VIP-单词个数统计 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int sta(char *a){ int count = 0; while(*a != '\0') { if(*a ……
【偶数求和】 (Java代码)
摘要:解题思路:注意事项:参考代码:
import java.util.Scanner;
public class C1159 {
public static void main(String[……
简单的a+b (C语言代码)
摘要:解题思路:注意事项:scanf的参数应该是变量的地址参考代码:#include<stdio.h>int main(){int a;int b;scanf("%d %d",&a, &b);printf(……
递归 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int n){ if(n == 1) return 1; return 2*fun(n-1)+1;}int main(……
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d%d%d",&a,&b,&c); if(a>b) ……
花落的新手代码(C++代码)
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
inline void exchange(char &a,char &b)
{
……