Skip to content

Commit cbfabe2

Browse files
committed
Add public and private tape
1 parent f22c81b commit cbfabe2

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed
+3-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
class PopCount {
22

33
public static void main(String[] a) {
4+
int threshold = PublicTape.read();
45
int num = PrivateTape.read();
56
int count = 0;
67
while (num > 0) {
78
num &= num - 1;
89
count++;
910
}
10-
Prover.answer(count);
11+
System.out.println(count);
12+
Prover.answer(count > threshold);
1113
}
1214

1315
}
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
21845
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5

0 commit comments

Comments
 (0)