回答編集履歴
1
ソース修正
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
String str = "";
|
10
10
|
|
11
|
-
for (int i =
|
11
|
+
for (int i = 15; i >= 0; i--) {
|
12
12
|
|
13
13
|
if ((s & (1 << i)) != 0) {
|
14
14
|
|
@@ -22,15 +22,9 @@
|
|
22
22
|
|
23
23
|
}
|
24
24
|
|
25
|
-
StringBuffer sb = new StringBuffer(str);
|
26
|
-
|
27
|
-
String dst = sb.reverse().toString();
|
28
|
-
|
29
|
-
System.out.println(
|
25
|
+
System.out.println(str);
|
30
26
|
|
31
27
|
}
|
32
|
-
|
33
|
-
|
34
28
|
|
35
29
|
```
|
36
30
|
|