Skip to content

Instantly share code, notes, and snippets.

View zuchmanski's full-sized avatar

Sebastian Zuchmanski zuchmanski

  • Paladin Software
View GitHub Profile
#include<cstdio>
#include<vector>
#include<algorithm>
#define INF 2000000000
#define MAX 36
using namespace std;
int Z, n, S;
vector<int> l;
vector<int> A;
#include<cstdio>
#include<vector>
#include<algorithm>
#define INF 2000000000
#define MAX 36
using namespace std;
int Z, n, S;
vector<int> l;
vector<int> A;
[~]> xrdb -query | grep Xft
Xft.hinting: 1
Xft.hintstyle: hintmedium
[~]> opera -debugfont &
[1] 3646
[~]> opera: detected 750 suitable fonts
opera: register font [0000] '/usr/share/texmf/fonts/type1/public/lm/lmssbx10.pfb'
opera: register font [0001] '/home/sebcioz/.fonts/HelveticaNeueLTPro-HvEx.otf'
opera: register font [0002] '/home/sebcioz/.fonts/HelveticaLTStd-FractionsBd.otf'
file 'Gemfile', <<-GEMS
source 'http://gemcutter.org'
gem "rails", "3.0.0.beta3"
gem "bson_ext"
gem "mongoid", "2.0.0.beta4"
gem "haml", "3.0.0.rc.2"
gem "compass", "0.10.0.rc4"
gem "inherited_resources"
group :test do
#include<cstdio>
#include<vector>
#include<algorithm>
#include<climits>
#define INF LONG_MAX
#define MAX 1000000
using namespace std;
struct point {
long long x, y;
#include<cstdio>
#include<vector>
#include<algorithm>
#define INF 2000000000
#define MAX 1000000
using namespace std;
struct point {
long long x, y;
require "rack"
@headers = {}
@body = File.open("/home/sebcioz/avatar.jpg")
@headers["Content-Type"] = "binary/octet-stream"
@headers["Content-Disposition"] = "attachment; filename=\"aaa.jpg\""
Rack::Handler::Thin.run lambda {|env| [200, @headers, @body]}
#include<cstdio>
#include<iostream>
#include<string>
#include<vector>
#define INF 2000000000
#define MAX 3000001
using namespace std;
int Z, n, pref1[MAX], pref2[MAX];
char text[MAX];
#include<cstdio>
#include<iostream>
#include<string>
#include<vector>
#define INF 2000000000
#define MAX 3000001
using namespace std;
int Z, n, pref1[MAX], pref2[MAX];
char text[MAX];
#include<iostream>
#include<cstring>
#include<cstdio>
#define MAX 4000010
using namespace std;
int Z, n, R[MAX], id, max_value;
char text[MAX], tmp[MAX];
void load_data_and_cleaning();