This file contains hidden or 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
[ | |
{ | |
"id": 120, | |
"name": { | |
"zh": "山东科技大学", | |
"en": "Shandong University of Science and Technology" | |
}, | |
"country": "CN" | |
}, | |
{ |
This file contains hidden or 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
#!/bin/bash -e | |
VERSION=8.2.3 | |
SRC_DIR=/domjudge-src | |
if [ $EUID -ne 0 ]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi |
This file contains hidden or 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 sys | |
import json | |
import csv | |
import dj_utils | |
def problems_info(problems): | |
def problem_info(p): | |
if p['solved']: |
This file contains hidden or 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
{ | |
"allow_team_submission_download": true, | |
"auth_methods": [ | |
"ipaddress" | |
], | |
"clar_answers": [ | |
"No comment.", | |
"Read the problem statement carefully." | |
], | |
"clar_categories": { |
This file contains hidden or 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
#!/bin/bash | |
# Connect ECNU Internet via command line | |
# Author: cubercsl <2014cais01 at gmail dot com> | |
# Licensed under Do What The F*ck You Want To Public License (WTFPL) | |
set -eo pipefail | |
usage() { | |
echo "connect-internet [-f file | username [password]]" |