📄 pku2719.java
字号:
import java.io.*;
import java.util.*;
public class Main
{
public static void main(String[] args) throws Exception
{
Scanner cin=new Scanner(System.in);
int N,RA,temp,temp1,m9;
while(true)
{
N=cin.nextInt();
temp=N;
if(N==0) break;
RA=N;
for(m9=1;temp!=0;)
{
temp1=(temp+6)/10;
temp=temp/10;
RA-=temp1*m9;
m9*=9;
}
System.out.println(N+": "+RA);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -