Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
326564 黄浙峰老师 【C6-3】十进制 -> b进制 C++ 通过 100 1 MS 256 KB 215 2025-06-14 13:16:59

Tests(10/10):


#include<iostream> using namespace std; int main(){ int t,b,n; cin>>t; for(int i=0;i<t;i++){ string s; cin>>b>>n; while(n){ s=char('0'+n%b)+s; n/=b; } cout<<s<<endl; } return 0; }


测评信息: