**1145 problems solved**

**Rank by points:**#6

**Total points:**844

**27 contests written**

**Rank by rating:**#5

**Rating:**2395

**Volatility:**17

**Min. rating:**1505

**Max rating:**2468

**From**
Pierre Elliott Trudeau H.S., Olympiads School, Canadian Computing Olympiad, University of Waterloo

#### About

Represented Dmojistan at IOI 2017.

Fun fact: The DMOJ logo isn't symmetrical. This is obvious in the logo below. This is not obvious when the logo is tiny (like the logo in the top-right of every DMOJ page).

```
a=[]
a.append(a)
print(a==[a])
print(a==a[0])
```

Math contest lottery winner (AMC 10B 2015).

Just wanted to say that there is a **User-script** thing when you edit your profile. Use it to prank someone.

After you're done, make sure to give them this link and tell them to erase the User-script.

```
$(function() {
// You have to credit d if you're going to use this
// Can't modify stuff now, right?
var elements = document.getElementsByTagName("li");
for (i=elements.length-1; i>=0; i--) {
var e=elements[i];
if (e.children.length===1) {
var f=e.children[0];
if (f.tagName.toUpperCase()==="A") {
if (f.text==="Edit profile") {
e.parentNode.removeChild(e);
}
else if (f.text==="Log out") {
e.parentNode.removeChild(e);
}
}
}
}
// Can't submit solutions now, right?
var links = document.getElementsByTagName("a");
for (i=links.length-1; i>=0; i--) {
var l=links[i];
if (l.text.toLowerCase()==="resubmit") {
l.href="/";
l.text="You cannot resubmit";
}
else if (l.text.toLowerCase()==="submit solution") {
l.href="/";
l.text="You cannot submit";
}
}
// Part 2 of solution submission code
inputs = document.getElementsByTagName("input");
for (var index=inputs.length-1; index>=0; index--) {
i=inputs[index];
if (i.hasAttribute("Value")) {
if (i.value.toLowerCase()==="submit!") {
i.disabled=true;
i.value="Submission unavailable";
}
}
}
});
function banned(){
setTimeout(function(){alert("YOU HAVE BEEN PERMANENTLY BANNED FROM DMOJ.")}, 2000);
}
banned();
```

#### Fun facts

123*542=66666

O(n!) = O((n/e)^n) by Stirling's approximation.

Ｇｏｏｄ ｆｏｎｔ。

I still play osu! (mostly the mania mode)

Changed my password due to Joey, don't trust him with your stuff.

There was another person in my school with my same name and grade.

Points become exponentially annoying after 3000p or 200pp.

DM::OJ doesn't support multithreading.

Programming path:

- Codecademy (was an unpleasant experience)
- Project Euler (stuck at 144)
- WCIPEG
- DMOJ + Olympiads

(Olympiads teacher)

#### Some of my submissions

Good submission to DMPG '15 S3 - Zen Garden (I wrote a program to do this).

#### Some of other people's submissions

