题解列表
我很荣幸,将题解发了上来
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;char s[1001];int main(){ int l,n; ci……
指针数组法(直接翻译题意)
摘要:解题思路:将题干中出现的数字的英文单词对应储存在数组中,再对应输出注意事项:参考代码:#include<stdio.h>int main(){ char *a[60]={"zero","one","t……
母牛递归(python简易代码)
摘要:解题思路:找出规律,把值归入到列表方便拿出注意事项:找出关系式:l[i-3]+l[i-1]参考代码:l=[0,1,2,3]for i in range(4,55): l.append(l[i-3……
在后面的的往前面移,前面的直接往后面搬
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m; scanf("%d",&n); int a[n-1]; int i ……
c++语言解决电报加密
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<string.h>using namespace std;void get(char……
3种方法教你求最大值-C++语言
摘要:> ***解题思路:设置变量
第一种:使用if条件判断语句
第二种:引入布尔常量
第三种:使用三目运算符【~~划重点~~】*
**参考代码:第一种:使用if条件判断语句 注:这是初学者最常……
水题目,只需一个bool
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int y){ return y%4 == 0 && y % 100……