题解列表

筛选

for循环和while循环

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char x[1000]; char s[……

1866: 三位数反转

摘要:解题思路:这题有多行输入,可能会造成错误注意事项:参考代码:while True:    try:        a = list(input())        b = a[::-1]       ……

1782: 找出最长的字符串来

摘要:注意事项:字符串相等不能用&#39;=&#39;,要用strcpy(x,y),将数组y赋给x;计算数组长度用strlen()!!都需要声名 <string.h>!!参考代码:#include<stdi……

登陆验证问题(一)

摘要:注意事项:库函数strcmp要提前用<string.h>声明;如果strcmp(x,y)==0,数组x与y完全一样;参考代码:#include<stdio.h>#include<string.h>in……

计算球体积

摘要:解题思路:注意事项:参考代码:import mathpi=math.pi                 //导入库while True:                &n