Second best comment (problem) (I can't remember that Thornhill banner anymore)

Longer compilation error (problem)

#### Unusual problem pages

#### Unusual facts about DM::OJ

dmoj has two chats: ancient dmoj chat and Slack (in the footer)

dmoj has a neglected page (now deleted).

dmoj has an editorial page that is very hard to find. This is strange because I don't think other pages link to it.

global_smurf's password is brucedontputmeintothepassword (why, kobortor?) (someone changed it for some reason) :( (I think r3mark changed it)

#### Unusual pages on the internet

Loop. (doesn't work anymore) :(

time.is isup.me repl.it

HTML to markdown. (Note: poor quality converter)

Markdown to visual. (Note: this website's markdown can parse LaTeX)

#### Math

$$\displaystyle \frac d{dx}f(x)^{g(x)}$$

$\frac d{dx}f(x)^{g(x)}$

~\frac d{dx}f(x)^{g(x)}~

Solve this problem to prove that you are okay at math:

Get all solutions satisfying these constraints.

~a,b,c,d\in\mathbb{C}~

~d\notin\mathbb{R}~

~\begin{cases}b\times c\times d=b+c+d\\c\times d\times a=c+d+a\\d\times a\times b=d+a+b \\a\times b\times c=a+b+c\end{cases}~

#### Interesting problems (kind of outdated)

Longest title. (not anymore, someone shortened the first bit to VM7WC)

1000 testcases. (this problem should have used an input format similar to this problem)

(still need to do mockccc15s4 and dmpg15g6 properly and prove my method for coci14c4p5)

**Underrated Problems**

(to 12p, but test cases are short so whatever) CCC '05 - Bananas

(to 7p) CCC '15 - Wait Time

(to 10p) COCI '14 Contest 7 #2 Kriza

(to 5p) CCC '02 - AmeriCanadian

(to 12p) ECOO '13 R1 P4 - Coupon Day

(to 12p) UTS Open '15 #2 - Secret Code

(to 12p) Rotations in 3 Dimensions

(to 30p) Free Desserts

(to 15p) IOI '10 P2 - Hotter Colder

(to 25p) IOI '17 P2 - Wiring

(to 40p) IOI '17 P3 - Toy Train

**Overrated Problems**

(to 10p) CCC '13 - Chances of Winning

(to 7p) CCC '07 - Friends

(to 3p) Hailstone Numbers

(to 10p) System(0);

(to 25p) Matrix Determinant

(to 5p) Encode

(to 12p) Tree Cutting

(to 7p) P4 - HEIGHT

(to 35p) Terminus Est

**Unreasonably Annoying Problems**

More German Nouns

CCC '06 - Tin Can Telephone

DMPG '15 S2 - MMORPG

Sword Art Online Judge 2

Rotations in 3 Dimensions

ECOO '16 R2 P4 - Hop, Skip and Jump

**Weird Problems**

Polynomial Time Subset Sum

COCI '14 Contest 6 #6 WTF

Mackenzie New Year's Challenge P4 - Abdoof (possible in Turing)

**Sketchy Problems**

Bubble Cup V8 E Spectator Riots

DMOPC '16 Contest 3 P4 - Serpent's Search

Bubble Cup V9 C Paint it really, really black

#### Ratings (very outdated)

My university email is [email protected] where x="j35yuen" and y="edu.uwaterloo.ca". Who knows, maybe you want to send Foxen to me if you read this far.

Top ratings ever:

- bqi343 (2487)
- d (2443)
- y0105w49 (2415)
- SourSpinach (2305)
- nullptr (2277)

#### Polynomial time subset sum (ancient dmoj history)

```
/\ | |
/ \ _ _| |__ _ __ ___ _ _
/ /\ \| | | | '_ \| '__/ _ \ | | |
/ ____ \ |_| | |_) | | | __/ |_| |
/_/ \_\__,_|_.__/|_| \___|\__, |
_ _ __/ |
/\ | | | | |___/
/ \ | |___| |_ ___ _ __
/ /\ \ | / __| __/ _ \| '_ \
/ ____ \| \__ \ || (_) | | | |
/_/ \_\_|___/\__\___/|_| |_|
10000 points
_., ,. ___.._ , /'|....._ |
| ,-' |'' / | \ `-|-/. _'-. _,....
,/''''''''.'/...\../= ,_|_.-.,.,- ,,,-' '
,' _\.|/+ |___, ---+-=-.--'. '''
,. -'_ '''''' =''.+-'|'`.|'\||,,'/
,' __...|...'`-.. .--'' . \ \. |+.|',==._,.._
.' _ `.......| \ .`'',+''++''-+ `\
| .' ||.|....| . | \|_,'' || | '
| ||.|.|..| | | |_,'| ,'|___'
.-----,-- ||.|.|..| | |' -' | ' || --.
'''''`\ _.-' '-. ||..,_-...._| | | | |+' '\
_.,\. ., | \|||/'|.., + | | | || \
' .' ` ' , |||../,''-. |\ | | | || '
Fatal | '. / | ||'./,|.|-| |\ | | | ||
Eagle | `._|_ | ||.||+\.|.'.+' | | | ||
'. ' _,'_ -. ||.`\|..'' _| | | | ||
-/ ' ' / ||.|.'`-.,- | | | | || ,/
|/__ | | ||.|.|'-| | | | | ||-.'
_.-'' . | | ||.|.|..| | | | | _|| ,...
_,' \`+ \ - |..|.|..| | |__..,--+''_||_`.
-. '.__./|..|.''-|.,-+'''|__..,--''' || |
''/' ||.|.''-+.,-+'''| | | || |
/ ||.|.|..| | | | | || July 4, 2015
| ||.|.|..| | | | | || WA algorithm
||.|.|..| | | | | ||
||.|.|..| | | | | || I guess this
||.|.|..| | | | | || date is okay
Subset Sum Algorithm
```

(Problem and the Github repository have been taken down)

Note: the first AC became WA because FatalEagle rejudged and made it easy for everyone else