备忘
备忘
lower_bound
和unique
返回的指针
int a[] = {1, 2, 3, 5, 5, 9, 10};
lower_bound(a, a+7, 1)-a; //0
*a //1
*(unique(a, a+7)) //10
unique(a, a+7)-a //6
memset赋INF memset(a, 0x3f, sizeof(a));
For long long int %lld
For unsigned long long int %llu
For double input %lf
For double output %f
ONLINE_JUDGE宏
#ifndef ONLINE_JUDGE
freopen("testdata.in", "r", stdin);
#endif // ONLINE_JUDGE