题解列表
不用数组,容易理解(c语言代码)
摘要:#include<stdio.h>
int main()
{
int n,k=0;
scanf("%d",&n);
while(n)
{
……
[编程入门]三个数找最大值---两种方法---(Python)
摘要:Python
1.通过max求最大值:
```python
list=list(map(int,input().split()))
print(max(list))
```
2.通过if-……
1954-话费计算,简单易懂(C++)
摘要:解题思路:列出关于通话分钟和话费的函数,进行求解注意事项:基础知识的应用参考代码:#include<stdio.h>int main(){ int x; float y; scanf("%d",&x)……
C++ STL Vector + 二分查找
摘要:解题思路: lower_bound:查找第一个大于或等于某个元素的位置。 upper_bound:查找第一个大于某个元素的位置。代码:#include<bits/stdc++.h>
us……
自定义函数处理最大公约数与最小公倍数
摘要:解题思路:注意事项:参考代码: def yue(a,b): min =(a<b and a or b) i=min while i>0: if a%i==0 and……
计算数字个数---详细讲解---(Python)
摘要:Python
通过遍历字符串判断字符是否为数字
```python
n=input()
s=0
for i in n:
if i.isdigit():
s=s+1……
结构体解题(c语言代码)
摘要:#include <stdio.h>
#include <string.h>
struct stu
{
char s[20];
int f;
};
int main()
{
i……
关于 str(input().split()) input().split()的区别
摘要:解题思路:注意事项:参考代码:s=str(input().split())s2=input().split()print(type(s))print(type(s2))j=1for i in s: ……