[编程入门]宏定义的练习 摘要:解题思路:定义一个宏定义,求取a b的余数注意事项:取余符号是%参考代码:#include<stdio.h>#define reasu (a%b)main(){ int a,b; s…… 题解列表 2024年08月27日 0 点赞 0 评论 468 浏览 评分:0.0
[编程入门]数组插入处理 摘要:解题思路:关键在于n后面数的替换,可定义两个相同数组来实现替换。注意事项:参考代码:# includeint main(){ int n; int a[10]; int b[9]; for (int …… 题解列表 2024年08月27日 0 点赞 0 评论 313 浏览 评分:0.0
1796: 蛇形填数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int j; int a[100][100] …… 题解列表 2024年08月28日 0 点赞 0 评论 527 浏览 评分:0.0
编写题解 2945: 素数对 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int s(int n){ if(n==1) return 0; for(int …… 题解列表 2024年08月28日 0 点赞 0 评论 551 浏览 评分:0.0
没什么好说的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int i; scanf("%d",&i); i=(i>>4)&(~(~0<<4)); …… 题解列表 2024年08月29日 0 点赞 0 评论 336 浏览 评分:0.0
没什么好说的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int a,n,b,c; scanf("%u %d",&a,&n); b=a>>n; …… 题解列表 2024年08月29日 1 点赞 0 评论 521 浏览 评分:0.0
2880: 计算鞍点 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[100][100],n,sum=0;int main(){…… 题解列表 2024年08月29日 1 点赞 0 评论 610 浏览 评分:0.0
1190: 剔除相关数 摘要:核心:就挺难说的,暴力求解吧代码:def func(l): c = [] l1 = [0] * len(l) res = [] for i in range(l…… 题解列表 2024年08月29日 0 点赞 0 评论 302 浏览 评分:0.0
题解(C语言) 摘要:```c #include #include #include typedef struct { int data; // 存储符合条件的数字 int sig…… 题解列表 2024年08月29日 0 点赞 0 评论 321 浏览 评分:0.0
1156题解(C语言) 摘要:```c #include #include // 计算数字每位的立方和,并判断该和是否等于原数字 int fun(int i) { int n = i, sum = 0; …… 题解列表 2024年08月29日 0 点赞 0 评论 353 浏览 评分:0.0