About
My profile picture was drawn by AvaLovelace. Make sure to check out her webcomic for more!
Hey students!
For a list of homework, set your user-script to this script:
function parse(data){
var first = true, items, line, lines = $('.user-content', data).text().split('\n');
$('#content-body').empty();
for(var i = 0; i < lines.length; i++){
line = lines[i];
if(line.indexOf('head') == 0){
items = line.split(', ');
if(!first) $('#content-body').append('<br/>');
$('#content-body').append('<div style="font-size:22px;font-weight:bold;">' + items[1] + '</div>');
first = false;
}
else if(line.indexOf('problem') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"><a href="/problem/' + items[1] + '">' + items[2] + ' (' + items[3] + ' points)' + '</a></div>');
}
else if(line.indexOf('link') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"><a href="//' + items[1] + '"> [External Link] ' + items[2] + '</a></div>');
}
}
}
$(document).ready(function(){
$('<li><a href="/homework" class="nav-homework">Homework</a>').insertBefore($($('li a[href="/problems/"]')[0].parentElement));
if(location.pathname == '/homework'){
$('title').html('Homework');
$('#content > h2').text('Homework');
$('#content-body').html('<br/><h3>Loading...</h3>');
$('a[href="/homework"]').addClass('active');
$.get('https://dmoj.ca/user/richardyi25', parse);
}
});
This script adds a "Homework" page to DMOJ and a link to it on the top-bar. All homework will be automatically updated by us.
(If you're wondering, this is where we store the homework)
head, Assessment Problems (New/Prospective Students Only) problem, ccc05j3, Returning Home, 5 problem, ccc13j2, Rotating Letters, 5 problem, ccc96s1, Deficient Perfect and Abundant, 5 problem, ccc10s2, Huffman Encoding, 5 problem, ccc14s3, The Geneva Confection, 7
head, Offline Processing and Square Root Decomp problem, dmopc14c2p6, Selective Cutting, 12 problem, dmopc17c1p5, Intimidating Arrays, 15 link, mcpt.ca/problem/gi19s5, Dodgeball Club (12 points) problem, ccoprep16c2q3, HopScotch, 20 problem, dmpg18s5, Mimi and Division, 15 problem, dmopc16c4p4, Molly and Manga Shopping, 15 link, cses.fi/problemset/task/1734, Distinct Values Queries
head, Fun Problems link, mcpt.ca/problem/wolfclothes, Walf Wear problem, bts18p5, An FFT Problem, 12 problem, ccoprep16q1, City Game, 15
head, Cross Product and Friends problem, lkp18c2p3, Non-strategic Bombing, 7 problem, cco07p1, Cows, 10 problem, ccc06s3, Tin Can Telephone, 12 problem, dmpg18g5, Triangles, 15 problem, cco16p2, Splitting Hares, 15
head, Line Sweep problem, ccc14s4, Tinted Glass Window, 15 problem, ioi98p4, Picture, 15
head, String Algorithms: No hashing allowed :( problem, ccc16j3, Hidden Palindrome [Do this in O(N)], 5 problem, ecoo16r2p1, Palindrome Panic, 12 problem, bf4, String Finding, 5 problem, dmopc17c2p4, Mimi and Dictionary, 12 problem, mnyc17p3, Hurontario, 10
head, String Hashing problem, bf4, String Finding, 5 problem, bf2hard, Lexicographically Least Substring (Hard), 15 problem, ccc03s4, Substrings, 15 problem, coci06c5p6, Dvaput, 15 problem, ecoo16r2p1, Palindrome Panic, 12 problem, ceoi17p5, Palindromic Partitions, 15
head, Non-AtCoder Dynamic Programming problem, coci06c1p5, Bond, 10 problem, vmss7wc16c5p3, Jayden Studies Trees, 7 problem, mnyc17p4, Removing Christmas Trees, 15
head, Even Even More Dynamic Programming problem, dpj, Sushi, 12 problem, dpk, Stones, 10 problem, dpl, Deque, 10 problem, dpm, Candies, 12 problem, dpn, Slimes, 12 problem, dpo, Matching, 12 problem, dpp, Independent Set, 12
head, Dynamic Programming in the CCC problem, ccc07s5, Bowling for Numbers, 10 problem, ccc08s5, Nukit, 10 problem, ccc16s4, Combining Riceballs, 15
head, Even More Dynamic Programming problem, vmss7wc16c4p3, Restoring Reputation, 10 problem, dp1p3, Longest Increasing Subsequence (Easy), 7 problem, lis, Longest Increasing Subsequence (Hard), 7 problem, dpi, Coins, 10
head, More Dynamic Programming problem, dmopc16c3p3, Phantom Fight, 10 problem, dpf, LCS, 7 problem, dpg, Longest Path, 10 problem, dph, Grid 1, 10
head, Dynamic Programming problem, dpa, Frog 1, 7 problem, dpb, Frog 2, 7 problem, dpc, Vacation, 7 problem, dpd, Knapsack 1, 7 problem, dpe, Knapsack 2, 7 problem, ccc00s4, Golf, 10 problem, cco08p5, Candy (Partials), 15 problem, cco19p3, Winter Driving (Partials), 30
head, Segment Tree link, cses.fi/problemset/task/1649, Range Minimum Queries II problem, ds3, Segment Tree Test, 15 problem, dmpg17g2, Holy Grail War, 20
head, Fenwick/Binary Indexed Tree link, cses.fi/problemset/task/1648, Range Sum Queries II problem, ds1, Binary Indexed Tree Test, 10 problem, dmopc16c1p5, Blood Tubes, 12 problem, ccc05s5, Pinball Ranking, 15
head, Prefix Sum/Difference Array Revisited problem, dmopc14c2p4, Deforestation, 7 problem, dmopc17c1p2, Sharing Crayons, 7 link, codeforces.com/contest/1398/problem/C, Good Subarrays problem, dmopc15c6p3, Harvest, 7 problem, seed3, Battle Positions, 7 problem, dmopc15c1p5, Lelei and Dragon Scales, 15 problem, ccc14s4, Tinted Glass Window, 15
head, Graph Theory Practice Problems (DUE AUG 29) problem, vmss15c1p4, Frank and Roads, 10 problem, rte16s3, School Traversal, 7 problem, ccc10j5, Knight Hop, 7 problem, dmopc16c4p5, Migrant Mascot, 10 problem, year2015p4, Leftover Eggnog, 15
head, HOMEWORK DUE August 8th (Code available on GitHub) problem, ccc13s4, Who is Taller?, 10 problem, ccc18j5, Choose your own path, 7
head, More Graph Theory Problems problem, ccc07s4, Waterpark, 10 problem, vmss7wc16c6p3, Cold War Telecom, 10
head, Mixed Graph Theory Problems problem, dmopc13c3p3, Crossing Field, 10 problem, anoisyclass, A Noisy Class, 8 problem, dmopc17c1p3, Hitchhiking Fun, 7 problem, ds2, Disjoint Set Test, 10 problem, dmopc16c4p5, Migrant Mascot, 10 problem, ccc17s4, Minimum Cost Flow, 11 out of 17 problem, vmss7wc15c6p3, Agriphilisophical Data Slaves, 10
head, Graph Theory Part 2 problem, vmss7wc15c4p3, Chain Rule, 7 problem, dmpg17s2, Anime Conventions, 7
head, Graph Theory problem, vmss7wc16c3p2, Can Shahir even get there?!, 5 problem, dwite09c2p4, Breadth First Not Quite Tree, 5 problem, sssp, Single Source Shortest Path, 7
head, Homework Due June 20th (Will be checking) problem, mwc15c2p4, Robotics Summative, 5
head, Problems for June 13th problem, coci08c2p3, Perket (do it with bitmasks!), 7 problem, mwc15c6p3, Magical Sets, 7 problem, vmss7wc16c3p2, Can Shahir even get there?!, 7
head, Assorted 7-Point Problems problem, coci08c2p3, Perket, 7 problem, coci18c5p3, Ispit, 7 problem, boardgames, Board Games, 7 problem, crci06p1, Bard, 7
head, Binary Search problem, seed2, Uneven Sand, 5 problem, dmopc16c4p2, Systests, 7 problem, dmopc18c5p2, A Photography Problem, 7 problem, ecoo18r2p3, Factorial, 12 problem, coci07c3p4, Dejavu, 7
head, 5-Pointer Expansion Pack (Due May 23rd) problem, ccc08s2, Pennies in the Ring, 5 problem, dwite09c5p5, Weak Passwords, 5 problem, dwite11c2p1, Wandering Billy, 5 problem, dwite08c2p3, My drink is made of cubes, 5 problem, mwc15c5p2, WildCard, 5 problem, coci14c1p2, Klopka, 5
head, More Problems (Due May 9th) problem, mockccc2020c1j4, A Binary Problem, 5 problem, dwite09c1p2, Word Scrambler, 5 problem, ecoo17r1p1, Munch 'n' Brunch, 5 problem, dmopc18c1p2, Sorting, 5 problem, vmss7wc16c4p2, Tests or Test Cases?, 5 problem, crci08p2, Majstor, 5
head, Two-Pointers Problems (Due May 23rd) problem, dmopc18c5p3, A Familiar Problem, 7 problem, thicc17p5, Smarties, 7
head, Data Structures Part 2 (Due April 25th) problem, pwindsor18p7, Going Back to the Definitions, 7 problem, mwc15c2p2, Towering Towers, 10 problem, dmopc16c4p3, Carnival Phantasm, 10 problem, coi06p1, Patrik, 10 problem, dmpg18g1, Musical Chairs, 10
head, Built-in Data Structures and Sorting (Due April 18th) problem, ccc20j4, Cyclic Shifts, 5 problem, ccc97s4, Dynamic Dictionary Coding, 5 problem, mwc15c4p3, Salt, 6 problem, mwc15c5p3, French Words, 7 problem, tsoc15c2p5, Bebiliths, 7 problem, ccc15s3, Gates, 10
head, Problems (Due April 11th) problem, dwite07c4p2, And the winner is..., 5 problem, coci18c3p1, Magnus, 5 problem, coci06c3p1, Patuljci, 5 problem, coci07c4p1, Vauvau, 5
head, Even More Assorted Problems (Due March 28th) problem, ccc19j3, Cold Compress, 5 problem, ccc07j4, Anagram Checker, 5 problem, ccc02s2, Fraction Action, 5 problem, dmopc18c3p1, Bob and Music Class, 5 link, https://mcpt.ca/problem/lcc18c1s3, MCPT Judge Problem: Abelian
head, Arrays and Loops (Due March 28th) problem, ccc18s2, Sunflowers, 3 problem, coci19c5p1, Emacs, 5 problem, dwite08c4p2, Tic Tac Win, 5 problem, 3dconnect4, 3-Dimensional Connect 4, 5 problem, coci08c4p3, Rot, 5 problem, ccc04s2, TopYodeller, 5
head, More Assorted Problems (Due March 21st) problem, ccc18s1, Voronoi Villages, 3 problem, ccc16j3, Hidden Palindrome, 5 problem, ccc11s1, English or French?, 5 problem, ccc09j3, Good Times, 5 problem, ccc19j3, Cold Compress, 5
head, Integer Arithmetic (Due March 14th) problem, dwite07c3p1, Yet Another Primes Question, 5 problem, coci14c4p1, Cesta, 5 problem, coci08c5p2, Jabuka, 5 problem, bf3, Next Prime, 5 problem, ccc19s2, Pretty Average Primes, 5 problem, fhc15c1p1, Homework, 10
head, Assorted Homework Problems (Due March 14th) problem, ccc13j4, Time on task, 5 problem, dwite07c2p4, All Is Balanced, 5 problem, bts17p2, Avalon, 5 problem, bts18p2, Letter Frequency, 5 problem, ccc04j4, Simple Encryption, 5
head, Prefix Sum Array (Due March 7th) link, archive.mcpt.ca/cpt-lessons/data-structures/prefix-sum-array/, Prefix Sum Array Article problem, dmopc14c2p4, Deforestation, 7 problem, gfssoc2j4, Marathon, 7]