杭電oj -1004 Let the Balloon Rise(C++) STL

分析:用set容器存鍵值和實值 輸出實值最大的對應的key #include <iostream> #include <map> #include <string> using namespace std; int main() { map<string,int> m; string color; int n; while(cin >> n && n != 0) { m.clear(
相關文章
相關標籤/搜索