0x00 Link
-
L1-7 撒狗粮
404
-
Source
-PTA
-
Tag
-芝士水题
差分
-
Time
- ∗ * ∗
0x01 Source Code
//
#include <bits/stdc++.h>
using namespace std;
// #define int long long
#define A pair<string, int>
#define p1 first
#define p2 second
const int N = 1e6 + 7; // 之后给出一个正整数 M(≤ 80 000),为参加派对的总人数
string s[N];
int cnt[N], sum[N];
bool is_dog[N];
map<string, string> mp;
map<string, int> get_idx;
vector<A> v;
vector<string> ans;
bool cmp(const A& x, const A& y