Zjc20120331 @ 2022-01-18 15:13:24
https://www.luogu.com.cn/record/67072016
by Ew_Cors @ 2022-01-18 15:14:17
你最后一个点没过。
by ud2_ @ 2022-01-18 15:16:22
考虑输入 0
by _l_l_l_l_l_ @ 2022-01-18 15:21:38
你谷有价值0pts的hack数据
by Zjc20120331 @ 2022-01-18 15:26:54
非常暴力的解法: https://www.luogu.com.cn/record/67073993
by rookie2022 @ 2022-02-11 20:15:54
@WenZKbb 感谢赐教...加了一个判断就过了...
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if(n==0){
System.out.println(0);
return;
}
while(n%10 == 0){
n /= 10;
}
StringBuffer sb = new StringBuffer(n+"");
if (n<0){
sb.deleteCharAt(0);
sb.append("-");
}
System.out.print(sb.reverse());
}
}
by DE_XZR @ 2022-07-28 19:09:00
@Zjc20120331 回复楼主:
满分好像是120吧,我也是100,WA了个点