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
|
||||
---
|
||||
|
||||
- Goals
|
||||
- Module Organization
|
||||
|
||||
<!-- END DESCRIPTION -->
|
||||
|
||||
## Goals
|
||||
|
||||
- Intended audience: anybody in Bronze - Gold.
|
|
@ -2,7 +2,7 @@
|
|||
slug: /intro/prerequisites
|
||||
title: Prerequisites
|
||||
author: Nathan Wang
|
||||
order: 2
|
||||
order: 3
|
||||
---
|
||||
|
||||
Here's what you should learn before reading these resources.
|
||||
|
@ -38,7 +38,7 @@ Expected Knowledge:
|
|||
[[info | Pro Tip]]
|
||||
| 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/)
|
||||
- good place to practice basics
|
|
@ -7,7 +7,7 @@ problems:
|
|||
- bronze_word
|
||||
- bronze_paint
|
||||
- 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.
|
|
@ -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++
|
||||
|
||||
## Command Line (Mac)
|
||||
|
@ -87,14 +134,6 @@ Maybe the following links are helpful?
|
|||
|
||||
## 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
|
||||
|
||||
* [Geany](https://www.geany.org/)
|
||||
|
@ -115,11 +154,6 @@ Maybe the following links are helpful?
|
|||
|
||||
## Useful Links
|
||||
|
||||
### Reference
|
||||
|
||||
* [cplusplus](http://www.cplusplus.com/reference/)
|
||||
* [cppreference](http://en.cppreference.com/w/)
|
||||
|
||||
### Other
|
||||
|
||||
* [Intro to Command Line](http://blog.teamtreehouse.com/introduction-to-the-mac-os-x-command-line)
|
|
@ -1,15 +1,13 @@
|
|||
---
|
||||
slug: /intro/getting-started
|
||||
title: Getting Started
|
||||
author: Nathan Wang
|
||||
order: 1
|
||||
author: Nathan Wang, Benjamin Qi
|
||||
order: 2
|
||||
---
|
||||
|
||||
|
||||
<ul class="syllabus-only">
|
||||
<li>Contest Format</li>
|
||||
<li>Choosing a Language</li>
|
||||
</ul>
|
||||
- Introduction
|
||||
- Contest Format
|
||||
- Choosing a Language
|
||||
|
||||
<!-- 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)
|
||||
|
||||
## Contest Format
|
||||
|
||||
|
||||
## 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.
|
||||
|
@ -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!
|
||||
|
||||
## Language References (provided at IOI)
|
||||
### Language References (provided at IOI)
|
||||
|
||||
- [C++](https://en.cppreference.com/w/)
|
||||
- [Additional C++ reference (not provided at IOI)](http://www.cplusplus.com/)
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
slug: /intro/resources
|
||||
slug: /general/resources
|
||||
title: Additional Resources
|
||||
author: Benjamin Qi
|
||||
order: 5
|
||||
order: 1
|
||||
---
|
||||
|
||||
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
|
||||
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.
|
|
@ -1,11 +1,13 @@
|
|||
---
|
||||
slug: /intro/why-cpp
|
||||
slug: /general/why-cpp
|
||||
title: Why C++?
|
||||
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
|
||||
|
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)
|
||||
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
|
|
@ -1,3 +1,10 @@
|
|||
---
|
||||
slug: /general/debugging
|
||||
title: Debugging
|
||||
author: ?
|
||||
order: 6
|
||||
---
|
||||
|
||||
(compilation flags)
|
||||
|
||||
(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