题解列表

筛选

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char str[101];    gets(str);    str[strlen(str)] = &#……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    float k,p,profit,money=0.0,sum_profit=0.0;    int n; ……

猴子吃桃的问题

摘要:#include <stdio.h> int main(){ int T,N,i,sum=1; scanf("%d",&N); for(i=1;i<N;i++){ sum=(sum……

和为给定数--二分

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int a[100001];int main(){ in……

1031题: 自定义函数之字符串反转

#自己写的代码```c#include#includeintmain(){chara[20];gets(a);intlen=0;len=strlen(a);for(inti=len-1;i>=0;i--){printf("%c",a[i]);}return0;}```#代码思路利用置换原理进行将前后置

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>struct student{    char name[21];    char sex[21];……