自定义函数之字符串提取-详细明白 摘要:参考代码:# include <stdio.h># include <string.h>int f(char str1[], char str2[]){ int i, len, j = 0; …… 题解列表 2022年11月22日 0 点赞 0 评论 273 浏览 评分:9.9
自定义函数之字符类型统计(C语言) 摘要:解题思路:注意事项:参考代码:# include <stdio.h># include <string.h>int main(){ char a[100]; int len, x, y, …… 题解列表 2022年11月22日 0 点赞 0 评论 275 浏览 评分:9.9
废话不多说,看代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m,i,j; scanf("%d%d",&n,&m); int a[n+m],b…… 题解列表 2022年11月22日 0 点赞 0 评论 330 浏览 评分:9.9
这学生难道不得用我的ojbk函数(微笑) 摘要:代码附在下面,函数在下面 根据不及格为假,及格为真,***采用异或***,不同输出真,相同输出假,刚好符合题意。 #include int main(void) {…… 题解列表 2022年11月22日 0 点赞 1 评论 524 浏览 评分:9.9
两行代码完成 摘要:解题思路:注意事项:参考代码:x=input()print(x[::-1])#使用列表切片的方法直接倒序输出…… 题解列表 2022年11月22日 1 点赞 1 评论 307 浏览 评分:9.9
宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include <stdio.h># define f(a, b, c) max = a>b?(b>c?a:(a>c?a:c)) : (b<c?c:b) int …… 题解列表 2022年11月22日 0 点赞 0 评论 249 浏览 评分:9.9
超详细通俗易懂C++,暴力求解 摘要:参考代码:#include<iostream> using namespace std; int main() { // 输入 int N; cin>>N; …… 题解列表 2022年11月23日 0 点赞 1 评论 311 浏览 评分:9.9
c++利用指针循环计数(超级简单,全是c++基础语法) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;void fund(int a[], int n);int main() { int n; cin >> n; i…… 题解列表 2022年11月23日 0 点赞 0 评论 257 浏览 评分:9.9
斐波那契数列(c++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[1001];int main(){ int n; cin>>…… 题解列表 2022年11月23日 0 点赞 0 评论 237 浏览 评分:9.9
二分+并查集 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>/*其实这一题自己最大的收获是数学等价,来回跳2x次等价于单向跳2x次,证明:假设可以来回跳2x次,那么按回来的跳的石头正着…… 题解列表 2022年11月23日 0 点赞 0 评论 1195 浏览 评分:9.9