Resources
This file contains 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 <algorithm> | |
#include <cmath> | |
#include <iomanip> | |
using namespace std; | |
const int N = 100000; | |
inline double square(double x) { |
This file contains 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 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 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 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 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 <cstdio> | |
using namespace std; | |
#define CONCAT(a, b) a##b | |
#define file_type CONCAT(FI, LE) | |
#define file_open CONCAT(fo, pen) | |
#define file_scanf CONCAT(fs, canf) |
OlderNewer