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 <vector> | |
#include <queue> | |
#include <set> | |
using namespace std; | |
typedef pair<int, int> ii; | |
typedef vector<ii> vii; |
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 <algorithm> | |
using namespace std; | |
typedef long long ll; | |
ll gcd(ll a, ll b) { | |
if(b == 0) | |
return a; |
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 <vector> | |
using namespace std; | |
vector<string> knuthP(string s) { | |
if(s.length() == 1) { | |
vector<string> A; | |
A.push_back(s); |
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 <cstring> | |
#include <algorithm> | |
using namespace std; | |
int n, m; | |
string M[210]; | |
int M2[210][210]; |
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 <vector> | |
#include <cstring> | |
#include <iostream> | |
using namespace std; | |
int p[100001]; | |
int ns; | |
void initSet(int 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
#include <cstdio> | |
#include <iostream> | |
using namespace std; | |
int main() { | |
int t; | |
scanf("%d", &t); | |
string V[13] = {"", "", "1", "7", "4", "2", "6", "8", "10", "18", "22", "20", "28"}; |
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 <cmath> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
double dist(double x1, double y1, double x2, double y2) { | |
return sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)); |
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 <vector> | |
#include <algorithm> | |
#include <iostream> | |
using namespace std; | |
typedef long long ll; | |
vector<ll> LIS(vector<ll> X){ |
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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: jhtan | |
* Date: 6/7/14 | |
* Time: 1:13 PM | |
*/ | |
$address = $_GET['address']; | |
$url = "http://maps.google.com/maps/api/geocode/json?address=" . urlencode($address) . "&sensor=false®ion=India"; |
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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: jhtan | |
* Date: 6/7/14 | |
* Time: 1:13 PM | |
*/ | |
$address = $_GET['address'] . ' Nuestra Señora de La Paz, Bolivia'; | |
//$url = "http://maps.google.com/maps/api/geocode/json?address=" . urlencode($address) . "&components=country:BO|locality:" . urlencode("Nuestra Señora de La Paz") . ""; |
OlderNewer