Skip to content

Commit 8bde229

Browse files
committed
added first page of compprog course
1 parent 7fae946 commit 8bde229

File tree

4 files changed

+76
-21
lines changed

4 files changed

+76
-21
lines changed

_compprogcourse/01_intro.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: panel
3+
title: Intro
4+
---
5+
6+
<h2>Intro</h2>
7+
8+
<div class="row">
9+
<div class="col-md-6">
10+
<ul>
11+
<li> <a href="https://open.kattis.com/problems/stockbroker">Daydreaming Stockbroker</a></li>
12+
<li> <a href="https://open.kattis.com/problems/billiard">Billiard</a></li>
13+
<li> <a href="https://open.kattis.com/problems/pairingsocks">Pairing Socks</a></li>
14+
<li> <a href="https://open.kattis.com/problems/vegetables">Boiling Vegetables</a></li>
15+
<li> <a href="https://open.kattis.com/problems/ceremony">Opening Ceremony</a></li>
16+
</ul>
17+
</div>
18+
<div class="col-md-6">
19+
<p>
20+
Here are a couple of problems where each solution demonstrates some concept that is quite common at programming competitions. For an experienced competitve programmare, who has seen all these techniques before most of these problems would be classified as easy. They are however chosen so that they become a challange for someone who is new to competitive programming. Please move on to the next topic when you've solved a few of these!
21+
</p>
22+
<p>
23+
Note that your program is tested on secret inputs. Your program has to produce the correct output for all secrets inputs. You can however be sure that the secret inputs follow the input format given in the problem statement.
24+
</p>
25+
<p>
26+
When your program is not accepted, there can be some different errors, which are described with error codes. I plan to add some tips about the error codes in the future.
27+
</p>
28+
</div>
29+
</div>

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: "Code@LTH"
22
permalink: "/blog/:year/:month/:day/:title/"
33
timezone: "Europe/Stockholm"
44
encoding: "utf-8"
5+
collections:
6+
compprogcourse:
7+
output: true
8+
permalink: "/:collection/:title/"
59

610
defaults:
711
-

resources/compprog/course/index.html renamed to resources/compprog/course.html

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,41 @@ <h2>Competitive Programming Course</h2>
99
<blockquote>
1010
Problem solving made fun.
1111
</blockquote>
12-
12+
</div>
13+
</div>
14+
<div class="row">
15+
<div class="col-md-6">
1316
<p>
1417
This course aims to help you train for upcoming programming competitions. Please don't feel the urge to not compete before finish this course, or before you solve all the problems linked. The best practice is to participate.
1518
</p>
19+
</div>
20+
</div>
21+
<div class="row">
22+
<div class="col-md-6">
1623

1724
<p> This course focuses on a subset of competitions with the following restrictions:</p>
1825

1926
<ul>
2027
<li>The output of your algorithm is either correct or not correct, there are no problems that you can solve partially.</li>
2128
<li>Your code for a problem is submitted to a judge server that runs your code with a time limit on some hidder testcases.</li>
22-
<li>You use a <a href="https://open.kattis.com/help">language supported by Kattis</a>, since the problems we will use are hosted.</li>
29+
<li>You use a <a href="https://open.kattis.com/help">language supported by Kattis</a>, since the problems we will use are hosted at Kattis.</li>
2330
</ul>
24-
31+
</div>
32+
<div class="col-md-6">
2533
<p> Preliminaries </p>
2634
<ul>
2735
<li>Reading from stdin, printing to stdout. You can find information on how to do this in your prefered language on <a href="https://open.kattis.com/help">Kattis helppage</a> </li>
28-
<li>Basic data structures like Queue, Set, Map, Heap. Take the course <a href="http://cs.lth.se/edaa01/">EDAA01</a>, or read about these data structures on <a href="https://en.wikipedia.org/wiki/List_of_data_structures">wikipedia</a></li>
36+
<li>Basic data structures like Queue, Set, Map, Heap. Take the course <a href="http://cs.lth.se/edaa01/">EDAA01</a>, or read about these data structures on <a href="https://en.wikipedia.org/wiki/List_of_data_structures">wikipedia</a>.</li>
37+
<li>A Kattis-account, create one <a href="https://open.kattis.com/register">here</a>.</li>
38+
</ul>
39+
</div>
40+
</div>
41+
<div class="row">
42+
<div class="col-md-6">
43+
<ul>
44+
{% for topic in site.compprogcourse %}
45+
<li><a href="{{ topic.url | prepend: site.baseurl }}">{{ topic.title }}</a></li>
46+
{% endfor %}
2947
</ul>
3048
</div>
3149
</div>

