535
来源:互联网 发布:maven nexus windows 编辑:程序博客网 时间:2024/06/01 08:11
package FourFour;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Four_four {
public static int a[]=new int[10000];
public static int a_pc=0;
public static void n_To_shi(int num,int n){
if(num/n==0){
a[a_pc++]=num%n;
return;
}
a[a_pc++]=num%n;
n_To_shi(num/n,n);
}
public static void main(String[] args){
Scanner sc;
try {
sc = new Scanner(new FileInputStream("input.txt"));
int iuput_num=sc.nextInt();
int n_jin_zhi=sc.nextInt();
//System.out.println(iuput_num);
n_To_shi(iuput_num,n_jin_zhi);
for(int i=a_pc-1;i>=0;i--){
System.out.print(a[i]+" ");
}
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
- 535
- 多普达 535
- codeforces 535
- srm 535
- K5IIS配535
- (535C)codeforce
- 535 Error:authentication failed
- 535 Error: authentication failed
- Codeforces 535D
- Codeforces 535D
- 535 Error:authentication failed.
- 535 Error:authentication failed
- srm 535 div2 250&500
- 宝马520改535排气
- 宝马520改535排气
- CODEFORCES 535A 解题报告
- CODEFORCES 535B 解题报告
- 535A: Tavas and Nafas
- Android评论工具类,实现QQ空间文字评论效果
- roi
- windows文件关联、打开方式列表之修改注册表攻略
- (2)测试MatConvNet
- STL模板之vector与sort的使用
- 535
- **第四届“图灵杯”NEUQ-ACM程序设计竞赛(个人赛)C粉丝与汉诺塔
- 51822配对
- 行人检测资源
- Swift 值类型 和 引用类型的区别
- 论epoll的使用
- dfbdhd
- PHP中定义常量的区别,define() vs. const
- java并发编程系列之CountDownLatch的使用