首页 > 其他 > 详细

标准库集锦

时间:2021-05-14 16:15:00      阅读:25      评论:0      收藏:0      [点我收藏+]
#include<bits/stdc++.h>
using namespace std;
#define MAX 200005
#define lson (p<<1)
#define rson (p<<1|1)
#define mid ((l + r) >> 1);
typedef pair<int,int> P;
map<string,double> mp;
int main(void){
    string s;double d;
    while(true){
        cin >> s;
        if(s == "noname") break;
        cin >> d;
        mp[s] = d * 0.21;
    }
    while(cin >> s){
        auto it = mp.find(s);
        if(it == mp.end()) cout << "Not found." << endl;
        else cout << mp[s] << endl;
    }
    return 0;
}

 

标准库集锦

原文:https://www.cnblogs.com/ewitt/p/14768202.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!