((?! ).{)
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> | |
#include <sstream> | |
struct Problem { | |
int id; | |
bool solved; | |
}; | |
struct Team { |
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 <string> | |
#include <queue> | |
#include <list> | |
int main() { | |
int n, c = 1; | |
int map[1000000]; | |
int t_map[1001]; | |
std::string line; |
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
// Tire isso dps, to usando so pra n me preocupar com os includes kkk | |
#include <bits/stdc++.h> | |
#define POS_NUMBER 12 | |
#define POS_NAME 10 | |
#define POS_ENTOURAGE 18 | |
#define POS_CITY 41 | |
#define POS_STATUS 16 | |
struct Candidate { |
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
# get file from source | |
wget -c https://releases.linaro.org/14.03/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.8-2014.03_linux.tar.xz | |
# uncompress file | |
tar xf gcc-linaro-arm-linux-gnueabihf-4.8-2014.03_linux.tar.xz | |
# copy uncompressed file to /opt/ | |
sudo cp -r gcc-linaro-arm-linux-gnueabihf-4.8-2014.03_linux /opt/ | |
# remove downloaded files |
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
sudo apt-get -y update && sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev && cd /tmp && wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p481.tar.gz && tar -xvzf ruby-2.0.0-p481.tar.gz && cd ruby-2.0.0-p481/ && ./configure --prefix=/usr/local && make && sudo make install && gem install jekyll bundle |
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 <thread> | |
#include <cstdio> | |
#include <chrono> | |
#include <vector> | |
#include <sched.h> | |
#include <unistd.h> | |
using namespace std; | |
#define NUMTHREADS 10 |
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> | |
using namespace std; | |
class Base { | |
public: | |
Base() {} | |
virtual ~Base() = 0; | |
ostream& print(ostream &o) const { | |
o << "id: " << id << "\n"; |
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> | |
using namespace std; | |
class Base { | |
public: | |
Base() {} | |
virtual ~Base() {}; | |
virtual ostream &print(ostream &o) const = 0; |
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 <fstream> | |
#include <sstream> | |
#include <vector> | |
#include <map> | |
struct Proc { | |
int pid; | |
int ppid; | |
double memory; |