Skip to content

Instantly share code, notes, and snippets.

View vdonchev's full-sized avatar

mr.d vdonchev

View GitHub Profile
@vdonchev
vdonchev / MagicStrings.cs
Created June 3, 2015 15:32
MagicStrings
using System;
using System.Collections.Generic;
public class MagicStrings
{
static void Main()
{
int diff = int.Parse(Console.ReadLine());
Dictionary<char, int> values = new Dictionary<char, int>();
@vdonchev
vdonchev / TextBombardment.cs
Created June 4, 2015 21:04
TextBombardment
using System;
class TextBombardment
{
static void Main()
{
string word = Console.ReadLine();
int lineWidth = int.Parse(Console.ReadLine());
string[] columns = Console.ReadLine().Split(' ');
int match = 0;
using System;
class Volleyball
{
static void Main()
{
string yearType = Console.ReadLine();
int hollydays = int.Parse(Console.ReadLine());
int homwtownWeekends = int.Parse(Console.ReadLine());
int normalWeekends = 48 - homwtownWeekends;
using System;
class OddEvenSum
{
static void Main()
{
int numbers = int.Parse(Console.ReadLine());
int oddSum = 0;
int evenSum = 0;
using System;
class TheExplorer2
{
static void Main()
{
int size = int.Parse(Console.ReadLine());
Console.WriteLine("{0}*{0}", new string('-', size / 2));
using System;
class TheExplorer
{
static void Main()
{
int length = int.Parse(Console.ReadLine());
int inner = 1;
int outter = length / 2;
using System;
class BitsUp
{
static void Main()
{
int bytes = int.Parse(Console.ReadLine());
int step = int.Parse(Console.ReadLine());
string output = string.Empty;
using System;
class JumpingSums
{
static void Main()
{
// inputs
string[] input = Console.ReadLine().Split();
int jumps = int.Parse(Console.ReadLine());
@vdonchev
vdonchev / HexToDec.cs
Last active August 29, 2015 14:23
HexToDec
using System;
class HexadecimalToDecimalNumber
{
static void Main()
{
Console.Write("Insert a Hexadecimal number: ");
string hex = Console.ReadLine();
long dec = 0;
@vdonchev
vdonchev / DecToHex.cs
Last active August 29, 2015 14:23
DecToHex
using System;
using System.Text;
class DecimalToHexadecimalNumber
{
static void Main()
{
Console.Write("Insert a Decimal number: ");
long dNum = long.Parse(Console.ReadLine());
StringBuilder hex = new StringBuilder();