++++++++++++++++++++ 0基础学IT就来黑喵程序员之向量点积的计算 +++++++++++++++++++++ 摘要:解题思路:注意事项://x轴与y轴的方向选取参考代码:#include<stdio.h> int main() { int n; scanf("%d", &n); i…… 题解列表 2024年07月30日 0 点赞 0 评论 325 浏览 评分:9.9
1119: C语言训练-"水仙花数"问题1 摘要:```cpp #include using namespace std; int a,b,c; int sxh(int n) { a=n/100; b=n/10%10; c=n%…… 题解列表 2024年07月30日 0 点赞 0 评论 259 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积(C语言)题解 摘要:解题思路:注意事项:不要将带参的宏作为参数传给另一个宏!!! 如:#define area(S(a,b,c),a,b,c) sqrt(S(a,b,c)*(S(a,b,c)-a)*(S(a,b,c)…… 题解列表 2024年07月30日 0 点赞 0 评论 475 浏览 评分:9.6
1023: [编程入门]选择排序 摘要:```cpp #include using namespace std; int k; int xz(int a[10]){ for(int i=0;ia[i]; xz(a); f…… 题解列表 2024年07月30日 0 点赞 0 评论 379 浏览 评分:10.0
题解 2821: 开关灯 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().strip().split())l = [0 for i in range(n)]for i in range(2,m+1,1):…… 题解列表 2024年07月30日 0 点赞 0 评论 293 浏览 评分:0.0
1131: C语言训练-斐波纳契数列 摘要:```cpp #include using namespace std; int a[40]; int fbnq(int n){ a[0]=1,a[1]=1; for(int i=2;…… 题解列表 2024年07月30日 1 点赞 0 评论 210 浏览 评分:0.0
1852: 求1+2+3+...+n的值 摘要:解题思路:用for循环,从1累加到n。注意事项:n<=1000000000,变量得开long long。参考代码:#include<bits/stdc++.h>using namespace std;…… 题解列表 2024年07月30日 0 点赞 0 评论 193 浏览 评分:0.0
c++的compare就是c的strcmp 摘要:#include<bits/stdc++.h> using namespace std; int main() { string s[3]; cin>>s[0]>>s[1]>…… 题解列表 2024年07月30日 0 点赞 0 评论 195 浏览 评分:0.0
STL句子拆分成单词 摘要:#include<bits/stdc++.h> using namespace std; set<string>s; int main() { string str,c; …… 题解列表 2024年07月30日 0 点赞 0 评论 209 浏览 评分:0.0
8行:帅破天际 摘要:解题思路:注意事项:参考代码:wlb=[]for i in range(5): row=input() wlb.append(row)n,m=map(int,input().split()…… 题解列表 2024年07月30日 1 点赞 0 评论 581 浏览 评分:9.9