1391基础解法(Python) 摘要:解题思路:注意事项:参考代码:import sysfor line in sys.stdin: line = list(map(int,line[1:].split())) line.so…… 题解列表 2022年11月18日 0 点赞 0 评论 381 浏览 评分:9.9
C语言 带参数宏定义练习& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define exchange(a,b) int t;t = a; a = b; b = tint main(){ i…… 题解列表 2022年11月18日 0 点赞 0 评论 342 浏览 评分:0.0
next_permutation全排序 摘要:```cpp #include //next_permutation全排序 using namespace std; int main() { int n,len=0; cin>…… 题解列表 2022年11月18日 0 点赞 0 评论 402 浏览 评分:0.0
2120: 信息学奥赛一本通T1312-昆虫繁殖 摘要:解题思路:设两个数组,一个代表总数,一个代表卵数。注意事项:参考代码:#include<bits/stdc++.h> using namespace std; long long a[10000]…… 题解列表 2022年11月19日 0 点赞 0 评论 722 浏览 评分:9.9
1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码: int a=1; int n; int t=0; scanf("%d", &n); for (int i = 1; i <= n; i++) { t = 0;//防止…… 题解列表 2022年11月19日 0 点赞 0 评论 329 浏览 评分:0.0
自守数问题之满满的套路(格式+数据范围) 摘要:解题思路: 题前小磕:这一题真是满满的套路啊,足足被卡了半个多小时,第一次错误是答案少了两个;第二次是格式错误。但我好不容易AC了这一题,我必须写个题解给大家避避坑。 …… 题解列表 2022年11月19日 0 点赞 0 评论 542 浏览 评分:0.0
哥德巴赫曾猜测-最低时间复杂度N满足10**7的所有测试案例以及套用求素数模板,免费哦 摘要:解题思路:将问题差分成先求1~n的所有素数 再累加素数判断是否符合题意注意事项:首先眼光不能局限在本题目10**4案例上,当然时间复杂度N**2也可以写出来,希望大家可以将算法完善.关于求解一个数是不…… 题解列表 2022年11月19日 0 点赞 0 评论 432 浏览 评分:5.5
C语言 宏定义的练习& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define remainder(a,b) printf("%d",a%b) int main(){ int a…… 题解列表 2022年11月19日 0 点赞 0 评论 324 浏览 评分:0.0
1152题解c语言 摘要:解题思路:注意事项:参考代码:方法一#include <stdio.h>#include <math.h>int main(){ int m,i; double t=1; scanf("%d",&m)…… 题解列表 2022年11月19日 0 点赞 0 评论 338 浏览 评分:0.0
C语言 宏定义练习之三角形面积& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define S_(x,y,z) (x+y+z)/2#define area(S,a,b,c) sqr…… 题解列表 2022年11月19日 0 点赞 0 评论 393 浏览 评分:0.0