resources/compprog/index.html

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,27 @@ <h2>Competitive Programming</h2>
99
</p>
1010

1111
<div class="row">
12+
<div class="col-md-6">
13+
<h3>Calendar</h3>
14+
<iframe src="https://calendar.google.com/calendar/embed?title=%20&amp;mode=AGENDA&amp;height=600&amp;wkst=2&amp;hl=en&amp;bgcolor=%23FFFFFF&amp;src=lof5ol7ne0larfc1a00m5qdjec%40group.calendar.google.com&amp;color=%23B1365F&amp;ctz=Europe%2FStockholm" style="border-width:0" width="100%" height="600" frameborder="0" scrolling="no"></iframe>
15+
</div>
16+
17+
<div class="col-md-6">
18+
<h3>Course</h3>
19+
Check out our <a href="/resources/compprog/course">intro course</a> in competitive programming aimed at students who have at least one or two courses of programming experience. The course covers a lot of different algorithmic topics, common at programming competitions.
20+
</div>
21+
22+
<div class="col-md-6">
23+
<h3>Training sites</h3>
24+
<ul>
25+
<li><a href="https://open.kattis.com/">Kattis</a> - A large collection of algorithmic problems. Is used as the judge system for a lot of competitions. </li>
26+
<li><a href="http://codeforces.com/">Codeforces</a> - A Russian site that organize weekly 2h competitions. Perfect if you wan't to train to solve problems fast! </li>
27+
<li><a href="https://www.codechef.com/">Code Chef</a> - An Indian site that organize a lot of competitions that are open for submissions for weeks! </li>
28+
<li><a href="https://atcoder.jp/">At Coder</a> - A Japanese site that organise similar competitions as Codeforces.</li>
29+
<li><a href="https://projecteuler.net/">Project Euler</a> - A site hosted in memory of the very productive matematician Euler. Features very mathematical problems.</li>
30+
<li><a href="https://adventofcode.com/">Advent of Code</a> - Each December we get an advent calendar of small puzzels. Lots of puzzels are very algorithmic, some expose you to things like MD5 or JSON.</li>
31+
</ul>
32+
</div>
1233
<div class="col-md-6">
1334
<h3>Programming Competitions</h3>
1435
<ul>
@@ -26,22 +47,5 @@ <h3>Programming Competitions</h3>
2647
<li><a href="http://www.codingcup.se/">Swedish Coding Cup</a> - A series of competitions hosted on universities and companies around Sweden. In 2017/18 the cup consists of 8 competitions. Code@LTH organised <a href="http://challenge.codeatlth.org/">LTH Challenge</a>, which was part of the cup, this we plan to continue with! </li>
2748
</ul>
2849
</div>
29-
<div class="col-md-6">
30-
<h3>Calendar</h3>
31-
<iframe src="https://calendar.google.com/calendar/embed?title=%20&amp;mode=AGENDA&amp;height=600&amp;wkst=2&amp;hl=en&amp;bgcolor=%23FFFFFF&amp;src=lof5ol7ne0larfc1a00m5qdjec%40group.calendar.google.com&amp;color=%23B1365F&amp;ctz=Europe%2FStockholm"
32-
style="border-width:0" width="100%" height="600" frameborder="0" scrolling="no"></iframe>
33-
</div>
34-
35-
<div class="col-md-6">
36-
<h3>Training sites</h3>
37-
<ul>
38-
<li><a href="https://open.kattis.com/">Kattis</a> - A large collection of algorithmic problems. Is used as the judge system for a lot of competitions. </li>
39-
<li><a href="http://codeforces.com/">Codeforces</a> - A Russian site that organize weekly 2h competitions. Perfect if you wan't to train to solve problems fast! </li>
40-
<li><a href="https://www.codechef.com/">Code Chef</a> - An Indian site that organize a lot of competitions that are open for submissions for weeks! </li>
41-
<li><a href="https://atcoder.jp/">At Coder</a> - A Japanese site that organise similar competitions as Codeforces.</li>
42-
<li><a href="https://projecteuler.net/">Project Euler</a> - A site hosted in memory of the very productive matematician Euler. Features very mathematical problems.</li>
43-
<li><a href="https://adventofcode.com/">Advent of Code</a> - Each December we get an advent calendar of small puzzels. Lots of puzzels are very algorithmic, some expose you to things like MD5 or JSON.</li>
44-
</ul>
45-
</div>
4650

4751
</div>

0 commit comments

Comments
 (0)