Resources
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
/* | |
Problem: Tyvj 1124 | |
Author: Cheng Luyu | |
Date: 2014/8/1 pm | |
*/ | |
#include <cstdio> | |
#include <cstdlib> | |
const int N = 100, M = 100; |
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> | |
const int MAX = 2000000; | |
bool is_prime[MAX + 1] = { 0 }; | |
std::vector<int> primes; | |
int main() { | |
is_prime[2] = true; |
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 <cstdlib> | |
#include <vector> | |
const int N = 100000, TREE_HEIGHT = 17; | |
struct point { | |
long long x, y; | |
int multi(const point &a, const point &b) { | |
// printf("Multiply a(%d, %d) with b(%d, %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
#include "cstdio" | |
#include "iostream" | |
#include "algorithm" | |
#include "cmath" | |
#include "cstring" | |
#include "ctime" | |
#include "cstdlib" | |
#include "vector" | |
#include "queue" | |
#include "set" |
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
# coding: utf-8 | |
from requests import request | |
from bs4 import BeautifulSoup as bs | |
from pyquery import PyQuery as pq | |
from time import sleep | |
import json | |
import re | |
import MySQLdb |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <ctype.h> | |
#include <string.h> | |
#define BUFFER_SIZE 256 | |
int value(); | |
int integer(); | |
int factor(); |