1034: [编程入门]自定义函数之数字分离-简单方法 摘要:解题思路:注意事项:注意使用-%2d(左对齐并间隔两格) 参考代码:#include<stdio.h>#include<math.h>int fun(int a){ int t = 0; for (…… 题解列表 2023年07月16日 0 点赞 0 评论 334 浏览 评分:0.0
矩阵乘法(C++)简单易懂 摘要:参考代码:#include <iostream>using namespace std;int main() { int n, m, k; cin >> n >> m >> k; i…… 题解列表 2023年07月17日 0 点赞 0 评论 532 浏览 评分:0.0
数组模拟栈的使用 摘要:解题思路:数组模拟栈了解栈是一个什么结构:先进后出的线性结构表了解栈顶的初始位置:=-1当栈满时的条件是:栈顶等于数组容量减一当栈空的条件是:栈顶位置为-1处理好当空栈时的异常栈和队列区别:一个是先进…… 题解列表 2023年07月17日 0 点赞 0 评论 377 浏览 评分:0.0
数组逆序重放 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int n; …… 题解列表 2023年07月17日 0 点赞 0 评论 324 浏览 评分:0.0
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[100];int main(){ int x; cin>>…… 题解列表 2023年07月17日 0 点赞 0 评论 612 浏览 评分:0.0
2840: 向量点积计算 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000],b[10000];int main(){ int …… 题解列表 2023年07月17日 0 点赞 0 评论 361 浏览 评分:0.0
C语言训练-斐波纳契数列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int n; …… 题解列表 2023年07月17日 0 点赞 0 评论 338 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要: #include int number_ou(int a)//当为偶数时 { printf("%d/2=%d\n",a,a/2); return a/2; } i…… 题解列表 2023年07月17日 0 点赞 0 评论 345 浏览 评分:0.0
向量点积计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[1000],b[1000];int main(){ int n,s…… 题解列表 2023年07月17日 0 点赞 0 评论 331 浏览 评分:0.0
请指正,提交后显示第一个答案不正确 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void f(char a[100]){ int x = 0, y = 0, z = 0, e = 0; for (int…… 题解列表 2023年07月17日 0 点赞 0 评论 317 浏览 评分:0.0