题解列表

筛选

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;}```#代码思路利用置换原理进行将前后置

和为给定数--二分

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

猴子吃桃的问题

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

c语言代码解决问题

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

c语言代码解决问题

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

蛇行矩阵(简简单单)

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

温度转换入门小白求法

#######根据题目我们可以知道要求为----将温度进行转换温度转换公式为c=5(F-32)/9,取位2小数。这是题目要求输入一个华氏温度,要求输出摄氏温度。且温度要取小数。若要进行这两步,我们可以想到floatf;cin>>f;这是输入输出即为cout