题解列表

筛选

自定义函数之数字分离

摘要:注意:scanf_s("%c", &a[i],1)表示最多读取1-1个字符; 同理scanf_s("%c", &a[i],4)表示最多读取4-1个字符。 ```c #include……
优质题解

python-矩形面积交

摘要:解题思路:由于题目中所给的一对点我们并不知道是做对角线的点还是右对角线的点,也不知道是先给的是左下角的点还是右上角的点(以左对角线为例)。因此我们需要先将点的位置确定,接下来就好计算了。①根据所给的一……

1221: 数列问题

摘要:```python s=int(input()) def f(n): if n==1: return 3 if n==2: return 4……

25行代码C++ sort()函数解决

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<string>using namespace std;int main(){ ……

二级C语言-计算素数和

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

自定义函数之字符提取

摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "string.h"main(){ char a1[81]; int i,n; gets(a1); n=strlen……

1072: 汽水瓶

摘要:解题思路:注意事项:参考代码:while True:     try:         n = int(input())         if n == 0:       &n

自定义函数之字符串连接

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void tap(string s1,string s2){    cout<<s1……