APCS

Github

Tips

以TXT檔輸入輸出

code
//------------------------------------------------ #ifdef local freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); #endif //------------------------------------------------

必須加上-Dlocal

一些小優化

code
ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);

map用法

參考一

hackmd自動生成

code
#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 ; } } }

嵌入網站

用法
<iframe width="100%" height="500" src="https://hackmd.io" frameborder="0"></iframe>

題目

中文題庫(LuckyCat)

題號

100

167

216

271

355

369

429

441

458

482

488

516

532

591

592

673

714

839

1185

10017

10041

10055

10062

10063

10102

10110

10222

10282

10300

10340

10370

10474

10530

10696

10699

10783

10789

10812

10815

10929

10959

11172

11185

11223

11286

11321

11332

11352

11462

11513

11516

11561

11730

11876

11879

11936

11984

11991

12468


期中考

期末考

tags: APCS選修 C++ UVa