From 40c8ea776008c4a296a11592c0fdfa95ffa02810 Mon Sep 17 00:00:00 2001 From: LHY0125 <3364451258@qq.com> Date: Mon, 9 Feb 2026 20:40:03 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=94=B9=E8=BF=9B=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5=E7=9A=84=E7=BC=A9=E8=BF=9B=E4=BB=A5=E5=A2=9E?= =?UTF-8?q?=E5=BC=BA=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将单行条件语句拆分为多行,使代码结构更清晰。 --- bin/Main.class | Bin 1595 -> 1603 bytes exercise/src/Main.java | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/Main.class b/bin/Main.class index dd34eb48978b46787d76836be7002a8f94544062..aa31998925945ee653f3b34fa27a73655fb005aa 100644 GIT binary patch delta 118 zcmWN_s}4Z{007Wqm%wfjJU4GPG~J(=Dyue|q~1c1MT*U4HkzP_qD|HX4e^{)cnNo# zAQtVnK`ItR8jEARHyBDA35_L9WK3nv= 0 && id <= 100) { mention[id]++; - if (sender >= 0 && sender <= 100) by[id][sender] = true; + if (sender >= 0 && sender <= 100) + by[id][sender] = true; } } } @@ -30,7 +31,8 @@ public class Main { boolean first = true; for (int s = 0; s <= 100; s++) { if (by[bestId][s]) { - if (!first) sb.append(' '); + if (!first) + sb.append(' '); sb.append(s); first = false; }