此题用C的输入格式是什么

编译通过...

├ 测试数据 01:运行超时|无输出...

├ 测试数据 02:运行超时|无输出...

├ 测试数据 03:运行超时|无输出...

├ 测试数据 04:运行超时|无输出...

├ 测试数据 05:运行超时|无输出...

├ 测试数据 06:运行超时|无输出...

├ 测试数据 07:运行超时|无输出...

├ 测试数据 08:运行超时|无输出...

├ 测试数据 09:运行超时|无输出...

├ 测试数据 10:运行超时|无输出...

---|---|---|---|---|---|---|---|-

Unaccepted 有效得分:0 有效耗时:0ms

#include "stdio.h"

char uuu[20]="0123456789ABCDEFJHIJ";

void work(int a,int b)

{

int ls[100]={0},i,j;

i=0;

while(a!=0)

{

i++;

ls[i]=a%b;

a/=b;

if(ls[i]=1;j--)

printf("%c",uuu[ls[j]]);

}

int main()

{

int a,b;

while(!EOF)

{

scanf("%d %d\n",&a,&b);

printf("%d=",a);

work(a,b);

printf("(base %d)\n",b);

}

return 0;

}

0 条评论

目前还没有评论...

信息

ID
1465
难度
6
分类
其他 | 数学 点击显示
标签
递交数
1227
已通过
330
通过率
27%
被复制
10
上传者