题解列表
易懂 IP判断 函数遍历处理判断
摘要:解题思路: 输入函数nextLine每次获取单行字符串,string.split()分割需要注意在符号前加“\\”表示转义, split函数返回值是字符串数组,例:stri……
[编程入门]阶乘求和(c++)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ long long a=1, sum=0,n=0;//long lon……
成绩转换(JAVA)
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args……
刚开始接触这个C,这是我个人的想法。希望可以给你们一个思路
摘要:解题思路:贷款总额(单位为万元),所以乘以了10000注意事项:输出第一个月客户还款金额参考代码:#include<stdio.h>int main(){ int zong,yue,b;//依次……
自定义函数之字符提取
摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "string.h"main(){ char a1[81]; int i,n; gets(a1); n=strlen……
二级C语言-计算素数和
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main10 { public static void main(String[] ar……
1221: 数列问题
摘要:```python
s=int(input())
def f(n):
if n==1:
return 3
if n==2:
return 4……
自定义函数之数字分离
摘要:注意:scanf_s("%c", &a[i],1)表示最多读取1-1个字符;
同理scanf_s("%c", &a[i],4)表示最多读取4-1个字符。
```c
#include
……