Skip to content

Instantly share code, notes, and snippets.

View alculquicondor's full-sized avatar

Aldo Culquicondor alculquicondor

View GitHub Profile
import requests
import time
url = "http://www.igp.gob.pe/bdsismos/ultimosSismosSentidos.php"
data = {
'xjxfun': 'aux',
'xjxr': int(time.time() * 1000),
'xjxargs[]': ['N20', 'N1', '<xjxobj><e><k>optionMonth0</k><v>S1</v></e><e><k>optionMonth1</k><v>S2</v></e><e><k>optionMonth2</k><v>S3</v></e><e><k>optionMonth3</k><v>S4</v></e><e><k>optionMonth4</k><v>S5</v></e><e><k>optionMonth5</k><v>S6</v></e><e><k>optionMonth6</k><v>S7</v></e><e><k>optionMonth7</k><v>S8</v></e><e><k>optionMonth8</k><v>S9</v></e></xjxobj>']
}
language: python
dist: trusty
sudo: false
addons:
postgresql: "9.4"
apt:
packages:
- proj
.load mod_spatialite
-- Inicializando tablas de metadata
BEGIN;
SELECT initSpatialMetadata();
COMMIT;
-- Observar tablas creadas
.tables
long ans = 0;
for (int i = 2; i <= a; ++i)
if (sieve.isPrime(i)) {
int ap = a / i, bp = b / i;
for (int j = 1; j <= ap; ++j)
ans += u[j] * (long) (ap / j) * (bp / j);
}
{u'all': False,
u'distinctClause': None,
u'fromClause': [{u'RANGEVAR': {u'alias': {u'ALIAS': {u'aliasname': u'paths',
u'colnames': None}},
u'inhOpt': 2,
u'location': 21,
u'relname': u'dataset_12618',
u'relpersistence': u'p',
u'schemaname': None}},
{u'RANGEVAR': {u'alias': {u'ALIAS': {u'aliasname': u'points',
[
{
"SELECT": {
"distinctClause": null,
"intoClause": null,
"targetList": [
{
"RESTARGET": {
#include <unordered_map>
#include <iostream>
#include <cstring>
#include <sstream>
#define MAXW 2300
using namespace std;
int n;
unordered_map<string, int> mid;
== BUILDING GRAPH ===
Time: 355
=====================
== FIRST QUESTION ===
Component 1 Vertices: 181440 Edges: 241920
Component 2 Vertices: 181440 Edges: 241920
Time: 54
=====================
== SECOND QUESTION ==
Distance: 31
unbind C-b
set-option -g prefix C-e
set -g mode-mouse on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g default-terminal "screen-256color"
unbind-key c
#include <cstdio>
#include <vector>
#include <utility>
#include <queue>
#include <algorithm>
#define N 100002
#define F first
#define S second
#define INF 0x3f3f3f3f