2903: 不高兴的津津 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int day; int arr1[8]={0}; int arr2[8]={0};//两个数组来装数…… 题解列表 2022年11月17日 0 点赞 0 评论 349 浏览 评分:0.0
1275:吹哨传球 摘要:```python n, m = map(int, input().split()) def C(x, y): a1 = 1 for i in range(1, y+1):…… 题解列表 2022年11月17日 0 点赞 0 评论 388 浏览 评分:0.0
动态规划—01背包复习 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define max(x,y) x>y?x:y int v[60] = { 0 };//物品价值 int w[60] = …… 题解列表 2022年11月17日 0 点赞 0 评论 321 浏览 评分:0.0
1174: 计算直线的交点数 摘要:```cpp #include using namespace std; int main() { int n,s,i; while(cin>>n) { …… 题解列表 2022年11月18日 0 点赞 0 评论 433 浏览 评分:0.0
C语言 带参数宏定义练习& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define exchange(a,b) int t;t = a; a = b; b = tint main(){ i…… 题解列表 2022年11月18日 0 点赞 0 评论 276 浏览 评分:0.0
next_permutation全排序 摘要:```cpp #include //next_permutation全排序 using namespace std; int main() { int n,len=0; cin>…… 题解列表 2022年11月18日 0 点赞 0 评论 342 浏览 评分:0.0
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 评论 274 浏览 评分:0.0
自守数问题之满满的套路(格式+数据范围) 摘要:解题思路: 题前小磕:这一题真是满满的套路啊,足足被卡了半个多小时,第一次错误是答案少了两个;第二次是格式错误。但我好不容易AC了这一题,我必须写个题解给大家避避坑。 …… 题解列表 2022年11月19日 0 点赞 0 评论 453 浏览 评分:0.0
C语言 宏定义的练习& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define remainder(a,b) printf("%d",a%b) int main(){ int a…… 题解列表 2022年11月19日 0 点赞 0 评论 267 浏览 评分: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 评论 282 浏览 评分:0.0