Merge branch 'master' of github.com:failedxyz/easyctf
This commit is contained in:
commit
1576dfb946
17 changed files with 2091 additions and 0 deletions
25
fizz-buzz-1/description.md
Normal file
25
fizz-buzz-1/description.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
Write a program that outputs the numbers 1 through n, in incremental order, one per line.
|
||||
|
||||
However, replace any line that is a multiple of 3 with "Fizz" and any that are a multiple of 5 with "Buzz". Any line that is a multiple of 3 and 5 should be written as "FizzBuzz".
|
||||
|
||||
The input will be the number of lines to write, n, followed by a linebreak.
|
||||
|
||||
Sample output:
|
||||
|
||||
```
|
||||
1
|
||||
2
|
||||
Fizz
|
||||
4
|
||||
Buzz
|
||||
|
||||
...
|
||||
|
||||
13
|
||||
14
|
||||
FizzBuzz
|
||||
16
|
||||
17
|
||||
|
||||
...
|
||||
```
|
4
fizz-buzz-1/grader.py
Normal file
4
fizz-buzz-1/grader.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
def grade(random, key):
|
||||
if key.find("PUT A NEW KEY HERE!!!!") != -1:
|
||||
return True, "Correct!"
|
||||
return False, "Nope."
|
5
fizz-buzz-1/problem.yml
Normal file
5
fizz-buzz-1/problem.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
title: Fizz Buzz 1
|
||||
category: Programming
|
||||
value: 10
|
||||
author: wiresboy
|
||||
autogen: false
|
1
fizz-buzz-1/todo.txt
Normal file
1
fizz-buzz-1/todo.txt
Normal file
|
@ -0,0 +1 @@
|
|||
I still need to do the graders.
|
1
fizz-buzz-2/description.md
Normal file
1
fizz-buzz-2/description.md
Normal file
|
@ -0,0 +1 @@
|
|||
Oh no! Two of my keys are broken! Please help me make the same Fzz Buzz program, sans that one letter and queston marks.
|
4
fizz-buzz-2/grader.py
Normal file
4
fizz-buzz-2/grader.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
def grade(random, key):
|
||||
if key.find("PUT A NEW KEY HERE!!!!") != -1:
|
||||
return True, "Correct!"
|
||||
return False, "Nope."
|
6
fizz-buzz-2/problem.yml
Normal file
6
fizz-buzz-2/problem.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
title: Fzz Buzz 2
|
||||
category: Programming
|
||||
value: 200
|
||||
hint: Have fun!
|
||||
author: wresboy
|
||||
autogen: false
|
7
fizz-buzz-2/todo.txt
Normal file
7
fizz-buzz-2/todo.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
I still need to do the execution grader, and probably introduce some sort of limits to prevent the contestant from having a print "1,2,fizz,4,buzz..." type program. A length limit would probably be sufficient.
|
||||
|
||||
I also need to add a program validator, that checks for the characters "i", "I", and "?".
|
||||
|
||||
We will need to disable "eval()", "exec()", globals (in python), etc.
|
||||
|
||||
Backup hint: `Don't use the characters "i", "I", and "?".`
|
1
flag-peg/description.md
Normal file
1
flag-peg/description.md
Normal file
|
@ -0,0 +1 @@
|
|||
We found a flag but it didn't do anything. Maybe you can find a better [flag](${heresaflag_jpg})?
|
4
flag-peg/grader.py
Normal file
4
flag-peg/grader.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
def grade(autogen, key):
|
||||
if key.find("1_wr073_7h15_1n_m5p41n7") != -1:
|
||||
return True, "Correct!"
|
||||
return False, "Nope!"
|
BIN
flag-peg/heresaflag.jpg
Normal file
BIN
flag-peg/heresaflag.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 487 KiB |
9
flag-peg/problem.yml
Normal file
9
flag-peg/problem.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
author: GenericNickname
|
||||
title: Flag PEG
|
||||
hint: You're not looking deep enough
|
||||
category: Forensics
|
||||
autogen: false
|
||||
programming: false
|
||||
value: 50
|
||||
files:
|
||||
- heresaflag.jpg
|
10
match-me/description.md
Normal file
10
match-me/description.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
When making pairings between two sets of objects based on their preferences (in this case people), there can be multiple stable solutions, stable meaning that no two elements would prefer to be matched with each other over their current matching.
|
||||
A side-effect of having multiple solutions is that there are solutions favor one group over the other.
|
||||
|
||||
We received two files, one listing men and the other women. Each line contains a name, followed by a series of numbers. Each number N corresponds to their preference to be matched with the Nth member of the opposite list, with 1 being the highest.
|
||||
|
||||
For example, the entry "Joe 4, 5, 3, 1, 2" means that Joe would most prefer the 4th entry on the opposite list, and least prefer the 2nd.
|
||||
|
||||
We have heard that there is one pairing which will be together in all possible stable matchings, please discover who this couple is and provide their names as "<male_name>,<female_name>"
|
||||
|
||||
Here are the lists of preferences:[male preferences](${male_prefs_txt}), [female preferences](${female_prefs_txt}).
|
1000
match-me/female_prefs.txt
Normal file
1000
match-me/female_prefs.txt
Normal file
File diff suppressed because it is too large
Load diff
4
match-me/grader.py
Normal file
4
match-me/grader.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
def grade(autogen, key):
|
||||
if key.find("Paris,Blair") != -1:
|
||||
return True, "Correct!"
|
||||
return False, "Nope!"
|
1000
match-me/male_prefs.txt
Normal file
1000
match-me/male_prefs.txt
Normal file
File diff suppressed because it is too large
Load diff
10
match-me/problem.yml
Normal file
10
match-me/problem.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
author: GenericNickname
|
||||
title: Match Me
|
||||
hint: This is a fairly well-known graph problem, there's probably some sort of internet source on it.
|
||||
category: Algorithms
|
||||
autogen: false
|
||||
programming: false
|
||||
value: 50
|
||||
files:
|
||||
- female_prefs.txt
|
||||
- male_prefs.txt
|
Loading…
Reference in a new issue