题解列表
1073: 弟弟的作业
摘要:```python
score = 0
while True:
try:
user = input().split("=")
if user[1] =……
不能没落的strcmp和strcpy!!!
摘要:解题思路:strcmp函数:若返回值为0,说明两个字符串相等。若返回值小于0,说明 str1 小于 str2。若返回值大于0,说明 str1 大于 str2。作用: 用于比较两个字符串。函数原型: i……
1074: 数字整除
摘要:```python
n = int(input()) #初始值
while n!=0: #n = 0 时停止
lest = n//10
if (lest-(n%10)……
1063: 二级C语言-统计字符
摘要:```python
ss = input()
# 英文字母、空格、数字和其它字符
alpha,space,num,other=0,0,0,0
for i in ss:
if i.is……
[编程入门]自定义函数之字符提取(C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100],n,i; scanf("%s",a); ……
1062: 二级C语言-公约公倍
摘要:```python
c=list(map(int,input().split()))
if(len(c))……
1061: 二级C语言-计负均正
摘要:```python
li = list(map(int,input().split()))
li1 = list(map(int,input().split())) #题中示例是两行输入
li……
1054: 二级C语言-计算素数和
摘要:```python
m,n = map(int,input().split())
if m > n:
m,n = n,m #题中要求 m……