首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
ZeroQi_404
2026年3月17日 18:32
进制转换3 题解:
P1422
回复 0
|
赞 10
|
浏览 159
#include <iostream> #include <string> using namespace std; int ctoi(char c){ if(c>='0' && c<='9') return c-'0'; else return c - 'A' +10; } char itoc(int x){ if(x<10) return x +'0'; else return x-10+'a'; } int main(){ int m,n; cin >> m...
Adelaide111
2026年3月15日 22:15
进制转换3 题解:
P1422
回复 0
|
赞 15
|
浏览 171
#include <bits/stdc++.h> using namespace std; char x[1005]; int main() { int m,n; cin>>m>>n; scanf("%s",x); int len=strlen(x); long long ans=0; for(int i=0; i<len; i++)...
太一
2026年3月14日 22:14
进制转换3 题解:
P1422
回复 1
|
赞 4
|
浏览 86
#include<iostream> #include<cmath> #include<algorithm> #include<string> using namespace std; int main() { long long m, n, index = 0, sum = 0, i = 0, j = 0, num = 0; char arr[1000]; string x; &n...
王艺道
2026年3月10日 21:21
进制转换3 题解:
P1422
回复 0
|
赞 6
|
浏览 137
// 将M进制的数X转换为N进制的数输出。 #include<bits/stdc++.h> using namespace std; int main(){ int M, N; long long tmp = 0; //需要使用longlong string x; string xn = ""; cin >> M >> N &...
Cat111
2026年3月5日 15:04
进制转换3 题解:
P1422
回复 0
|
赞 26
|
浏览 391
#include <bits/stdc++.h> using namespace std; int main(){ int M,N; char X[10005]; scanf("%d %d",&M,&N); scanf("%s",X); int len=strlen(X); long long num=0; for(int i=0;i<len;i++){ num*=M; if(X[i]>='0'&&X[i]<='9') num=num+(X[i]-'0'); else...
uly
2026年3月3日 13:38
进制转换3 题解:
P1422
回复 0
|
赞 9
|
浏览 434
#include <bits/stdc++.h> using namespace std; int val(char c){ if(c>='A'&&c<='Z') return c-'A'+10; else{ return c-'0';} } char val2str(int v){ if(0<...
岸上的乌龟
2026年1月31日 21:40
进制转换3 题解:
P1422
回复 0
|
赞 2
|
浏览 381
边界情况:x为0 大数:用long long int
mlx
2026年1月30日 11:23
进制转换3 题解:
P1422
回复 0
|
赞 18
|
浏览 337
#include<iostream> #include<algorithm> using namespace std; typedef long long ll; string nums; int main() { string s; ll m,n; cin>>m>>n; cin>>s; if(s=="0") { cout<<0; return 0; } ll num_10=0; for(int i=0;i<s.size();i++) ...
bro
2026年1月21日 20:29
进制转换3 题解:c++
P1422
回复 0
|
赞 22
|
浏览 432
#include <bits/stdc++.h> using namespace std; int main(){ int M,N; string s; cin >> M >> N >> s; //M进制转十进制 long long num = 0; for(int i = 0;i < s.size(); i++){ &nbs...
笨蛋也想学机试
2026年1月14日 17:09
进制转换3 题解:
P1422
回复 0
|
赞 8
|
浏览 332
#include<bits/stdc++.h> using namespace std; int main(){ int x,y; char s[105]; scanf("%d %d",&x,&y); scanf("%s",&s); //这里不需要用getchar,getchar只有前面读取...
1
2
3
...
5
题目
进制转换3
题解数量
47
发布题解
在线答疑
热门题解
1
进制转换3 题解:
2
进制转换3 题解:
3
进制转换3 题解:C++ 80%通过率的看这里
4
进制转换3 题解:
5
进制转换3 题解:c++
6
进制转换3 题解:
7
进制转换3 题解:
8
进制转换3 题解:
9
进制转换3 题解:
10
P1422 进制转换3 答疑提问: