2778: 判断数正负 摘要:```c #include int main() { int n; scanf("%d",&n); if(n>0) printf("positive");…… 题解列表 2023年07月23日 0 点赞 0 评论 275 浏览 评分:0.0
使用for循环计算2的幂 摘要:因为懒得导入math.h库,就使用for循环写 ```c #include int main() { int n,s=1,i; scanf("%d",&n); f…… 题解列表 2023年07月23日 0 点赞 0 评论 676 浏览 评分:9.9
想看奥本海默 摘要:#include<iostream>#include<cmath>using namespace std;int main(void){ float x,x1=1.00; float a;…… 题解列表 2023年07月23日 0 点赞 0 评论 249 浏览 评分:9.9
1199: 哥德巴赫曾猜测 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int add(int n){ for(int i=2;i<n;i++) if(n…… 题解列表 2023年07月23日 0 点赞 0 评论 263 浏览 评分:9.9
1045 暴力解 摘要:#include<iostream>using namespace std;int s[10];int a,b;int da=0,xiao=10050;int main(void){ for(i…… 题解列表 2023年07月23日 0 点赞 0 评论 298 浏览 评分:9.9
用 for(auto & c:s)遍历字符串并赋值 摘要:解题思路: 字符串遍历注意事项: getline取空格参考代码:#include<iostream>#include<cstring>using na…… 题解列表 2023年07月23日 0 点赞 0 评论 265 浏览 评分:9.9
[编程入门]自定义函数之数字后移-简单方法 摘要:解题思路:通过将后m位赋值给一个新数组b的前m-1位,在将数组剩余的前n-m赋值给新数组的后m位注意事项:注意j的值参考代码:#include<stdio.h>int main(){ int a[10…… 题解列表 2023年07月22日 0 点赞 0 评论 241 浏览 评分:0.0
2837: 年龄与疾病(C语言) 摘要: #include int main() { int n; scanf("%d",&n); int a[n]; for(int i=0;i…… 题解列表 2023年07月22日 0 点赞 0 评论 265 浏览 评分:0.0
计算三角形面积 摘要: ```c #include #include int main() {…… 题解列表 2023年07月22日 0 点赞 0 评论 442 浏览 评分:9.0
鸡兔同笼问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d %d",2*…… 题解列表 2023年07月22日 0 点赞 0 评论 270 浏览 评分:2.0