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> | |
| #define INF 2000000000 | |
| #define MAX 36 | |
| using namespace std; | |
| int Z, n, S; | |
| vector<int> l; | |
| vector<int> A; |
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> | |
| #define INF 2000000000 | |
| #define MAX 36 | |
| using namespace std; | |
| int Z, n, S; | |
| vector<int> l; | |
| vector<int> A; |
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
| [~]> 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' |
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
| 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 |
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<climits> | |
| #define INF LONG_MAX | |
| #define MAX 1000000 | |
| using namespace std; | |
| struct point { | |
| long long x, y; |
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> | |
| #define INF 2000000000 | |
| #define MAX 1000000 | |
| using namespace std; | |
| struct point { | |
| long long x, y; |
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
| 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]} |
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<string> | |
| #include<vector> | |
| #define INF 2000000000 | |
| #define MAX 3000001 | |
| using namespace std; | |
| int Z, n, pref1[MAX], pref2[MAX]; | |
| char text[MAX]; |
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<string> | |
| #include<vector> | |
| #define INF 2000000000 | |
| #define MAX 3000001 | |
| using namespace std; | |
| int Z, n, pref1[MAX], pref2[MAX]; | |
| char text[MAX]; |
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<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(); |