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 random | |
import time | |
from typing import List, Tuple | |
from urllib.request import urlopen | |
GAME_SERVER = os.getenv('GAME_SERVER', 'https://contest.gbc-2020.tenka1.klab.jp') | |
TOKEN = os.getenv('TOKEN', '2eabf8b3371b35cfc82241c427f2dc2b') | |
def call_api(x) -> str: |
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 <iostream> | |
#include <vector> | |
#include <string> | |
#include <map> | |
#include <utility> | |
#include <functional> | |
#include <algorithm> | |
using namespace std; | |
int main() |
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
サソリ 19:00-04:00 草 | |
ダイオウグソクムシ 09:00-16:00, 21:00-04:00 大 |
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
サソリ 19:00-04:00 草 | |
デメキン 09:00-16:00 池 SS | |
ウミウシ any 小 | |
オオシャコガイ any 大 | |
コウモリダコ 16:00-09:00 大 | |
ダイオウグソクムシ 09:00-16:00, 21:00-04:00 大 | |
カブトガニ 21:00-04:00 大 |
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 <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
// munged from https://github.com/simontime/Resead | |
namespace sead | |
{ | |
class Random | |
{ |
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
b0:0b | |
b1:1b | |
b+:|0000000000000000000000000000000000000000000000000000000000000000c | |
c0:0c | |
c1:1c | |
c:> | |
0x:x0 | |
1x:x1 | |
<x:x< | |
zx:xz |
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
b0:0b | |
b1:1b | |
b+:|c | |
c0:0c | |
c1:1c | |
c:> | |
0x:x0 | |
1x:x1 | |
<x:x< | |
zx:xz |
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
// https://techbookfest.org/market/distributor/watch | |
// をChromeで開いて、開発者コンソールを開き、 | |
ws = new WebSocket("wss://s-usc1c-nss-223.firebaseio.com/.ws?v=5&ns=tbf-tokyo") | |
x = "" | |
ws.addEventListener('message', e=>{x+=e.data+"\n"}) | |
ws.send('{"t":"d","d":{"r":1,"a":"s","b":{"c":{"sdk.js.6-6-0":1}}}}') | |
// 開発者コンソールのNetwork → WS → Messagesからコピー | |
ws.send('{"t":"d","d":{"r":2,"a":"auth","b":{"cred":"????"}}}') | |
// 同じくコピー | |
ws.send('{"t":"d","d":{"r":3,"a":"q","b":{"p":"/market/handshake/distributor/????","h":""}}}') |
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
T = input() | |
for t in range(T): | |
N, M, K = map(int, raw_input().split()) | |
A, B = map(int, raw_input().split()) | |
A -= 1 | |
B -= 1 | |
R = [0]*K | |
C = [0]*K | |
for i in range(K): | |
R[i], C[i] = map(int, raw_input().split()) |