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 <cstdio> | |
| #include <iostream> | |
| #include <algorithm> | |
| #include <cstring> | |
| #include <queue> | |
| #include <cmath> | |
| #define abs(x) ((x)>0?(x):(0-(x))) | |
| #define MAX(a,b) (a>b?a:b) | |
| #include <set> | |
| #include <climits> |
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 <cstdlib> | |
| #include <ctime> | |
| #include <cstring> | |
| using namespace std; | |
| char s[]="!@#$%^&*!@#$%^&*!@#$%^&*!@#$%^&*!@#$%^&*"; | |
| 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
| #include <iostream> | |
| #include <queue> | |
| #include <vector> | |
| #include <cstring> | |
| #include <cstdlib> | |
| using namespace std; | |
| const int MAXN = 32; | |
| const int MAXM = 1005; | |
| const int INF = 0x3fffff; |
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
| svdata={"api_result":1,"api_result_msg":"\u6210\u529f","api_data":{"api_mst_ship":[{"api_id":1,"api_sortno":31,"api_name":"\u7766\u6708","api_yomi":"\u3080\u3064\u304d","api_stype":2,"api_afterlv":20,"api_aftershipid":"254","api_taik":[13,24],"api_souk":[5,18],"api_houg":[6,29],"api_raig":[18,59],"api_tyku":[7,29],"api_luck":[12,49],"api_soku":10,"api_leng":1,"api_slot_num":2,"api_maxeq":[0,0,0,0,0],"api_buildtime":18,"api_broken":[1,1,4,0],"api_powup":[1,1,0,0],"api_backs":3,"api_getmes":"\u7766\u6708\u3067\u3059\u3002<br>\u306f\u308a\u304d\u3063\u3066\u3001\u307e\u3044\u308a\u307e\u3057\u3087\u30fc\uff01","api_afterfuel":100,"api_afterbull":100,"api_fuel_max":15,"api_bull_max":15,"api_voicef":0},{"api_id":2,"api_sortno":32,"api_name":"\u5982\u6708","api_yomi":"\u304d\u3055\u3089\u304e","api_stype":2,"api_afterlv":20,"api_aftershipid":"255","api_taik":[13,24],"api_souk":[5,18],"api_houg":[6,29],"api_raig":[18,49],"api_tyku":[7,29],"api_luck":[10,49],"api_soku":10,"api_leng":1,"api_slot_num":2,"api_maxeq":[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
| svdata={"api_result":1,"api_result_msg":"\u6210\u529f","api_data":{"api_mst_ship":[{"api_id":1,"api_sortno":31,"api_name":"\u7766\u6708","api_yomi":"\u3080\u3064\u304d","api_stype":2,"api_afterlv":20,"api_aftershipid":"254","api_taik":[13,24],"api_souk":[5,18],"api_houg":[6,29],"api_raig":[18,59],"api_tyku":[7,29],"api_luck":[12,49],"api_soku":10,"api_leng":1,"api_slot_num":2,"api_maxeq":[0,0,0,0,0],"api_buildtime":18,"api_broken":[1,1,4,0],"api_powup":[1,1,0,0],"api_backs":3,"api_getmes":"\u7766\u6708\u3067\u3059\u3002<br>\u306f\u308a\u304d\u3063\u3066\u3001\u307e\u3044\u308a\u307e\u3057\u3087\u30fc\uff01","api_afterfuel":100,"api_afterbull":100,"api_fuel_max":15,"api_bull_max":15,"api_voicef":0},{"api_id":2,"api_sortno":32,"api_name":"\u5982\u6708","api_yomi":"\u304d\u3055\u3089\u304e","api_stype":2,"api_afterlv":20,"api_aftershipid":"255","api_taik":[13,24],"api_souk":[5,18],"api_houg":[6,29],"api_raig":[18,49],"api_tyku":[7,29],"api_luck":[10,49],"api_soku":10,"api_leng":1,"api_slot_num":2,"api_maxeq":[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
| #include <iostream> | |
| #include <cstring> | |
| #include <vector> | |
| #include <cstdio> | |
| #define MEM(a,b) memset(a, b, sizeof(a)) | |
| using namespace std; | |
| const int N = 105; | |
| const int M = 15; |
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 <cstring> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <map> | |
| #include <cstdio> | |
| #define MEM(a,b) memset(a, b, sizeof(a)) | |
| using namespace std; | |
| const int N = 20010; |
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 serial | |
| import datetime | |
| from pymongo import MongoClient | |
| port = serial.Serial('/dev/ttyAMA0', baudrate=9600, timeout=2.0) | |
| client = MongoClient('172.31.150.230') | |
| def read_pm_line(_port): | |
| rv = b'' |
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 nginx | |
| ADD default.conf /etc/nginx/conf.d/ |
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 bs4 import BeautifulSoup | |
| from datetime import datetime, timedelta | |
| import re | |
| def get_start_day(): | |
| return datetime(2016, 2, 29) | |
| def date_to_str(dt): |