# APCS ### [Github](https://github.com/fkleofk/APCS.git) ## Tips #### 以TXT檔輸入輸出 :::spoiler code ```cpp= //------------------------------------------------ #ifdef local freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); #endif //------------------------------------------------ ``` > **必須加上`-Dlocal`** ::: #### 一些小優化 :::spoiler code ```cpp= ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); ``` ::: --- ## <font>map用法</font> [參考一](https://mropengate.blogspot.com/2015/12/cc-map-stl.html) ## hackmd自動生成 :::spoiler code ```cpp= #include<bits/stdc++.h> using namespace std; int main() { //------------------------------------------------ #ifdef local freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); #endif //------------------------------------------------ int n ; while ( cin >> n ) { if ( n == 0 ) { break ; } else { cout << "# UVa " << n << endl ; cout << "### 題目連結:[UVa" << n << "](http://domen111.github.io/UVa-Easy-Viewer/?" << n<<")" << endl ; cout << "### 題述:" << endl ; cout << "### c++ code:" << endl ; cout << "```cpp=" << endl ; cout << "```" << endl ; cout << ":::success" << endl ; cout << "**``sample input``**" << endl ; cout << ":::" << endl ; cout << ":::success" << endl ; cout << "**``sample output``**" << endl ; cout << ":::" << endl ; cout << "#### [返回首頁](https://hackmd.io/@fkleofk/APCS#"<< n << ")" << endl ; cout << "###### tags: `APCS選修` `C++` `UVa`"<< endl ; } } } ``` ::: ## 嵌入網站 :::spoiler 用法 ```xml= <iframe width="100%" height="500" src="https://hackmd.io" frameborder="0"></iframe> ``` <iframe width="100%" height="500" src="https://hackmd.io" frameborder="0"></iframe> ::: --- ## 題目 ### [中文題庫(LuckyCat)](http://web.kshs.kh.edu.tw/academy/luckycat/index.htm) :::spoiler 題號 ### ■[100](https://hackmd.io/@fkleofk/UVa100) ### □[167](https://hackmd.io/@fkleofk/UVa167) ### □[216](https://hackmd.io/@fkleofk/UVa216) ### □[271](https://hackmd.io/@fkleofk/UVa271) ### □[355](https://hackmd.io/@fkleofk/UVa355) ### ■[369](https://hackmd.io/@fkleofk/UVa369) ### □[429](https://hackmd.io/@fkleofk/UVa429) ### □[441](https://hackmd.io/@fkleofk/UVa441) ### ■[458](https://hackmd.io/@fkleofk/UVa458) ### □[482](https://hackmd.io/@fkleofk/UVa482) ### ■[488](https://hackmd.io/@fkleofk/UVa488) ### □[516](https://hackmd.io/@fkleofk/UVa516) ### □[532](https://hackmd.io/@fkleofk/UVa532) ### ■[591](https://hackmd.io/@fkleofk/UVa591) ### □[592](https://hackmd.io/@fkleofk/UVa592) ### ■[673](https://hackmd.io/@fkleofk/UVa673) ### □[714](https://hackmd.io/@fkleofk/UVa714) ### □[839](https://hackmd.io/@fkleofk/UVa839) ### ■[1185](https://hackmd.io/@fkleofk/UVa1185) ### □[10017](https://hackmd.io/@fkleofk/UVa10017) ### ■[10041](https://hackmd.io/@fkleofk/UVa10041) ### ■[10055](https://hackmd.io/@fkleofk/UVa10055) ### □[10062](https://hackmd.io/@fkleofk/UVa10062) ### □[10063](https://hackmd.io/@fkleofk/UVa10063) ### □[10102](https://hackmd.io/@fkleofk/UVa10102) ### □[10110](https://hackmd.io/@fkleofk/UVa10110) ### ■[10222](https://hackmd.io/@fkleofk/UVa10222) ### ■[10282](https://hackmd.io/@fkleofk/UVa10282) ### ■[10300](https://hackmd.io/@fkleofk/UVa10300) ### ■[10340](https://hackmd.io/@fkleofk/UVa10340) ### ■[10370](https://hackmd.io/@fkleofk/UVa10370) ### □[10474](https://hackmd.io/@fkleofk/UVa10474) ### □[10530](https://hackmd.io/@fkleofk/UVa10530) ### ■[10696](https://hackmd.io/@fkleofk/UVa10696) ### ■[10699](https://hackmd.io/@fkleofk/UVa10699) ### ■[10783](https://hackmd.io/@fkleofk/UVa10783) ### ■[10789](https://hackmd.io/@fkleofk/UVa10789) ### ■[10812](https://hackmd.io/@fkleofk/UVa10812) ### □[10815](https://hackmd.io/@fkleofk/UVa10815) ### ■[10929](https://hackmd.io/@fkleofk/UVa10929) ### □[10959](https://hackmd.io/@fkleofk/UVa10959) ### ■[11172](https://hackmd.io/@fkleofk/UVa11172) ### ■[11185](https://hackmd.io/@fkleofk/UVa11185) ### □[11223](https://hackmd.io/@fkleofk/UVa11223) ### □[11286](https://hackmd.io/@fkleofk/UVa11286) ### □[11321](https://hackmd.io/@fkleofk/UVa11321) ### □[11332](https://hackmd.io/@fkleofk/UVa11332) ### □[11352](https://hackmd.io/@fkleofk/UVa11352) ### ■[11462](https://hackmd.io/@fkleofk/UVa11462) ### □[11513](https://hackmd.io/@fkleofk/UVa11513) ### □[11516](https://hackmd.io/@fkleofk/UVa11516) ### □[11561](https://hackmd.io/@fkleofk/UVa11561) ### □[11730](https://hackmd.io/@fkleofk/UVa11730) ### □[11876](https://hackmd.io/@fkleofk/UVa11876) ### ■[11879](https://hackmd.io/@fkleofk/UVa11879) ### ■[11936](https://hackmd.io/@fkleofk/UVa11936) ### ■[11984](https://hackmd.io/@fkleofk/UVa11984) ### □[11991](https://hackmd.io/@fkleofk/UVa11991) ### □[12468](https://hackmd.io/@fkleofk/UVa12468) ::: --- ## [<font color="red">期中考</font>](https://hackmd.io/@fkleofk/高二上期中) ## [<font color="red">期末考</font>](https://hackmd.io/@fkleofk/高二上期末) ###### tags: `APCS選修` `C++` `UVa`