题解列表

筛选

优质题解

C二级辅导-计负均正 (C语言代码)

摘要:解题思路:    1.因为需要输入20个数,所以需要定义一个数组;    2.输入的数据有两种状态需要判断,所以可用if_else语句注意事项:    1.数组用for循环输入    2.注意是有一个……

小O的图案 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,k,i,j,x; while(scanf("%d",&n)!=EOF) { k=2*n-1; x……

统计字母个数 (C++代码)

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