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
| 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>'] | |
| } |
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
| language: python | |
| dist: trusty | |
| sudo: false | |
| addons: | |
| postgresql: "9.4" | |
| apt: | |
| packages: | |
| - proj |
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
| .load mod_spatialite | |
| -- Inicializando tablas de metadata | |
| BEGIN; | |
| SELECT initSpatialMetadata(); | |
| COMMIT; | |
| -- Observar tablas creadas | |
| .tables |
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
| 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); | |
| } |
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
| {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', |
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
| [ | |
| { | |
| "SELECT": { | |
| "distinctClause": null, | |
| "intoClause": null, | |
| "targetList": [ | |
| { | |
| "RESTARGET": { |
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 <unordered_map> | |
| #include <iostream> | |
| #include <cstring> | |
| #include <sstream> | |
| #define MAXW 2300 | |
| using namespace std; | |
| int n; | |
| unordered_map<string, int> mid; |
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
| == BUILDING GRAPH === | |
| Time: 355 | |
| ===================== | |
| == FIRST QUESTION === | |
| Component 1 Vertices: 181440 Edges: 241920 | |
| Component 2 Vertices: 181440 Edges: 241920 | |
| Time: 54 | |
| ===================== | |
| == SECOND QUESTION == | |
| Distance: 31 |
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
| 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 |
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 <utility> | |
| #include <queue> | |
| #include <algorithm> | |
| #define N 100002 | |
| #define F first | |
| #define S second | |
| #define INF 0x3f3f3f3f |