clean up general, rearrange
This commit is contained in:
parent
df48a0112c
commit
5c51a53f63
46 changed files with 94 additions and 69 deletions
|
@ -1,36 +0,0 @@
|
||||||
---
|
|
||||||
slug: /intro/running-cpp
|
|
||||||
title: Running C++
|
|
||||||
author: Nathan Wang, Benjamin Qi
|
|
||||||
order: 2
|
|
||||||
---
|
|
||||||
|
|
||||||
How to run C++ locally.
|
|
||||||
|
|
||||||
<!-- END DESCRIPTION -->
|
|
||||||
|
|
||||||
## Running C++ Locally
|
|
||||||
|
|
||||||
(todo)
|
|
||||||
|
|
||||||
## Using C++
|
|
||||||
|
|
||||||
<div class="h-2"></div>
|
|
||||||
|
|
||||||
Here's a basic C++ template you may find useful:
|
|
||||||
|
|
||||||
```cpp
|
|
||||||
#include <bits/stdc++.h>
|
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
// these two lines open the file into the standard input/output,
|
|
||||||
// so you can just use cin/cout.
|
|
||||||
freopen("file.in", "r", stdin); // read from file.in
|
|
||||||
freopen("file.out", "w", stdout); // write to file.out
|
|
||||||
|
|
||||||
// Code goes here!!
|
|
||||||
|
|
||||||
}
|
|
||||||
```
|
|
|
@ -5,6 +5,11 @@ author: Nathan Wang, Benjamin Qi
|
||||||
order: 1
|
order: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- Goals
|
||||||
|
- Module Organization
|
||||||
|
|
||||||
|
<!-- END DESCRIPTION -->
|
||||||
|
|
||||||
## Goals
|
## Goals
|
||||||
|
|
||||||
- Intended audience: anybody in Bronze - Gold.
|
- Intended audience: anybody in Bronze - Gold.
|
|
@ -2,7 +2,7 @@
|
||||||
slug: /intro/prerequisites
|
slug: /intro/prerequisites
|
||||||
title: Prerequisites
|
title: Prerequisites
|
||||||
author: Nathan Wang
|
author: Nathan Wang
|
||||||
order: 2
|
order: 3
|
||||||
---
|
---
|
||||||
|
|
||||||
Here's what you should learn before reading these resources.
|
Here's what you should learn before reading these resources.
|
||||||
|
@ -38,7 +38,7 @@ Expected Knowledge:
|
||||||
[[info | Pro Tip]]
|
[[info | Pro Tip]]
|
||||||
| You do not need to learn pointers (for now). Knowledge of structs and classes is useful but not required.
|
| You do not need to learn pointers (for now). Knowledge of structs and classes is useful but not required.
|
||||||
|
|
||||||
### Getting Started
|
### Resources for Getting Started
|
||||||
|
|
||||||
- [CodeSignal](https://codesignal.com/)
|
- [CodeSignal](https://codesignal.com/)
|
||||||
- good place to practice basics
|
- good place to practice basics
|
|
@ -7,7 +7,7 @@ problems:
|
||||||
- bronze_word
|
- bronze_word
|
||||||
- bronze_paint
|
- bronze_paint
|
||||||
- bronze_square
|
- bronze_square
|
||||||
order: 3
|
order: 5
|
||||||
---
|
---
|
||||||
|
|
||||||
Demonstrates how to read in input and print output for a USACO problem in multiple languages. Also lists some introductory USACO Bronze problems.
|
Demonstrates how to read in input and print output for a USACO problem in multiple languages. Also lists some introductory USACO Bronze problems.
|
|
@ -1,3 +1,50 @@
|
||||||
|
---
|
||||||
|
slug: /intro/running-cpp
|
||||||
|
title: Running C++
|
||||||
|
author: Nathan Wang, Benjamin Qi
|
||||||
|
order: 4
|
||||||
|
---
|
||||||
|
|
||||||
|
Running C++ both online and locally.
|
||||||
|
|
||||||
|
<!-- END DESCRIPTION -->
|
||||||
|
|
||||||
|
### Online
|
||||||
|
|
||||||
|
* [CSAcademy](https://csacademy.com/workspace/)
|
||||||
|
* I used this a lot until the queue time limits got rlly annoying
|
||||||
|
* [Ideone](http://ideone.com/)
|
||||||
|
* seems okay if you use an ad blocker
|
||||||
|
* sometimes randomly erases your code when you first create it (so get in the habit of copying your code before creating it :P)
|
||||||
|
|
||||||
|
## Running C++ Locally
|
||||||
|
|
||||||
|
(todo)
|
||||||
|
|
||||||
|
## Using C++
|
||||||
|
|
||||||
|
<div class="h-2"></div>
|
||||||
|
|
||||||
|
Here's a basic C++ template you may find useful:
|
||||||
|
|
||||||
|
```cpp
|
||||||
|
#include <bits/stdc++.h>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
// these two lines open the file into the standard input/output,
|
||||||
|
// so you can just use cin/cout.
|
||||||
|
freopen("file.in", "r", stdin); // read from file.in
|
||||||
|
freopen("file.out", "w", stdout); // write to file.out
|
||||||
|
|
||||||
|
// Code goes here!!
|
||||||
|
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
(old)
|
||||||
|
|
||||||
# C++
|
# C++
|
||||||
|
|
||||||
## Command Line (Mac)
|
## Command Line (Mac)
|
||||||
|
@ -87,14 +134,6 @@ Maybe the following links are helpful?
|
||||||
|
|
||||||
## Tools
|
## Tools
|
||||||
|
|
||||||
### Online
|
|
||||||
|
|
||||||
* [CSAcademy](https://csacademy.com/workspace/)
|
|
||||||
* I used this a lot until the queue time limits got rlly annoying
|
|
||||||
* [Ideone](http://ideone.com/)
|
|
||||||
* seems okay if you use an ad blocker
|
|
||||||
* sometimes randomly erases your code when you first create it (so get in the habit of copying your code before creating it :P)
|
|
||||||
|
|
||||||
### Local IDEs
|
### Local IDEs
|
||||||
|
|
||||||
* [Geany](https://www.geany.org/)
|
* [Geany](https://www.geany.org/)
|
||||||
|
@ -115,11 +154,6 @@ Maybe the following links are helpful?
|
||||||
|
|
||||||
## Useful Links
|
## Useful Links
|
||||||
|
|
||||||
### Reference
|
|
||||||
|
|
||||||
* [cplusplus](http://www.cplusplus.com/reference/)
|
|
||||||
* [cppreference](http://en.cppreference.com/w/)
|
|
||||||
|
|
||||||
### Other
|
### Other
|
||||||
|
|
||||||
* [Intro to Command Line](http://blog.teamtreehouse.com/introduction-to-the-mac-os-x-command-line)
|
* [Intro to Command Line](http://blog.teamtreehouse.com/introduction-to-the-mac-os-x-command-line)
|
|
@ -1,15 +1,13 @@
|
||||||
---
|
---
|
||||||
slug: /intro/getting-started
|
slug: /intro/getting-started
|
||||||
title: Getting Started
|
title: Getting Started
|
||||||
author: Nathan Wang
|
author: Nathan Wang, Benjamin Qi
|
||||||
order: 1
|
order: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- Introduction
|
||||||
<ul class="syllabus-only">
|
- Contest Format
|
||||||
<li>Contest Format</li>
|
- Choosing a Language
|
||||||
<li>Choosing a Language</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<!-- END DESCRIPTION -->
|
<!-- END DESCRIPTION -->
|
||||||
|
|
||||||
|
@ -23,6 +21,9 @@ In competitive programming contests, one must solve well-defined problems by wri
|
||||||
|
|
||||||
[William Lin video!!](https://www.youtube.com/watch?time_continue=1&v=ueNT-w7Oluw)
|
[William Lin video!!](https://www.youtube.com/watch?time_continue=1&v=ueNT-w7Oluw)
|
||||||
|
|
||||||
|
## Contest Format
|
||||||
|
|
||||||
|
|
||||||
## Choosing a Language
|
## Choosing a Language
|
||||||
|
|
||||||
If you're in Bronze, **Don't worry about the language!** If you already know a language, just use it. You can always switch languages down the road.
|
If you're in Bronze, **Don't worry about the language!** If you already know a language, just use it. You can always switch languages down the road.
|
||||||
|
@ -38,7 +39,7 @@ Note: A majority of high level contestants use C++ and Java. Between those, C++
|
||||||
|
|
||||||
Keep in mind that it's easy to switch languages down the road! Don't get caught up on which language to choose. Just pick the one you feel most comfortable with!
|
Keep in mind that it's easy to switch languages down the road! Don't get caught up on which language to choose. Just pick the one you feel most comfortable with!
|
||||||
|
|
||||||
## Language References (provided at IOI)
|
### Language References (provided at IOI)
|
||||||
|
|
||||||
- [C++](https://en.cppreference.com/w/)
|
- [C++](https://en.cppreference.com/w/)
|
||||||
- [Additional C++ reference (not provided at IOI)](http://www.cplusplus.com/)
|
- [Additional C++ reference (not provided at IOI)](http://www.cplusplus.com/)
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
slug: /intro/resources
|
slug: /general/resources
|
||||||
title: Additional Resources
|
title: Additional Resources
|
||||||
author: Benjamin Qi
|
author: Benjamin Qi
|
||||||
order: 5
|
order: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
Helpful Links! Some (such as CPH and Intro to USACO) will be mentioned again in later modules.
|
Helpful Links! Some (such as CPH and Intro to USACO) will be mentioned again in later modules.
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
slug: /intro/contests
|
slug: /general/contests
|
||||||
title: Contests
|
title: Contests
|
||||||
author: Benjamin Qi
|
author: Benjamin Qi
|
||||||
order: 5
|
order: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
See [clist.by](https://clist.by/coder/bqi343/) for an extensive list. Most of the contests which I do are a subset of those shown in "Programming Contests.png". A link to my google calendar for contests is available [here.](https://calendar.google.com/calendar?cid=Y2s5ZjdmZDBkNjdmOGFxZ2oxbDVrMHJ1OGtAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ) See the other page for olympiads such as USACO.
|
See [clist.by](https://clist.by/coder/bqi343/) for an extensive list. Most of the contests which I do are a subset of those shown in "Programming Contests.png". A link to my google calendar for contests is available [here.](https://calendar.google.com/calendar?cid=Y2s5ZjdmZDBkNjdmOGFxZ2oxbDVrMHJ1OGtAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ) See the other page for olympiads such as USACO.
|
|
@ -1,11 +1,13 @@
|
||||||
---
|
---
|
||||||
slug: /intro/why-cpp
|
slug: /general/why-cpp
|
||||||
title: Why C++?
|
title: Why C++?
|
||||||
author: Benjamin Qi
|
author: Benjamin Qi
|
||||||
order: 1
|
order: 3
|
||||||
---
|
---
|
||||||
|
|
||||||
A few reasons why choice of language matters significantly outside of bronze.
|
A few reasons why choice of language matters significantly (outside of Bronze).
|
||||||
|
|
||||||
|
<!-- END DESCRIPTION -->
|
||||||
|
|
||||||
## Time Limit
|
## Time Limit
|
||||||
|
|
6
content/2_General/4_Practicing.md
Normal file
6
content/2_General/4_Practicing.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
slug: /general/practicing
|
||||||
|
title: Practicing
|
||||||
|
author: ?
|
||||||
|
order: 4
|
||||||
|
---
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
slug: /intro/reading-editorials
|
slug: /general/reading-editorials
|
||||||
title: When to Read Editorials (Analyses)
|
title: When to Read Editorials (Analyses)
|
||||||
author: Benjamin Qi, William Lin, Eric Wei, Nathan Wang, Nathan Chen
|
author: Benjamin Qi, William Lin, Eric Wei, Nathan Wang, Nathan Chen
|
||||||
order: 4
|
order: 5
|
||||||
---
|
---
|
||||||
|
|
||||||
Knowing when to "give up" on a problem and start reading the problem's editorial
|
Knowing when to "give up" on a problem and start reading the problem's editorial
|
|
@ -1,3 +1,10 @@
|
||||||
|
---
|
||||||
|
slug: /general/debugging
|
||||||
|
title: Debugging
|
||||||
|
author: ?
|
||||||
|
order: 6
|
||||||
|
---
|
||||||
|
|
||||||
(compilation flags)
|
(compilation flags)
|
||||||
|
|
||||||
(printing)
|
(printing)
|
6
content/2_General/7_Strategy.md
Normal file
6
content/2_General/7_Strategy.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
slug: /general/strategy
|
||||||
|
title: Contest Strategy
|
||||||
|
author: ?
|
||||||
|
order: 7
|
||||||
|
---
|
Reference in a new issue