EGGY_PRATE @ 2024-08-20 13:49:10
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n,m;
cin>>n>>m;
string s="",s2="0123456789ABCDEFGHIJKLMNOPQRSTUVWYZ";
while(n!=0){
long long x=n%m;
s=s2[x]+s;
n=n/m;
}
cout<<s;
}
80分,救我!!!!!!
by Ahws_rwhy @ 2024-08-20 13:51:55
@EGGY_PRATE 你 X 呢?
by EGGY_PRATE @ 2024-08-20 13:52:54
@rwhy ? ?????????????????????????????????????????
by Ahws_rwhy @ 2024-08-20 13:53:28
@EGGY_PRATE s2 的值少了 X
by Diredtofu @ 2024-08-20 13:54:43
@rwhy 还是错的,不是这里的问题
by Ahws_rwhy @ 2024-08-20 13:55:24
@Diredtofu https://www.luogu.com.cn/record/173765539
??
by Diredtofu @ 2024-08-20 13:56:05
@rwhy 我是小丑,给他把W改成X了
by Diredtofu @ 2024-08-20 13:56:21
@rwhy 我的问题
by shortnut @ 2024-08-20 14:00:07
@EGGY_PRATE 回去在唱几遍字母歌,看看漏了那个字母吧
by EGGY_PRATE @ 2024-08-20 14:08:58
@shortnut 测试点没有x; https://www.luogu.com.cn/record/173766619
by xuxiyuan1112 @ 2024-08-20 14:18:16
@EGGY_PRATE 有的