This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
xgb_best_params = { | |
'objective': 'binary:logistic', | |
'max_depth': 8, | |
'n_estimators': 300, | |
'learning_rate': 0.1, | |
'eta': 0.01, | |
'gamma': 0.12, | |
'subsample': 0.5, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AJL Join Count | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description AJLの学年別ページに参加回数を記載します | |
// @author ZOI_dayo | |
// @match https://img.atcoder.jp/ajl*/output_personal_grade* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=atcoder.jp | |
// @grant none | |
// @license MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
import matplotlib.pyplot as plt | |
import numpy as np | |
url = "https://img.atcoder.jp/ajl2023/output_personal_grade6.html" | |
response = requests.get(url) | |
response.encoding = response.apparent_encoding | |
soup = BeautifulSoup(response.text, "html.parser") | |
table = soup.find("table", {"class": "table_wrap"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AtCoder未記入チェッカー | |
// @namespace https://github.com/ZOI-dayo | |
// @version 0.1 | |
// @description AtCoderの参加登録メニューで未記入のものがあれば赤く表示します | |
// @author ZOI_dayo | |
// @supportURL https://twitter.com/ZOI_dayo | |
// @license MIT | |
// @match https://atcoder.jp/contests/*/register | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=atcoder.jp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #define ONLINE_JUDGE | |
#ifdef ONLINE_JUDGE | |
#include <atcoder/all> | |
#include <bits/stdc++.h> | |
#include <boost/range/numeric.hpp> | |
#include <boost/range/algorithm.hpp> | |
#include <boost/algorithm/string/replace.hpp> | |
#include <boost/algorithm/string/join.hpp> | |
#include <boost/algorithm/string/classification.hpp> |