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
namespace ShapesVolume | |
{ | |
using System; | |
using System.Linq; | |
using System.Reflection; | |
public class TrianglePrism | |
{ | |
public double BaseSide { get; } |
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
namespace FunctionalProgramming | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
class ListOfPredicates | |
{ | |
static void Main(string[] args) | |
{ |
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.Linq; | |
// http://bgcoder.com/Contests/Practice/Index/143#3 | |
class RelevanceIndex | |
{ | |
public static void Main(string[] args) | |
{ | |
string keyWord = Console.ReadLine(); | |
int numberOfParagraphs = 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; | |
using System.Linq; | |
using System.Numerics; | |
// http://bgcoder.com/Contests/Practice/Index/143#1 | |
class OffensiveName | |
{ | |
static void Main(string[] args) | |
{ | |
var array = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); |
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.Linq; | |
class SequenceInMatrix | |
{ | |
static void Main() | |
{ | |
var dimensions = Console.ReadLine().Split().Select(int.Parse).ToArray(); | |
int rows = dimensions[0]; | |
int cols = dimensions[1]; |
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; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
public class SieveOfEratosthenes | |
{ | |
public static void Main() | |
{ |
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.Diagnostics; | |
class TimedWorker | |
{ | |
private readonly Stopwatch timer; | |
public TimedWorker() | |
{ | |
this.timer = new Stopwatch(); |
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; | |
public class OddEvenSumMinMax | |
{ | |
static void Main() | |
{ | |
var numberCount = double.Parse(Console.ReadLine()); | |
var oddMax = double.MinValue; | |
var oddMin = double.MaxValue; |
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; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
class DetectiveBoev | |
{ | |
public static int SumDigits(int value) | |
{ |