Offer比较

拿到了奇安信和白山云科技的安全研发工程师的offer,个人还挺想做安全的,奇安信这边让五天内签三方,白山云没有呢么急,两个待遇差不多,有人了解这两个公司吗?走过路过不要错过,大佬们给点建议!#offer比较##奇安信##白山云科技#
全部评论

相关推荐

#include <iostream>#include <string>#include<vector>#include <set> using namespace std;int main() {    int n;    cin >> n;    vector<vector<int>> coordinates(n, vector<int>(2));    set<string> coordinatesSet;    for (int i = 0; i < n; i++) {        int x, y;        cin >> x >> y;        coordinates[i][0] = x;        coordinates[i][1] = y;        coordinatesSet.insert(to_string(x) + " " + to_string(y));    }    int squareCount = 0;    for (int i = 0; i < n; i++) {        int x1 = coordinates[i][0];        int y1 = coordinates[i][1];        for (int j = i + 1; j < n; j++) {            int x2 = coordinates[j][0];            int y2 = coordinates[j][1];            int x3 = x1 - (y1 - y2), y3 = y1 + (x1 - x2);            int x4 = x2 - (y1 - y2), y4 = y2 + (x1 - x2);            if (coordinatesSet.count(to_string(x3) + " " + to_string(y3)) > 0 &&                coordinatesSet.count(to_string(x4) + " " + to_string(y4)) > 0) {                squareCount++;            }            int x5 = x1 + (y1 - y2), y5 = y1 - (x1 - x2);            int x6 = x2 + (y1 - y2), y6 = y2 - (x1 - x2);            if (coordinatesSet.count(to_string(x5) + " " + to_string(y5)) > 0 &&                coordinatesSet.count(to_string(x6) + " " + to_string(y6)) > 0) {                squareCount++;            }        }    }    cout << squareCount / 4 << endl;    return 0;}
查看3道真题和解析
点赞 评论 收藏
分享
1 收藏 评论
分享
牛客网
牛客企业服务