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
from heapq import heappush, heappop, heapify | |
class Scheduler(object): | |
def __init__(self): | |
self.heap_a = [] | |
self.heap_b = [] | |
self.useless_a = 0 | |
self.useless_b = 0 | |
self.expiration = float('-inf') |
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
from heapq import heappush, heappop, heapify | |
class Scheduler(object): | |
def __init__(self): | |
self.heap_a = [] | |
self.heap_b = [] | |
self.useless_a = 0 | |
self.useless_b = 0 |
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
from heapq import heappush, heappop, heapify | |
class Scheduler(object): | |
def __init__(self): | |
self.heap_a = [] | |
self.heap_b = [] | |
self.useless_a = 0 | |
self.useless_b = 0 |
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
--index-url https://pypi.python.org/simple/ | |
Flask==0.10.1 | |
itsdangerous==0.24 | |
Jinja2==2.8 | |
MarkupSafe==0.23 | |
psycopg2==2.6.1 | |
requests==2.9.1 | |
six==1.10.0 | |
SQLAlchemy==1.0.11 | |
SQLAlchemy-Utils==0.31.4 |
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
#include <bits/stdc++.h> | |
#ifdef __mr__ | |
#include "prettyprint.hpp" | |
#else | |
#define endl '\n' | |
#endif | |
#define uint unsigned int | |
#define ulong unsigned long long | |
using namespace std; |
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
#include <bits/stdc++.h> | |
#ifdef __mr__ | |
#include "prettyprint.hpp" | |
#else | |
#define endl '\n' | |
#endif | |
#define uint unsigned int | |
#define ulong unsigned long long | |
using namespace std; |
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 os | |
import re | |
from getpass import getpass | |
from requests import Session | |
from contextlib import contextmanager | |
STATUS_PAGE = "http://www.spoj.com/status/{problem},{username}/" | |
MYACCOUNT_PAGE = "http://www.spoj.com/myaccount/" | |
SOLUTION_PAGE = "http://www.spoj.com/files/src/save/{sol_id}" | |
HOME_PAGE = "https://www.spoj.com/" |
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 os | |
import re | |
from getpass import getpass | |
from requests import Session | |
from contextlib import contextmanager | |
STATUS_PAGE = "http://www.spoj.com/status/{problem},{username}/" | |
MYACCOUNT_PAGE = "http://www.spoj.com/myaccount/" | |
SOLUTION_PAGE = "http://www.spoj.com/files/src/save/{sol_id}" | |
HOME_PAGE = "https://www.spoj.com/" |
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 os | |
import re | |
from getpass import getpass | |
from requests import Session | |
STATUS_PAGE = "http://www.spoj.com/status/{problem},{username}/" | |
MYACCOUNT_PAGE = "http://www.spoj.com/myaccount/" | |
SOLUTION_PAGE = "http://www.spoj.com/files/src/save/{sol_id}" | |
HOME_PAGE = "https://www.spoj.com/" |
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 os | |
import re | |
from getpass import getpass | |
from requests import Session | |
STATUS_PAGE = "http://www.spoj.com/status/{problem},{username}/" | |
MYACCOUNT_PAGE = "http://www.spoj.com/myaccount/" | |
SOLUTION_PAGE = "http://www.spoj.com/files/src/save/{sol_id}" | |
HOME_PAGE = "https://www.spoj.com/" |