Files
notes_estom/C++/面试/18.cpp
yinkanglong_lab e284cf0070 单调栈
2021-03-27 06:13:21 +08:00

18 lines
258 B
C++

#include<iostream>
#include<map>
using namespace std;
int main(){
map<int,int> m;
m[10]=10;
m[4]=4;
m[5]=5;
m[1000]=1000;
m[1]=1;
for(auto k:m){
cout<<k.first<<endl;
}
// cout<<map[3].first<<endl;
return 0;
}