题解 | #数字颠倒#

数字颠倒

https://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe

import java.util.Scanner;
//谁20秒火速AC一道题呢嘿嘿

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
       String str=sc.nextLine();
       for(int i=str.length()-1;i>=0;i--)
       {
        System.out.print(str.charAt(i));
       }
       System.out.println();
    }
}

全部评论

相关推荐

在找内推的六边形战士很想去毕业旅行:不努力不是我兄弟_
点赞 评论 收藏
分享
09-05 13:11
已编辑
东华理工大学 前端工程师
阿米诺斯look:完蛋,我被美女包围了😆
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务