1025-新手向代码 摘要:解题思路:考虑列表的排序注意事项:如何换行输出参考代码:a = list(map(int, input().split()))b = int(input())a.append(b)a.sort()pr…… 题解列表 2023年07月24日 2 点赞 0 评论 501 浏览 评分:10.0
vector cmp 高精度减法 摘要:#include<iostream>#include<vector>#include<string>using namespace std;/*bool cmp(vector<int>&A,vecto…… 题解列表 2023年07月24日 0 点赞 0 评论 311 浏览 评分:9.9
2903: 不高兴的津津(C语言) 摘要: #include int main() { int a[7][2]; for(int i=0; i…… 题解列表 2023年07月24日 0 点赞 0 评论 296 浏览 评分:0.0
2901: 查找特定的值(C语言) 摘要: #include #include int main() { int n; scanf("%d",&n); int a[n+1]; for(int i=1…… 题解列表 2023年07月24日 0 点赞 0 评论 211 浏览 评分:0.0
2821: 开关灯(C语言) 摘要: #include int main() { int N;//灯的数量 scanf("%d",&N); int M;//人的数量 scanf("%d",&M); …… 题解列表 2023年07月24日 0 点赞 0 评论 211 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:最大公约数求法: 辗转相除法: 假如需要求 1997 和 615 两个正整数的最大公约数,用欧几里得算法,是这样进行的: 1997 ÷ 615 = 3 (余…… 题解列表 2023年07月24日 0 点赞 0 评论 213 浏览 评分:9.9
筛选N以内的素数 标题 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int isprime(int number){ int isprime=1; for(int i=2;i…… 题解列表 2023年07月24日 0 点赞 0 评论 128 浏览 评分:0.0
分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void func(long long n);int main() { long long a; scanf("%lld", &a…… 题解列表 2023年07月24日 0 点赞 0 评论 224 浏览 评分:0.0
二叉树根据性质写代码c++ 摘要:解题思路:根据二叉树的性质想注意事项:理清思路,做这题绕死我了,还可以优化,但不想做哈哈参考代码:#include<bits/stdc++.h>using namespace std;int n,m,…… 题解列表 2023年07月24日 0 点赞 0 评论 282 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[2],b[2],c,d,j=0,k=0; for (i = 1000; i <= 9…… 题解列表 2023年07月24日 0 点赞 0 评论 197 浏览 评分:0.0