Saratov State University :: Online Contester


::Go
- home
- news
- register
- update personal info
- problemset archive
- submit
- status online
- standing
- contests
- virtual contests
- forum
- statistic
- FAQ
- links
- projects

::Poll
Are you registered on Codeforces?
Yes
No
What is it???

[results]

::webboard

C# Memory Limit
Author: RollingStone
ID: 060763
Problem: 101
Contest: 0
Date: 2013-12-29 22:41:04

Vot takaja prostaja programma, s#edaet 7.5 mb. I v probleme 101 ja poluchaju Memory Limit tol'ko za zapusk algoritma.
Poluchaetsja, chto po faktu ja ne mogu ispol'zovat' List, Stack, Dictionary, HashSet i drugie jelementarnye struktury. Kak-to stranno.
Jeto znachit, chto podderzhka C# sdelana "na otvali" ili mne dejstvitel'no nel'zja pol'zovat'sja Stack, Hashset, Dictionary...?

using System;
using System.Collections.Generic;

class Solution
{
static void Main()
{
List<Byte> sampleList = new List<Byte>();
sampleList.Add(1);

Stack<Byte> sampleStack = new Stack<Byte>();
sampleStack.Push(0);

Dictionary<Byte, Byte> map = new Dictionary<Byte, Byte>();
map.Add(0, 1);

HashSet<Byte> originalVerticesHashSet = new HashSet<Byte>();
originalVerticesHashSet.Add(4);

string[] numbers = Console.ReadLine().Split(' ');
Console.WriteLine(int.Parse(numbers[0]) + int.Parse(numbers[1]));
}
}

see sub-tree reply to that message


::Login
Forgot password?

::News
22.10.12 - The problems from the Southern Subregional Programming Contest 2012 added to the problemset archive (542 - 553).
22.10.12 - After the start of the contest the statements in PDF will be available by the link.
23.10.11 - The problems from the Southern Subregional Programming Contest 2011 added to the problemset archive (530 - 541).

::Counter

Server time: 2017-11-21 07:10:09Online Contester Team © 2002 - 2016. All rights reserved.