题解列表

筛选

c语言字符串拼接

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char str1[101]={0};    char str2[50……

求1+2+3+...+n的值

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

编写题解 1387: 陈教主的三角形

摘要:解题思路:注意事项:参考代码://行测试数据,每行包含两个整数a和b(0<a,b<=100),表示长方形的长和宽。当a和b同时为0时,表示输入结束 #include<stdio.h> int ma……

直接数学方法进行计算

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,n,r,p,m,q; scanf("%lf %lf %lf……

2906: 笨小猴

摘要:```cpp #include #include #include #include using namespace std; bool ZS(int n) { if(nn;……

3001: 整数的和

摘要:```cpp #include using namespace std; int main() { int a,b,c; cin>>a>>b>>c; cout……

[编程入门]电报加密

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char s[100]; gets(s); for(int i=0;s[i];i++){ if(s[i]>=……