
进制转换
霍雨浩——舞麟
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
问题 C: 进制转换
长见识了呀,第一次遇到这种规模的进制转换,嗯,又增加了不少的知识。 #include<bits/stdc++.h> using namespace std; #define ll long long const double pi=acos(-1.0); const double eps=1e-8; const int maxn=100005; char q[205]; ///输入 char w[205]; ///输出 char mod(char q[]) ///模拟辗转相除法求出每一.原创 2020-10-18 18:37:56 · 165 阅读 · 0 评论 -
问题 B: 数制转换
需要注意的点:输入的时候会有小写字母和大写字母,woc!!!!! 我要吐了!!!! 读题真的很重要!!! #include<bits/stdc++.h> using namespace std; #define ll long long const double pi=acos(-1.0); const double eps=1e-8; const int maxn=100005; char q[100]; char w[200]; int a; ll f(int x) { ll an.原创 2020-10-18 16:10:20 · 89 阅读 · 0 评论 -
1022 D进制的A+B (20分)
注意:是用do——while #include<bits/stdc++.h> using namespace std; #define ll long long const double pi=acos(-1.0); const double eps=1e-8; const int maxn=100005; int q[100]; int main() { int a,b; int d; scanf("%d%d",&a,&b); scanf("%.原创 2020-10-18 15:22:30 · 138 阅读 · 0 评论