Skip to content

Instantly share code, notes, and snippets.

View kblackcn's full-sized avatar
💭
Wow, you can really core!

kblack kblackcn

💭
Wow, you can really core!
View GitHub Profile
@kblackcn
kblackcn / submit.py
Last active December 23, 2019 07:08
simple script to submit your code to parallel programming OJ ECNU COMS0031132080
# example:
# python3 submit.py -u <id> -p <password> -m <method: OPENMP MPI CUDA> -n <node> -c <ppn> <your code file> <any extra arguments>
import requests, os, sys, time, shutil, getopt
login_url = 'http://49.52.10.141:9002/login'
presubmit_url = 'http://49.52.10.141:9002/preSubmit'
submit_url = 'http://49.52.10.141:9002/submitCode'
R = requests.Session()