Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eldiego
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emilio López
eldiego
Commits
09b47b0b
Commit
09b47b0b
authored
8 years ago
by
ffiori
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
comments
parent
2f397747
Branches
Branches containing commit
Tags
tap-2016
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
estructuras/fruit_tree.cpp
+5
-0
5 additions, 0 deletions
estructuras/fruit_tree.cpp
with
5 additions
and
0 deletions
estructuras/fruit_tree.cpp
+
5
−
0
View file @
09b47b0b
...
...
@@ -3,9 +3,14 @@
#include
<ext/pb_ds/tree_policy.hpp>
using
namespace
__gnu_pbds
;
using
namespace
std
;
template
<
typename
T
>
using
ordered_set
=
tree
<
T
,
null_type
,
less
<
T
>
,
rb_tree_tag
,
tree_order_statistics_node_update
>
;
//o bien usar así:
typedef
tree
<
int
,
null_type
,
less
<
int
>
,
//key, mapped type, comparator. Se puede usar como map<a,b> poniendo tree<a,b,...
rb_tree_tag
,
tree_order_statistics_node_update
>
set_t
;
int
main
(){
ordered_set
<
int
>
s
;
s
.
insert
(
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment