We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86dcca9 commit 735d233Copy full SHA for 735d233
main.cpp
@@ -6,8 +6,6 @@ using json = nlohmann::json;
6
7
using namespace std;
8
9
-#define unordered_set set
10
-
11
// -----------------------------------------------------------------------------
12
13
int run(string op) {
@@ -33,13 +31,13 @@ unordered_set<string> get_luogu(uint64_t uid) {
33
31
return ac_luogu_cf;
34
32
}
35
36
-unordered_set<string> get_codeforces(string name) {
+set<string> get_codeforces(string name) {
37
string filename = "./data/" + name + ".json";
38
39
run("curl https://ojhunt.com/api/crawlers/codeforces/" + name + " -o " + filename);
40
41
ifstream f(filename);
42
- unordered_set<string> ac_cf;
+ set<string> ac_cf;
43
44
auto problems = json::parse(f)["data"]["solvedList"];
45
for (string problem : problems) {
0 commit comments