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
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>(); |
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
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; |
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
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; |
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
using System; | |
class OddEvenSum | |
{ | |
static void Main() | |
{ | |
int numbers = int.Parse(Console.ReadLine()); | |
int oddSum = 0; | |
int evenSum = 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
using System; | |
class TheExplorer2 | |
{ | |
static void Main() | |
{ | |
int size = int.Parse(Console.ReadLine()); | |
Console.WriteLine("{0}*{0}", new string('-', size / 2)); |
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
using System; | |
class TheExplorer | |
{ | |
static void Main() | |
{ | |
int length = int.Parse(Console.ReadLine()); | |
int inner = 1; | |
int outter = length / 2; |
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
using System; | |
class BitsUp | |
{ | |
static void Main() | |
{ | |
int bytes = int.Parse(Console.ReadLine()); | |
int step = int.Parse(Console.ReadLine()); | |
string output = string.Empty; |
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
using System; | |
class JumpingSums | |
{ | |
static void Main() | |
{ | |
// inputs | |
string[] input = Console.ReadLine().Split(); | |
int jumps = int.Parse(Console.ReadLine()); |
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
using System; | |
class HexadecimalToDecimalNumber | |
{ | |
static void Main() | |
{ | |
Console.Write("Insert a Hexadecimal number: "); | |
string hex = Console.ReadLine(); | |
long dec = 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
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(); |
OlderNewer