题解列表

筛选

简单的写一下

摘要:解题思路:注意事项:参考代码: import java.util.Scanner; public class Main {    public static void main(String[] ar……

c代码记录之验证字串

摘要:1.空串是所有字符串的子串,但这题好像不验证这个 2.gets不通过,scanf能通过 #include #include int main() { ……

利用C++来编写求和训练

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h> using namespace std;int a,b,c;int sumOfa(int a);lo……

c++编写字符串分类统计

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ int num=0,space=0,word=0,other=……

自定义函数处理素数——C语言;调用函数;易懂;

摘要:解题思路:   素数是除1和它本身之外没有它能除尽的数,所以使用循环与选择结构解题;注意事项:    一定注意不能在循环中使用if判断素数,否则会出现一串字母;所以定义一个新变量作为记录是否有数能被你……

题解 2772: 苹果和虫子

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double n,x,y;    cin>>n>>x……

数字统计(有注释)

摘要:解题思路:这段代码的主要功能是统计从0到用户输入的整数n中,每个数字的个位数字出现的次数。它使用一个包含10个元素的整数数组a来记录每个数字出现的次数,然后在循环中逐个迭代从0到n的数字,将其个位数字……

java仅用循环解出

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) ……