Manual
User Manual:
Open the PDF directly: View PDF
.
Page Count: 2
| Download | |
| Open PDF In Browser | View PDF |
1 Template Padrão Template padrão pra todo código, com as bibliotecas mais utilizadas e defines úteis. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #include#include #include using namespace std; #define foreach(i, c) for(__typeof( (c).begin()) i=(c).begin(); i != (c).end(); i++) #define all(x) (x).begin(),(x).end #define fori(i, n) for(int i = 0; i < (n); i++) typedef typedef typedef typedef long long ll; pair ii; vector vi; vector vii; #define INF double const PI = 2 * acos(0,0); double const EPS = 1e-10; 2 STL 2.1 misc 3 Graph 4 Geometry 5 Misc 5.1 Entrada Parar quando as entradas forem 0 ou nulas: 1 2 3 4 int a, b; while(scanf("%d %d", &a, &b), (a || b){} while(scanf("%d %d", &a, &b) == 2){} while(scanf("%d %d", &a, &b) != EOF){} 5.2 Limites • <= 10: O(n!), O(n) • <= 18: O(2n · n) • <= 22: O(2n · n) • <= 100: O(n) 1 • <= 400: O(n) • <= 2K: O(n · log2 n) • <= 10K: O(n) • <= 1M: O(nlog2 n) • <= 100M: O(n), O(log2 n), O(1) 2
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.5 Linearized : No Page Count : 2 Producer : pdfTeX-1.40.19 Creator : TeX Create Date : 2018:09:16 14:31:32-03:00 Modify Date : 2018:09:16 14:31:32-03:00 Trapped : False PTEX Fullbanner : This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux) kpathsea version 6.3.0EXIF Metadata provided by EXIF.tools