题解列表
1034: [编程入门]自定义函数之数字分离
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;queue<char>mem;int main(){ int i; char a; ……
1035: [编程入门]自定义函数之字符类型统计
摘要:```cpp
#include
int zimu=0,num=0,kong=0,other=0,i;
int main()
{
char s[1000];
gets(s);
int……
题解 : DNA【Python】
摘要:解题思路:对于一个单位的dna串,我们可以先打印其a-1行,重复b-1次,然后打印最后一行:参考代码:def dna(a):
# 先创建 (a-1)*a 的二维列表,元素都为 空格'……
1045: [编程入门]自定义函数之整数处理
摘要:```cpp
#include
using namespace std;
int a[10],i,maxx=0,minn=10000,m,n;
void scanf()
{
for(i=……
1046: [编程入门]自定义函数之数字后移
摘要:```cpp
#include
#define N 1005
int a[N];
int main()
{
int i,n,m;
scanf("%d",&n);
for(i=0;……
1031: [编程入门]自定义函数之字符串反转
摘要:```cpp
#include
int main()
{
char s[1000];
gets(s);
int len=strlen(s);
for(int i=len-1;i>……
1124: C语言训练-大、小写问题
摘要:```cpp
#include
int main()
{
char s[1000];
gets(s);
int len1=strlen(s);
for(int i=0;i='A'……
1196: 去掉空格
摘要:```cpp
#include
using namespace std;
int main()
{
char s[1000];
while(gets(s))
{
……