代码搜索结果

找到约 33,766 项符合 Algorithm 的代码

2800189_ac_0ms_80k.cpp

#include #include using namespace std; struct node { char name[21]; int a, b; }p[101]; bool cmp(node a,node b) { return a.b-a.a>b.b-b.a; } int main() {

4108016_wa.cpp

#include #include #include using namespace std; int g, n; int m[20]; int cnt[6]; vector p[20]; int main() { int i, j; while (scanf("%d%d", &g, &

4107966_wa.cpp

#include #include #include using namespace std; int g, n; int m[20]; int cnt[6]; vector p[20]; int main() { int i, j; while (scanf("%d%d", &g, &

4107995_wa.cpp

#include #include #include using namespace std; int g, n; int m[20]; int cnt[6]; vector p[20]; int main() { int i, j; while (scanf("%d%d", &g, &

2980224_ac_1402ms_4084k.cc

#include #include using namespace std; int n, m; struct node { int l, r; }e[500001]; bool cmp(node a,node b) { if(a.l==b.l) return a.r < b.r; else retur

2980226_ac_763ms_3980k.cpp

#include #include using namespace std; int n, m; struct node { int l, r; }e[500001]; bool cmp(node a,node b) { if(a.l==b.l) return a.r < b.r; else retur

3566355_wa.cc

#include #include using namespace std; int main() { int n; while (scanf("%d", &n) == 1 && n != 0) { printf("Printing order for %d pages:\n", n); int m = (n

3566365_pe.cc

#include #include using namespace std; int main() { int n; while (scanf("%d", &n) == 1 && n != 0) { printf("Printing order for %d pages:\n", n); int m = (n

3566369_ac_0ms_316k.cc

#include #include using namespace std; int main() { int n; while (scanf("%d", &n) == 1 && n != 0) { printf("Printing order for %d pages:\n", n); int m = (n

3367982_ac_79ms_364k.cc

#include #include using namespace std; int n, l; struct node { int a, b; bool operator < (const node &t) const { return a < t.a; } }; node mud[10001];