题解列表

筛选

出现次数超过一半的数(C语言版)

摘要:解题思路:这里要一个存储个数的数组b,然后把各个数的个数放到b中。注意事项:注意这里加减50的原因是,数组的下标没有负数,其他的就没啥了。参考代码:#include<stdio.h>int main(……

ikun崩溃代码

摘要:解题思路:注意事项:参考代码:# include <stdio.h>int main(){    int f;    float c;    scanf("%d",&f);     c =(f-32)……

向量点积计算

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,ans=0; scanf("%d",&n); int a[n]; int b[n]; for(i……

1003密码破译

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char arr[20]={0};//定义一个随机长度的字符串数组 sc……

编写题解 2839: 石头剪刀布

摘要:解题思路:m[i]表示A,t[i]表示Bq表示A胜得次数,W表示B胜得次数同时注意输入完AB各自的出题规律后要循坏填补后面的对决,即创建一个满足N轮的对局数组注意事项:参考代码:a#include<s……

]自定义函数之数字后移

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); int i = 0; int m = 0; int a[100]……