leetcode红蓝球 leetcode leetcode
leetcode红蓝球牛排编号123.把1和2放在锅上,5分钟后取下2,把1翻一面,把3放上去,5分钟后取下1,把2放进去,把3翻一面5+5+5 =15 === public class Main { public static void main(String[] args) { String str = ""; Scanner input = new Scanner(System.in); str = input.next(); StringBuffer sb = new StringBuffer(str); sb.reverse(); int count = 0; for (int i = 0; i < str.length(); i++) { if (str.c
用户评论