2828: 与7无关的数 摘要:解题思路:注意事项:参考代码:n = int(input())s = 0flag = Falsefor i in range(1,n+1,1): flag = False if i % 7…… 题解列表 2024年07月31日 0 点赞 0 评论 481 浏览 评分:0.0
++++++++++++++++++++ 0基础学IT就来黑喵程序员之向量点积的计算 +++++++++++++++++++++ 摘要:解题思路:注意事项://x轴与y轴的方向选取参考代码:#include<stdio.h> int main() { int n; scanf("%d", &n); i…… 题解列表 2024年07月30日 0 点赞 0 评论 448 浏览 评分: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 评论 410 浏览 评分: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日 2 点赞 0 评论 623 浏览 评分:9.7
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 评论 523 浏览 评分: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 评论 446 浏览 评分: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 评论 331 浏览 评分: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 评论 331 浏览 评分: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 评论 308 浏览 评分:0.0
STL句子拆分成单词 摘要:#include<bits/stdc++.h> using namespace std; set<string>s; int main() { string str,c; …… 题解列表 2024年07月30日 0 点赞 0 评论 334 浏览 评分:0.0