C语言训练-数字母-题解(C语言代码) 摘要:真恶心,printf("%s") 就错12% gtes就没有 #include #include int main() { char …… 题解列表 2019年11月02日 0 点赞 0 评论 1128 浏览 评分:0.0
蓝桥杯2013年第四届真题-格子刷油漆-题解(动态规划) 原文链接:https://blog.csdn.net/qq_35078631/article/details/54730870```c#includeusingnamespacestd;constintN=1010;constintmod=1000000007;longlonga[N], 题解列表 2019年11月02日 0 点赞 1 评论 2429 浏览 评分:8.4
[编程入门]自定义函数之字符串连接-题解(C语言代码) #include//char*STRCAT(char*dest,constchar*src)//{//char*tmp=dest;//while(*dest){//dest++;//}//while((*dest++=*src++)!='\0');//首先dest地址移动到最后一位, 题解列表 2019年11月02日 0 点赞 0 评论 1050 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C语言代码) 摘要: #include #include int main() { char input[80]; scanf("%s",input); …… 题解列表 2019年11月02日 0 点赞 0 评论 903 浏览 评分:0.0
[编程入门]利润计算-题解(C语言代码) 摘要:```c #include int main() { int i,a; scanf("%d",&a); if(a…… 题解列表 2019年11月02日 0 点赞 0 评论 1392 浏览 评分:0.0
求平均工资-题解(C++代码)简单简短的算法,无需数组 这是一道简单的求平均值的问题,可以不运用数组。代码如下:```cpp#includeusingnamespacestd;intmain(){intn,i,x,sum=0;cin>>n;for(i=0;i>x;sum=sum+x;}//通过循环先求出总工资sumcout 题解列表 2019年11月02日 0 点赞 0 评论 2423 浏览 评分:9.9
分段计算-题解(C++代码) 摘要:没有太大的问题,注意细节就不会出错 代码如下: ```cpp #include using namespace std; int main() { int x,y; cin>>x…… 题解列表 2019年11月02日 0 点赞 0 评论 1527 浏览 评分:0.0
[编程入门]利润计算-题解(C++代码) importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerinput=newScanner(System.in);longd=input.nextLong();longx=0;if(d>10000 题解列表 2019年11月02日 0 点赞 1 评论 614 浏览 评分:5.3
[编程入门]自定义函数之数字后移-题解(C语言代码) ##**解题思路:**1.这道题难点在于数组末尾的数字如何转移到数组的开头。2.我们用两个数组实现,如果在我们把数组末尾需要转移到数组开头的数字单独存在数组中,其余不涉及末尾转开头的数字存到数组a中,最后将数组b中的数字(即转移后到数组开头的几个数)赋给数组a(此时数组a中的数已经转移完)开头的数, 题解列表 2019年11月02日 0 点赞 0 评论 1169 浏览 评分:0.0
编写题解 1121: C语言训练-8除不尽的数,解法简单,穷举法(c++代码) 参考了下其他的一些题解,发现很多都是直接输出cout 题解列表 2019年11月02日 0 点赞 0 评论 1699 浏览 评分:9.9