Skip to content

Instantly share code, notes, and snippets.

from time import time
class Node:
def __init__(self, data, next_node = None):
self.data = data
self.next_node = next_node
class LinkedList:
def __init__(self):
self.first_node = None
namespace _5_0
{
internal class Person
{
public string name = "hero";
public int healthPoint = 44;
public Person(string name, int healthPoint)
{
this.name = name;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string[] firstArray = { "1", "2", "1" };
string[] secondArray = { "3", "1" };
List<string> list = new List<string>();
namespace _4_3
{
internal class Program
{
static void Main(string[] args)
{
Dictionary<string, List<string>> Dossiers = new Dictionary<string, List<string>>()
{
{ "lol", ["Иванов Иван Иванович", "Максимов Максим Максимович"] },
{ "dota", ["Данилов Данил Данилович"] }
namespace _4_2
{
internal class Program
{
static void Main(string[] args)
{
List<int> array = new List<int>();
String userInput;
int num = 0;
bool isWork = true;
namespace _4_1
{
internal class Program
{
static void Main(string[] args)
{
int[] array = { 12, 32, 42, 234, 234, 2, 123, 4, 4, 23, 4, 42, 34, 4323, 4 };
Queue<int> amounts = new Queue<int>(array);
int amount, sum = 0;
namespace _4_0
{
internal class Program
{
static void Main(string[] args)
{
Dictionary<string, string> items = new Dictionary<string, string>();
items.Add("кружка", "крупный толстостенный стакан с ручкой");
items.Add("ложка", "столовый прибор, отдалённо напоминающий небольшую лопатку");
items.Add("тарелка", "плоское или вогнутое изделие из керамики, стекла, металла и иных материалов");
namespace _3_4
{
internal class Program
{
static void Main(string[] args)
{
const ConsoleKey moveUp = ConsoleKey.UpArrow;
const ConsoleKey moveDown = ConsoleKey.DownArrow;
const ConsoleKey moveRight = ConsoleKey.RightArrow;
const ConsoleKey moveLeft = ConsoleKey.LeftArrow;
using System.Xml.Linq;
namespace _3_3
{
internal class Program
{
static void Main(string[] args)
{
string[] names = {
"Олегов Олег Олегович",
namespace _3_2
{
internal class Program
{
static void Main(string[] args)
{
int[] arrayOfInegers = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
arrayOfInegers = Shuffle(arrayOfInegers);
for (int i = 0; i < arrayOfInegers.Length; i++)