题解列表
二进制分类(C语言)
摘要:解题思路:暴力(笑注意事项:数据范围是从1到1000(包括1和1000),并不需要自己输入。参考代码:#include<stdio.h>int main(){ int i, s, A = 0, B =……
简洁的方式找到最大值的下标(C语言)
摘要:解题思路: 简单遍历数组内元素然后找到最大值再输出下标注意事项:参考代码:#include<stdio.h>
int main()
{
int a, b, c = 0;
i……
Pell数列非递归模式
摘要:解题思路:参照斐波那契数列的通项公式 f[i] = f[i-1] + f[i-2]类似的只需要在f2上*2最后f3%32376即可。注意事项:循环里面的计数要从2开始!参考代码:#include
i……
自定义函数之字符类型统计(C语言)
摘要:解题思路:注意事项:参考代码:# include <stdio.h># include <string.h>int main(){ char a[100]; int len, x, y, ……
编写题解 1013: [编程入门]Sn的公式求和
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,n,m=0,Sn=0; scanf("%d",&n); for(i=……
自定义函数之字符串提取-详细明白
摘要:参考代码:# include <stdio.h># include <string.h>int f(char str1[], char str2[]){ int i, len, j = 0; ……
1279: [NOIP2008T2]火柴棒等式
摘要:```python
number = {0:6, 1:2, 2:5, 3:5, 4:4, 5:5, 6:6, 7:3, 8:7, 9:6}
counts =0
def f(inte):
……