20221123字符逆序 摘要:解题思路:注意事项:字符串长度为l,则旧/新字符串下标最大均为l-1;参考代码:#include <stdio.h>#include <string.h>int main(){ int i,j…… 题解列表 2022年11月23日 0 点赞 0 评论 336 浏览 评分:0.0
编写题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,k; scanf("%d",&n); for(i=1;i<=n;i++) { k=0; …… 题解列表 2022年11月23日 0 点赞 0 评论 332 浏览 评分:9.9
编写题解 2837: 年龄与疾病 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int jibing(int A[100],float n){ int i; float w,x,y,z; for(i=0;i<n;…… 题解列表 2022年11月23日 0 点赞 0 评论 481 浏览 评分:8.0
2009: 第一个带类的C++程序 摘要:```cpp #include using namespace std; class Clock { public: int Set() { cin >> year >> mo…… 题解列表 2022年11月23日 0 点赞 0 评论 490 浏览 评分:9.9
ceil函数解邮资问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main() { int x,N; char c; scanf("%d …… 题解列表 2022年11月23日 0 点赞 2 评论 997 浏览 评分:9.9
编写题解 1034: [编程入门]自定义函数之数字分离,有比较细节的地方 摘要:解题思路:利用for循环注意事项:直接用input函数不用外面嵌套int,这也是这个题应该注意的地方参考代码:def q():#直接用q带过了 a = input()#直接便利了字符串,而外面有…… 题解列表 2022年11月23日 0 点赞 0 评论 565 浏览 评分:0.0
不用分类讨论c语言解决大神老白 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int n,i,a[100],s; while((scanf("%d",&n…… 题解列表 2022年11月23日 0 点赞 0 评论 427 浏览 评分:0.0
Pascal三角--C语言 摘要:解题思路:注意事项:参考代码:int main(){ int PASCAL[100][100] = { 0 }; int i, j,Length_space,row; scanf("%d", &row…… 题解列表 2022年11月23日 0 点赞 0 评论 368 浏览 评分:0.0
二分+并查集 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>/*其实这一题自己最大的收获是数学等价,来回跳2x次等价于单向跳2x次,证明:假设可以来回跳2x次,那么按回来的跳的石头正着…… 题解列表 2022年11月23日 0 点赞 0 评论 1322 浏览 评分:9.9
无循环纯递归 摘要:```c #include void An(int, int); void Sn(int); int n;//定义全局变量 int main(void) { scanf("%…… 题解列表 2022年11月23日 0 点赞 0 评论 440 浏览 评分:0.0