Skip to content

Commit bc65013

Browse files
committed
Update.
1 parent b3b65db commit bc65013

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

SUMMARY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
* [Genius \[230 points\]](/cryptography/genius-230-points.md)
99
* [Paillier Service \[400 points\]](/cryptography/paillier-service-400-points.md)
1010
* [Forensics](forensics.md)
11+
* [Serial \[300 points\]](/forensics/serial-300-points.md)
1112
* [Programming](programming.md)
1213
* [Hello, world! \[10 points\]](programming/hello-world-10-points.md)
14+
* [Fzz Buzz 2 \[200 points\]](/programming/fzz-buzz-2-200-points.md)
1315
* [Match Me \[300 points\]](/programming/match-me-300-points.md)
1416
* [Reverse Engineering](reverse-engineering.md)
1517
* [Useless Python \[50 points\]](/reverse-engineering/useless-python-50-points.md)

forensics/serial-300-points.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,4 +470,4 @@ S e r i a l . . .
470470

471471
### External Writeups
472472

473-
* None
473+
* \(none\)

programming/fzz-buzz-2-200-points.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Oh no! Two of my keys are broken! Please help me make the same Fzz Buzz program,
44

55
As a side note, use of `eval()` and `exec()` is also frowned upon and will be marked invalid.
66

7-
***This writeup is a python solution***
7+
### Solution
88

9-
### Summary
9+
***This writeup is a python solution***
1010

1111
The goal of this challenge was to write a fizz buzz program without using the letter `i` or the question mark character `?`. You must read an integer `n` from stdin and print that many lines of fizz buzz. For example, if `n = 17`, output:
1212

@@ -30,7 +30,7 @@ FizzBuzz
3030
17
3131
```
3232

33-
### How to get input / print
33+
#### How to get input / print
3434

3535
In order to get user input, you must call `input()` and likewise, to print you must call `print()`. Therefore, we need some way to alias these functions without using the character `i`.
3636

@@ -52,7 +52,7 @@ p = getattr(globals()['__bu\x69lt\x69ns__'],'pr\x69nt')
5252

5353
Now `f` will call `input` and `p` will call `print`.
5454

55-
### How to loop
55+
#### How to loop
5656

5757
Since the user provides the number of lines to print, we must find some way to loop from `1` to `n`.
5858

@@ -71,7 +71,7 @@ def go(k):
7171
go(1) # Start the chain
7272
```
7373

74-
### How to use conditionals?
74+
#### How to use conditionals?
7575

7676
We ran into a problem in our last task: we can't use `if` since it has an `i`. Therefore, we must find some other way to get conditional behavior.
7777

@@ -94,7 +94,7 @@ a = ((k % 15 == 0) and p('F\x69zzBuzz'))
9494

9595
In the previous line, we first check if `k` (the line number) is divisible by `3` and `5` (or just `15`). If it is not, the conditional short-circuits and the right side is not evaluated. If it is, we call `p('F\x69zzBuzz')` which prints `FizzBuzz`. (The `a =` is just so that it is a valid expression).
9696

97-
### Putting it all together
97+
#### Putting it all together
9898

9999
Therefore, using all of these ideas, we can come up with the following program:
100100

0 commit comments

Comments
 (0)