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
create table cliente ( | |
cliente_id varchar(8) not null, | |
nombre varchar(50), | |
paterno varchar(50), | |
materno varchar(50), | |
primary key (cliente_id) | |
) | |
create table cargo ( | |
cargo_id varchar(8) not null, |
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> | |
#define MAX 1000000 | |
using namespace std; | |
struct trie{ | |
map<char, int> sig; | |
bool termina; | |
int a, b; | |
}; | |
trie t[MAX]; | |
int n = 1; |
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") . ""; |
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
#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
#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 <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 <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> | |
#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 <iostream> | |
#include <vector> | |
using namespace std; | |
vector<string> knuthP(string s) { | |
if(s.length() == 1) { | |
vector<string> A; | |
A.push_back(s); |
NewerOlder