关于Python的基本输入输出 摘要:import sys sys.set_int_max_str_digits(100000000) while True: try: n = int(input()) …… 题解列表 2024年07月15日 0 点赞 0 评论 91 浏览 评分:0.0
1743: 大整数排序 摘要:解题思路:把数当成字符串,用向量把他们装起来,长度长的一定比长度短的数大,长度一样就直接判断字符串谁大谁小注意事项:参考代码:#include<bits/stdc++.h> using namesp…… 题解列表 2022年04月12日 0 点赞 0 评论 197 浏览 评分:0.0
大整数排序 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<bits/stdc++.h>#include<cstring>#include<cmath>#include<cst…… 题解列表 2019年02月26日 0 点赞 0 评论 450 浏览 评分:0.0
用了5种排序算法来解决(Java代码) 摘要:```java package lanqiao; import java.math.BigInteger; import java.util.Scanner; /* * 题目 17…… 题解列表 2021年08月20日 0 点赞 0 评论 274 浏览 评分:0.0
大整数排序-题解(C语言代码) 摘要:#include #include int main() { int n; int i,j,a,b; char s[110][1100],t[1100]; while(scanf("%d…… 题解列表 2020年04月10日 0 点赞 0 评论 576 浏览 评分:0.0
1743: 大整数排序 (java的两种实现) 摘要:原题: [https://www.dotcpp.com/oj/problem1743.html](https://www.dotcpp.com/oj/problem1743.html) - 思路…… 题解列表 2022年03月24日 0 点赞 0 评论 202 浏览 评分:0.0
大整数排序-题解(C++代码) 摘要:解题思路:1.getchar():获取终端缓冲区的回车字符2.定义string str,操作简单;3.sort中自定义排序规则:如果字符串长度相等,按长度小到大排序;否则按照字符串从小到大排序;参考代…… 题解列表 2020年08月24日 0 点赞 0 评论 377 浏览 评分:0.0
1743: 大整数排序 (string数组,sort自定义) 摘要:```cpp #include using namespace std; string num[10005];//利用string进行大数存储 int n; bool cmp(string …… 题解列表 2022年08月06日 0 点赞 0 评论 228 浏览 评分:0.0
大整数排序-题解(C++代码)请注意多组测试样例 摘要:解题思路: 不是很复杂,利用string依次进行大数输入,也不需要多做处理,自定义一个比较函数sort一下就解决了参考代码:#include<bits/stdc++.h> #defin…… 题解列表 2019年06月05日 0 点赞 0 评论 527 浏览 评分:0.0