编写题解 2783: 判断是否为两位数 摘要:解题思路:首先通过Scanner类获取用户输入的正整数,然后判断该数是否大于等于10且小于等于99,如果是,输出1,否则输出0。注意事项:参考代码:import java.util.Scanner;p…… 题解列表 2023年04月14日 0 点赞 0 评论 665 浏览 评分:9.9
用数组方法解决报数问题 摘要:解题思路: 用一个数组num[]代表n个人,用下标代表初始号数,一开始令num[0]到num[n-1]都为1,然后用一个循环,当第x个人的报数为3时,令num[x]=0,直到数组num[]中只有一个1…… 题解列表 2023年04月15日 0 点赞 0 评论 340 浏览 评分:9.9
C/C++,高精度模板题(加法、减法、乘法、除法),会套就行~~ 摘要:#高精度乘法 ------------  ### 显而易见的,我们能够发…… 题解列表 2023年04月15日 1 点赞 2 评论 424 浏览 评分:9.9
C/C++,高精度模板题(加法、减法、乘法、除法),会套就行~~ 摘要:#高进度加法 ------------  ### 显而易见的 C[i] = …… 题解列表 2023年04月15日 0 点赞 0 评论 419 浏览 评分:9.9
1282: 公交汽车 摘要:```cpp #include #define MAX 101 #define INF 50001 #define A_JOURNEY 10 using namespace std; in…… 题解列表 2023年04月15日 0 点赞 0 评论 435 浏览 评分:9.9
1284: 冗余关系 摘要:```cpp #include using namespace std; int pre[1001],sum; int find(int x) { int r=x; wh…… 题解列表 2023年04月15日 0 点赞 0 评论 561 浏览 评分:9.9
1285: 阶乘末尾的K位 摘要:```cpp #include #include using namespace std; long long jiecheng(int n) { long long sum=1;…… 题解列表 2023年04月15日 0 点赞 0 评论 413 浏览 评分:9.9
1286: 最大配对 摘要:```cpp #include #include using namespace std; const int N=1e5+10; int a[N],b[N]; int main() {…… 题解列表 2023年04月15日 0 点赞 0 评论 476 浏览 评分:9.9
1287: 最大质因数 摘要:```cpp #include using namespace std; bool fun(int x) { int y; for(y=x-1;y>1;y--) …… 题解列表 2023年04月15日 0 点赞 0 评论 437 浏览 评分:9.9
1288: 线段的总长 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; long long s[n],…… 题解列表 2023年04月15日 0 点赞 0 评论 420 浏览 评分:9.9