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 collections | |
| from collections import defaultdict, Counter | |
| class Expr: | |
| def __init__(self, op, *args): | |
| self.op = str(op) | |
| self.args = args | |
| def __invert__(self): | |
| return Expr('~', self) | |
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,sys | |
| print("1.现写现用\n2.TXT转xml") | |
| choose=input("请选择(输入数字):") | |
| if choose == '1': | |
| event=["sentence","source","author","type","usage_first","usage_second","history"] | |
| sql_file = open('./Excerpt.xml','w') | |
| sql_file.write('<?xml version="1.0" standalone="yes"?>\n<DocumentElement>\n') | |
| while True: | |
| time_null = 0 | |
| sql_file.write(" <sentences>\n") |
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
| <html> | |
| <!-- Code --> | |
| <script>window.parent.postMessage('Login Success', window.parent.location);</script> | |
| <!-- Code --> | |
| </html> |
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> | |
| using namespace std; | |
| int main() { | |
| int M, N, count = 0; | |
| int num; | |
| cin >> M >> N; | |
| bool mp[1000005] = {0}; | |
| queue<int> q; |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <windows.h> | |
| // 枚举方向 | |
| typedef enum direction {Left, Right} direction; | |
| // 队列结构体 | |
| typedef struct QueueNode { | |
| int data; |