Skip to content

Instantly share code, notes, and snippets.

View ch-hristov's full-sized avatar

Christo S. Christov ch-hristov

View GitHub Profile
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <stdio.h>
#include <tuple>
#include <stack>
#include <queue>
using namespace std;
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <string.h>
#include <ctime>
#include <iostream>
@ch-hristov
ch-hristov / intermediate.cpp
Created August 21, 2015 07:45
dp intermediate 1
// ConsoleApplication5.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int maxim(int a, int b){
return a > b ? a : b;
@ch-hristov
ch-hristov / easydp1.cpp
Last active August 29, 2015 14:27
easy dp1
//DP1
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int n;
cin >> n;
var query = Path.Combine(EpiPath, calculator.ExeName + ".exe"); ( query looks like "D:/ep\\ffs.exe" )
ProcessHelper.StartProcess(query, calculator.Arguments.ToArray(), false, true, 10000);
There is also a single command line argument in the calculator.Arguments list.
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
long long int absolute(int a){
long long int f = (long long int)a < 0 ? -a : a;
return f;
@ch-hristov
ch-hristov / gist:905313ef009aa71b69a9
Created May 5, 2015 11:48
Delphi properties to C# properties
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GenerateProperties
{
class Program
@ch-hristov
ch-hristov / gist:c172c754064465c51b13
Created April 25, 2015 23:46
Find the next palindrome
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--)
{
#include <iostream>
#include <stdio.h>
#include <string>
#include <queue>
#include <stack>
using namespace std;
#include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <string>
#include <queue>
#include <stack>
using namespace std;